C++ Loops

C++ Loops

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

PTS DISTRIBUSI LOGISTIK

PTS DISTRIBUSI LOGISTIK

11th Grade

10 Qs

информатика

информатика

10th Grade

15 Qs

Первое весеннее занятие

Первое весеннее занятие

1st - 12th Grade

17 Qs

XI_осн_веб_кон

XI_осн_веб_кон

9th - 12th Grade

10 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

10th Grade

10 Qs

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

C++ Loops

C++ Loops

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

ELIZABETH DIERKER

Used 59+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following loops will always run at least once?

while

do...while

for

froot

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many times is "yoyo" printed when the following code executes?

for(int i = 1; i < 7; i += 2)

cout<<"yoyo";

0

2

3

4

infinitely many times

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many times is "stop" printed when the following code executes?

int i =1;

while( i <= 9){

cout<<"stop";

i++;

}

0

9

10

11

infinitely many times

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the final value of sum?

0

20

12

30

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an infinite loop?

for(int i = 0; i>0; i++);

while(false){cout<<"hi";}

for(int i =7; i<15; i--);

int x = 1;

while(x){break;}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final value of d?

int d;

for (d = 1; d < 567; d *= 10);

1

100

10

1000

10000

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

True or false? A continue statement stops a loop from executing.

True

False

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?