C++ PROGRAMMING

C++ PROGRAMMING

12th Grade

23 Qs

quiz-placeholder

Similar activities

Đề Cương Ôn Thi Tin Học 3

Đề Cương Ôn Thi Tin Học 3

5th Grade - University

20 Qs

Bài 1 Excel - thẻ Home

Bài 1 Excel - thẻ Home

12th Grade

20 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

TN +2 -LESSON1 FUNCTIONS

TN +2 -LESSON1 FUNCTIONS

12th Grade

20 Qs

Evaluación 2° Tecnología

Evaluación 2° Tecnología

9th - 12th Grade

20 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

POWERPOINT QUIZZ

POWERPOINT QUIZZ

10th - 12th Grade

20 Qs

C++ PROGRAMMING

C++ PROGRAMMING

Assessment

Quiz

Computers

12th Grade

Medium

Created by

NUR GHANI

Used 51+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

23 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

0 1 2 3 4 5 6 7 8 9

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9

Infinite Loop

2.

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

0 1 2 3 4 5 6 7 8 9

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9

Infinite Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output is produced by the following segment of code:


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

cout << i << " ";

0 1 2 3 4 5 6 7 8 9 10

0 1 2 3 4 5 6 7 8 9

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9

Infinite Loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 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

5.

MULTIPLE CHOICE QUESTION

30 sec • 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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: For Loops can never be an infinite loop.

True

False

Waluigi is my Spirit Animal

Mr. G didn't feel like deleting the two extra options

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the shown for loop execute?

0

9

10

11

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?