C++ Quiz

C++ Quiz

University

15 Qs

quiz-placeholder

Similar activities

Python Fundamentals - Episode 03

Python Fundamentals - Episode 03

University

20 Qs

Python Assessment-2

Python Assessment-2

University

20 Qs

Code Vocabulary

Code Vocabulary

3rd Grade - University

18 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

Quiz #2 2024

Quiz #2 2024

University

10 Qs

Weekly Contest #12 - TechXNinjas

Weekly Contest #12 - TechXNinjas

University

10 Qs

UT- 2 (Quiz on verilog)

UT- 2 (Quiz on verilog)

University

20 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

C++ Quiz

C++ Quiz

Assessment

Quiz

Education

University

Hard

Created by

Julieta Simonyan

Used 5+ times

FREE Resource

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

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?