Search Header Logo

C++ Quiz

Authored by Julieta Simonyan

Education

University

Used 5+ times

C++ Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output is produced by the following segment of code:

for(int i = 0; i < 10; i++)

cout << i << " ";

0 1 2 3 4 5 6 7 8 9 10


1 2 3 4 5 6 7 8 9 10


Infinite Loop


0 1 2 3 4 5 6 7 8 9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code print?

198

Value is 198

Error

Value is 100

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code print?

Hello, Your Name

Greetings: Hello, Your Name

Greetings, Hello

Hello, Enter your name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following C++ code print?

0 1 2 4

0 1 2 3 4

1 2 4

Compiler Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following C++ code print?

5 3 1

5 4 3 2 1

5 2 -1

5 3 0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following C++ code print?

0 1 2 3 4

1 2 3 4 5

0 1 2 3 4 5

1 2 3 4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following C++ code print?

0 1 3 6

0 1 3 6 10

1 3 6 10

1 3 6 10 15

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?