0 of 10 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 10 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)
41、C++中,for循环的语法格式正确的是( )
42、执行下列C++代码后,输出的i值是( )
int i;
for (i = 0; i < 5; i++) {
if (i == 2) break;
}
cout << i;
43、C++中,while循环和do-while循环的主要区别是( )
44、执行下列C++代码后,输出结果是( )
int a = 0;
do {
a++;
} while (a < 0);
cout << a;
45、在C++循环中,用于跳过本次循环剩余部分并开始下一次循环的语句是( )
46、在C++中,使用cout进行输出操作时,需要包含的头文件是( )
47、下列C++代码中,用于输出“Hello C++”的正确语句是( )
48、在C++中,使用cin进行输入操作时,正确的语法是( )
49、执行下列C++代码,若输入“10 20”,输出结果是( )
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b;
return 0;
}
50、在C++中,若要输出一个换行符,下列说法错误的是( )
