0% found this document useful (0 votes)
47 views

Computer Science Quizzes - Ebook

The document contains 3 multiple choice questions from an eBook about computer science quizzes. The questions test knowledge about C++ programming concepts like header files, string variables, and string concatenation. The correct answers are identified as header file, var3, and Computer Science respectively. The questions are part of an online quiz resource for learning computer science fundamentals.

Uploaded by

Natanem Yimer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Computer Science Quizzes - Ebook

The document contains 3 multiple choice questions from an eBook about computer science quizzes. The questions test knowledge about C++ programming concepts like header files, string variables, and string concatenation. The correct answers are identified as header file, var3, and Computer Science respectively. The questions are part of an online quiz resource for learning computer science fundamentals.

Uploaded by

Natanem Yimer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like