🔦 Formative Assessment 2: Flow Controls

🔦 Formative Assessment 2: Flow Controls

12th Grade

•

10 Qs

quiz-placeholder

Similar activities

Control Structures - Selection in Python

Control Structures - Selection in Python

8th Grade - University

•

11 Qs

Code.org Unit 5 - Loops

Code.org Unit 5 - Loops

9th - 12th Grade

•

10 Qs

Kuizi 14 - Web

Kuizi 14 - Web

10th Grade - University

•

15 Qs

Conditional statements in python

Conditional statements in python

11th - 12th Grade

•

10 Qs

Selection Control Structure  Quiz

Selection Control Structure Quiz

6th Grade - University

•

10 Qs

XII - CS - Lesson 6 - Control Structure - Quiz 3

XII - CS - Lesson 6 - Control Structure - Quiz 3

12th Grade

•

15 Qs

SC025: Control Structures Lecture Quiz

SC025: Control Structures Lecture Quiz

12th Grade

•

10 Qs

CO - 2_ Quiz 1_Python Conditionals

CO - 2_ Quiz 1_Python Conditionals

10th Grade - University

•

15 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?