0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
21、C++中,用于表示小数的数据类型是( )
22、下列数据中,不能赋值给float类型变量的是( )
23、C++中bool类型的取值范围是( )
24、在C++中,执行语句“bool flag = 5;”后,flag的值是( )
25、下列关于C++数据类型占用内存大小的说法,正确的是( )
26、要存储一个范围在-1000~1000之间的整数,在C++中最节省内存的类型是( )
27、在C++中,下列变量定义并赋值正确的是( )
28、C++中,double类型与float类型的主要区别是( )
29、在C++中,下列属于算术运算符的是( )
30、执行C++语句“int a = 10, b = 3; int c = a % b;”后,c的值是( )
31、C++中,下列运算符的优先级从高到低排列正确的是( )
32、执行C++语句“int x = 5; x += 3;”后,x的值是( )
33、下列关于C++关系运算符的说法,正确的是( )
34、执行C++语句“bool res = (3 > 5) && (4 < 6);”后,res的值是( )
35、C++中,逻辑运算符“||”表示( )
36、执行C++语句“int a = 2; int b = ++a;”后,a和b的值分别是( )
37、C++中,下列关于if语句的语法,正确的是( )
38、执行下列C++代码后,输出结果是( )
int a = 10;
if (a > 15) {
cout << "A";
} else if (a > 5) {
cout << "B";
} else {
cout << "C";
}
39、C++中,switch语句的判断条件的数据类型不能是( )
40、执行下列C++代码后,输出结果是( )
int x = 2;
switch (x) {
case 1: cout << "1"; break;
case 2: cout << "2";
case 3: cout << "3"; break;
default: cout << "0";
}
