Loops

Loops

University

9 Qs

quiz-placeholder

Similar activities

Java Iteration

Java Iteration

University

9 Qs

PROG3 - Chapter 6

PROG3 - Chapter 6

University

10 Qs

U1L1 Alonzo wants you to know...

U1L1 Alonzo wants you to know...

7th Grade - University

12 Qs

Topic 5-3: for loop

Topic 5-3: for loop

University

6 Qs

Java Questions & Answers

Java Questions & Answers

University

10 Qs

Data Compression

Data Compression

9th Grade - University

12 Qs

Types of algorithm

Types of algorithm

3rd Grade - University

10 Qs

Weekly Contest #6 - TechXNinjas

Weekly Contest #6 - TechXNinjas

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