C++ Programming Quiz

C++ Programming Quiz

12th Grade

21 Qs

quiz-placeholder

Similar activities

Tes Harian 1 PPLG 2025 SMT 1

Tes Harian 1 PPLG 2025 SMT 1

9th - 12th Grade

20 Qs

Pemrograman Blokly

Pemrograman Blokly

9th Grade - University

20 Qs

Soal PAS Algoritma dan Flowchart

Soal PAS Algoritma dan Flowchart

10th Grade - University

20 Qs

Quizz Sebelum UTS

Quizz Sebelum UTS

9th - 12th Grade

21 Qs

QUIZ KELAS XII

QUIZ KELAS XII

12th Grade

20 Qs

Computer Network and Wireless Network

Computer Network and Wireless Network

7th Grade - University

18 Qs

Mock-Up Academy Programming Online Test

Mock-Up Academy Programming Online Test

6th Grade - University

20 Qs

Brainware

Brainware

9th Grade - University

17 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Dina Sharawy

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is required to use cin and cout?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? cout << 4 + 5;

9

45

4 + 5

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for division in C++?

/

\

//

div

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of cout << "Hello" << " " << "World!";?

Hello World!

HelloWorld!

Error

Hello World!

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to read a string input from the user?

cin << stringVariable;

cin >> stringVariable;

read stringVariable;

input(stringVariable);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? int a = 10; cout << a--;

10

9

Error

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the modulus operator (%) do?

Adds two numbers

Subtracts two numbers

Returns the remainder of a division

Multiplies two numbers

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?