🔦 Formative Assessment 2: Flow Controls

🔦 Formative Assessment 2: Flow Controls

12th Grade

•

10 Qs

quiz-placeholder

Similar activities

Python Control structures

Python Control structures

12th Grade

•

10 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

•

14 Qs

For Loops HW

For Loops HW

9th - 12th Grade

•

12 Qs

G10 CS Bubble Search

G10 CS Bubble Search

12th Grade

•

15 Qs

Programming - Iteration, Basic Programming Constructs & Loop

Programming - Iteration, Basic Programming Constructs & Loop

2nd - 12th Grade

•

10 Qs

Control Structures in Python

Control Structures in Python

11th - 12th Grade

•

13 Qs

CodeHS APCSP Python Control Structures

CodeHS APCSP Python Control Structures

11th - 12th Grade

•

13 Qs

Quiz #3 - Chapter 1-3 Review

Quiz #3 - Chapter 1-3 Review

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?