C++ Programming Quiz

C++ Programming Quiz

12th Grade

21 Qs

quiz-placeholder

Similar activities

Uji Pemahaman C++ dan Google Colab

Uji Pemahaman C++ dan Google Colab

10th Grade - University

20 Qs

R4-E-TECH-EXCEL

R4-E-TECH-EXCEL

12th Grade

20 Qs

1stQ Quiz 1 E-Tech

1stQ Quiz 1 E-Tech

12th Grade

20 Qs

Python Programming 2nd Quarter Long Quiz

Python Programming 2nd Quarter Long Quiz

12th Grade

20 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

ETECH 2ND QUARTER QUIZ

ETECH 2ND QUARTER QUIZ

9th - 12th Grade

20 Qs

Uji Pengetahuan Sistem Komputer

Uji Pengetahuan Sistem Komputer

10th Grade - University

20 Qs

Activity - Task Completion and Safety

Activity - Task Completion and Safety

9th Grade - University

20 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Dina Sharawy

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?