OOP Using CPP Quiz 1

OOP Using CPP Quiz 1

University

52 Qs

quiz-placeholder

Similar activities

Ngôn ngữ lập trình C/C++

Ngôn ngữ lập trình C/C++

University

50 Qs

webdev ii

webdev ii

University

52 Qs

DPPL sumatif

DPPL sumatif

10th Grade - University

50 Qs

Assessment quiz 9-9-2021

Assessment quiz 9-9-2021

University

50 Qs

D & A Quiz

D & A Quiz

University

50 Qs

Understanding Loops in Programming

Understanding Loops in Programming

9th Grade - University

54 Qs

Technical Quiz 2022-23

Technical Quiz 2022-23

University

50 Qs

C++ Basic To Array Test 01

C++ Basic To Array Test 01

University

50 Qs

OOP Using CPP Quiz 1

OOP Using CPP Quiz 1

Assessment

Quiz

Computers

University

Medium

Created by

Dr Riman Mandal undefined

Used 1+ times

FREE Resource

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

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?