Computer Science Quizzes

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

31. The file type #include is called
(A) syntax
(B) operator
(C) header file
(D) string constant

32. Consider the main body of a C++ program,
string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << “var3” << endl;
If the program is run, what will be displayed on the screen?
(A) var3
(B) Computer
(C) Science
(D) Computer Science

33. Consider the main body of a C++ program,
string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << var3 << endl;
If the program is run, what will be displayed on the screen?
(A) var3
(B) Computer
(C) Science
(D) Computer Science

ANSWERS: COMPUTER SCIENCE QUIZZES
31. (C) header file
32. (A) var3
33. (D) Computer Science. Next: Computer Quiz 34–40