Loops

Loops

University

9 Qs

quiz-placeholder

Similar activities

Lec 5a - Repetition

Lec 5a - Repetition

11th Grade - University

10 Qs

FST Class 2023- Quiz 2

FST Class 2023- Quiz 2

University

10 Qs

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

Control Structures

Control Structures

University

14 Qs

OOps test quiz

OOps test quiz

University

10 Qs

Hour of Code

Hour of Code

4th Grade - Professional Development

13 Qs

Ex - Python Control Statements

Ex - Python Control Statements

University

12 Qs

DECISION MAKING IN C

DECISION MAKING IN C

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