Search Header Logo

OOP Using CPP Quiz 1

Authored by Dr Riman Mandal undefined

Computers

University

Used 1+ times

OOP Using CPP Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

52 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • Ungraded

What is your University Roll number (240_______)?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • Ungraded

What is Your Name?

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What output is produced by the following segment of code:


for(int fun = 20; fun > 1; fun -=3)

cout << fun << " ";

20 17 14 11 8 5 2 -1

20 17 14 11 8 5 2

17 14 11 8 5 2 -1

20 17 14 11 8 5

Infinite Loop

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What output is produced by the following segment of code:


int start = 5;

int end = 20;

for(; start <= end; start +=2)

cout << start << " ";

5 7 9 11 13 15 17 19 21

7 9 11 13 15 17 19 20

7 9 11 13 15 17 19 21

5 7 9 11 13 15 17 19

Infinite Loop

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What output is produced by the following segment of code:


for (int dmc = 8; dmc >= 8; dmc-=4)

cout << dmc << " ";

8 4 0

8 4

8

No Output

Infinite Loop

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What output is produced by the following segment of code:


for (int dmc = 8; dmc >= 10; dmc-=4)

cout << * << " ";

* * *

* *

*

No Output

Infinite Loop

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Q. Which looping process checks the test condition at the end of the loop?

for

while

do-while

no looping process checks the test condition at the end

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?

Discover more resources for Computers