C++ Quiz

C++ Quiz

University

15 Qs

quiz-placeholder

Similar activities

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

PP Quiz 28-02-22 B1

PP Quiz 28-02-22 B1

University

11 Qs

If-Else

If-Else

11th Grade - University

17 Qs

Python Coding Contest

Python Coding Contest

University

20 Qs

coding beast set 2

coding beast set 2

University

20 Qs

Python_Test

Python_Test

University

20 Qs

cpp-while-loop

cpp-while-loop

University

10 Qs

19IT502 - QUIZ 2

19IT502 - QUIZ 2

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?