A.interesting
B.funny
C.tedious
D.attractive
第1题:
您正在测试一个组件,该组件对Meeting 类实例进行序列化处理,以使它们能够保存到文件系统。Meeting具有如下定义:public class Meeting {private string title;public int roomNumber;public string[] invitees;public Interview(){}public Interview (string t){title = t;} }组件包含一个带有以下代码段的过程Meeting myMeeting = new Meeting("Objectives");myMeeting.roomNumber=20;string[] attendees = new string[2]{"Amy", "Ally"};myMeeting.invitees = attendees;XmlSerializer xs = new XmlSerializer(typeof(Meeting));StreamWriter writer = new StreamWriter(@"C:\Meeting.xml");xs.Serialize(writer, myMeeting);writer.Close();/您需要确定作为运行此过程的结果写入C:\Meeting.xml 文件的XML 块。哪个XML 块代表将写入C:\Meeting.xml 文件的内容?()
A.
B.
C.
D.
第2题:
有如下类定义: class Point{ private: static int how_many; }; ______how_many=0; 要初始化Point类的静态成员how_many,下划线处应填入的内容是
A.int
B.static int
C.int Point: :
D.static int Point
第3题:
A. many - to - one
B. one - to - one
C. one - to - many
D. many - to - many
第4题:
YouaretestingacomponentthatserializestheMeetingclassinstancessothattheycanbesavedtothefilesystem.TheMeetingclasshasthefollowingdefinition:
Thecomponentcontainsaprocedurewiththefollowingcodesegment.
MeetingmyMeeting=newMeeting("Goals");
myMeeting.roomNumber=1100;
string[]attendees=newstring[2]{"John","Mary"};
myMeeting.invitees=attendees;
XmlSerializerxs=newXmlSerializer(typeof(Meeting));
StreamWriterwriter=newStreamWriter(@"C:\Meeting.xml");
xs.Serialize(writer,myMeeting);
writer.Close();
YouneedtoidentifytheXMLblockthatiswrittentotheC:\Meeting.xmlfileasaresultofrunningthisprocedure.WhichXMLblockrepresentsthecontentthatwillbewrittentotheC:\Meeting.xmlfile?()
第5题:
有如下类定义: class Point{ private: static int how_many; }; ___________how_many=0; 要初始化Point类的静态成员how_many,下画线处应填入的内容是( )。
A.int
B.static int
C.int Point::
D.static int Point::
第6题:
“打八折。”的正确英语表达是:
A.It is 20% off.
B.It is 80% off.