Loops

Loops

University

9 Qs

quiz-placeholder

Similar activities

Java Programming

Java Programming

University

11 Qs

Python 146- While Loops

Python 146- While Loops

4th Grade - Professional Development

10 Qs

reFRESHIEr ICS2602 Quiz

reFRESHIEr ICS2602 Quiz

University

10 Qs

Conditional and Iterative Statements

Conditional and Iterative Statements

University

10 Qs

Java MCQ Test on Control Statements

Java MCQ Test on Control Statements

University

10 Qs

CC102 - Repetition Control Structures

CC102 - Repetition Control Structures

University

10 Qs

Topic 5-1: while loop

Topic 5-1: while loop

University

8 Qs

if/else statements quiz

if/else statements quiz

9th Grade - University

10 Qs

Loops

Loops

Assessment

Quiz

Computers

University

Medium

Created by

Warren Toomey

Used 23+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

range(1,5) means
the numbers 1 to 4
the numbers 1 to 5
the numbers 0 to 5
the numbers 1 and 5

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a loop be written inside a loop?
Yes
No
Not in Python
Only on Sundays