Search Header Logo

Repetition Structure Quiz

Authored by Lisa Worthy

Computers

11th Grade

Repetition Structure Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to separate each clause in a for statement?

comma

colon

semicolon

space

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a counter is incremented or decremented, what process is occurring to the variable?

counting

accumulating

initializing

updating

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a repetition structure, what is the requirement for repeating the instructions called?

infinite loop

sentinel value

exit condition

looping condition

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would be a good sentinel value used in a loop that uses a miles per hour value as the looping condition?

100

1000

0

-1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a pretest loop, what initializes the loop condition by providing its first value?

sentinel value

update read

priming read

none of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What statement can be used to code a pretest loop in C++?

switch

while

do

next

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many arguments can the for clause contain?

1

2

3

4

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?