Search Header Logo

Loops

Authored by Warren Toomey

Computers

University

Used 23+ times

Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a loop,

code is repeated while some condition is true or across some range of values
the code only runs once
the program runs the same line of code forever
the comments are printed out to the user

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a WHILE loop

code is repeated while some condition is true
code is repeated a specific number of times
code is never repeated
code is removed from the program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a FOR loop

code is repeated while some condition is true
code is repeated a specific number of times
code is never repeated
code is removed from the program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The code inside a FOR loop is

a nested block of code
a set of comments only
never indented
never used at all

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The code inside a WHILE loop is

a nested block of code
a set of comments only
never indented
never used at all

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To get into a WHILE loop

the condition must be true
the condition must be false
the code must be commented
the nested code must be three lines long

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To leave a WHILE loop

the condition must be true

the condition must be false

the code must be commented

the nested code must be three lines long

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?