Search Header Logo

🔦 Formative Assessment 2: Flow Controls

Authored by Neil Christian Capanzana

Computers

12th Grade

Used 10+ times

🔦 Formative Assessment 2: Flow Controls
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?