Search Header Logo

Python Control Structures Vocab quiz

Authored by Allyson Smith

Computers

9th - 12th Grade

Used 12+ times

Python Control Structures Vocab quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is a for loop?

It repeats code a set number of times
It repeats code until the condition is false
It repeats code until the condition is true
It repeats code once

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is a while loop?

It repeats code a set number of times
It repeats code until the condition is false
It repeats code until the condition is true
It repeats code once

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is not a reason to use a function?

It makes code easier to read
It makes code easier to understand
It makes code run faster
It makes code easier to change

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

You can use a loop in a function.

True
False

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Both while loops and if statements use conditions

True
False

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

In an if/elif statement, Python checks each if or elif condition and runs the code block for the last one that is true.

True
False

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

A variable can never be changed by the program.

True
False

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?