🔦 Formative Assessment 2: Flow Controls

🔦 Formative Assessment 2: Flow Controls

12th Grade

10 Qs

quiz-placeholder

Similar activities

Chapter 7: Loops

Chapter 7: Loops

9th - 12th Grade

11 Qs

Lec 5a - Repetition

Lec 5a - Repetition

11th Grade - University

10 Qs

Programming Constructs

Programming Constructs

12th Grade

10 Qs

CodeHS 2.12 Loop-and-a-Half 😝

CodeHS 2.12 Loop-and-a-Half 😝

9th - 12th Grade

10 Qs

49. Programming 1 : Basic Programming Constructs

49. Programming 1 : Basic Programming Constructs

9th - 12th Grade

11 Qs

G10 CS Bubble Search

G10 CS Bubble Search

12th Grade

15 Qs

 For Loop in C++

For Loop in C++

11th Grade - University

5 Qs

C++ - Loops and Random Numbers

C++ - Loops and Random Numbers

9th - 12th Grade

14 Qs

🔦 Formative Assessment 2: Flow Controls

🔦 Formative Assessment 2: Flow Controls

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Neil Christian Capanzana

Used 10+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the syntax for a while loop in Python?
for i in range()
while i in range()
while condition:
none of the choices

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many times will a while loop execute if the condition is initially false?
0
1
infinite
none of the choices

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which statement allows the program to execute a block of code repeatedly if you have sets of data already?

if-else
while loop
for loop
none of the choices

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the syntax for a for loop in Python?
for condition:
while i in range()
while condition:
none of the choices

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many times will a for loop execute if the condition is initially false?
0
1
infinite
none of the choices

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the syntax for if-else in Python?
for condition:
if condition:
while condition:
none of the choices

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of an if-else statement?
To execute a block of code repeatedly as long as a certain condition is met.
To execute a block of code repeatedly for a specific number of times.
To make a decision based on a condition.
none of the choices

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?