12/5/23, 12:58 AM Computer Science Quizzes | eBook
eBooksheir.org
Computer Science Quizzes
Q. The file type #include is called
(A) syntax
(B) operator
(C) header file
(D) string constant
The answer is: (C) header file ☑
Q. 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
The answer is: (A) var3 ☑
Q. 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
The answer is: (D) Computer Science ☑
https://sheir.org/edu/quizzes/computer-science/ 1/2
12/5/23, 12:58 AM Computer Science Quizzes | eBook
⇒ Next Questions
⇐ Previous Questions
Home: Computer Science MCQs
https://sheir.org/edu/quizzes/computer-science/ 2/2