A: ThePresident.
B: Thedirector.
C: Anactor.
D: Alook-alike.
举一反三
- 下列对枚举类型的正确定义形式为( ) A: enum a={one,two,three}; B: enum a{one=9,two=-1,three}; C: enum a={"one","two","three"}; D: enum a{"one","two","three"};
- 以下对枚举类型名的定义中,正确的是__________。 A: enum a ={one,two,three}; B: enum a{a1, a2,a3}; C: enum a ={’1’,’2’,’3’}; D: enum a {"one","two","three" };
- 下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";
- 以下选项中,两个条件语句功能等价的是()。 A: if (a=3) printf("%d ",a);if (a==3) printf("%d ",a); B: if (a-3) printf("%d ",a);if (a!=3) printf("%d ",a); C: if (a) printf("%d ",a); if (a==0) printf("%d ",a); D: if (a-3) printf("%d ",a);if (a==3) printf("%d ",a);
- 在C#中值类型包括枚举类型,关于枚举类型的声明下面的选项哪一下是正确的( )。 A: num c={'1','2','3'}; B: enum a={one,two,three}; C: enum b {a1,a2,a3}; D: enum d{"one","two","three"};
内容
- 0
设置表格中第三行第四列元素值为“中国”的方法是( ) A: setValueAt("中国", 2, 3) B: setValueAt("中国", 3, 4) C: getValueAt("中国", 2, 3) D: getValueAt("中国", 3, 4)
- 1
Which one of the following is a correct way to create a file for both reading and writing using the function fopen ? A: "ab+" B: "wb+" C: "rb+" D: "ab"
- 2
要创建一个左右框架,右边框架宽度是左边框架的 3 倍,以下 HTML 语句正确的 是: ( )。 A: <FRAMESET cols="*, 3*"> B: <FRAMESET rows="*, 3*"> C: <FRAMESET cols="*, 2*"> D: <FRAMESET rows="*, 2*">
- 3
Word中插入数学公式的方法是()。 A: "插入"→"形状"→"公式" B: "开发工具"→"公式" C: "插入"→"公式"→"插入新公式" D: "引用"→"插入"→"公式"
- 4
若有以下定义: float x;int a,b; 则正确的switch 语句是( )。 A: switch(x) { case 1.0:printf("* "); case 2.0:printf("** "); } B: switch(x){ case 1,2:printf("* "); case 3:printf("** "); } C: switch (a+b) { case 1:printf(" "); case 1+2:printf("** "); } D: switch (a+b);{ case 1:printf(."* "); case 2:printf("** "); }