Intro to Python Final

Intro to Python Final

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Coding Pre-quiz

Coding Pre-quiz

6th - 9th Grade

15 Qs

Grade 12-Python selection&iteration

Grade 12-Python selection&iteration

11th - 12th Grade

15 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

Programming - Iteration, Basic Programming Constructs & Loop

Programming - Iteration, Basic Programming Constructs & Loop

2nd - 12th Grade

10 Qs

Python Programming - Iteration

Python Programming - Iteration

9th Grade

12 Qs

Y10 Python Text Files

Y10 Python Text Files

10th Grade

10 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

FOR Loops Python

FOR Loops Python

9th - 12th Grade

12 Qs

Intro to Python Final

Intro to Python Final

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Taylor Anderson

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Eliza will wear a coat if it is raining or if it is less than 50° F outside. Otherwise, Eliza will leave her coat at home.

In which of the following cases will Eliza leave her coat at home?

It is raining and 30°F

It is raining and 55°F

It is not raining and 45°F

It is not raining and 50°F

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes a task effectively broken into smaller parts?

I. Writing a book by brainstorming, making an outline, and drafting the first chapter

II. Comparing two different cameras

III. Using your phone’s calculator

I only

I and III

II only

I, II, and III

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the mathematical expression: 10 - 6 x (4 - 2) / 2 + 5.

9

10

13

17

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If x represents the area of the number line colored blue, which inequality accurately reflects the value of x?

x < 5

x > 5

x ≥ 5

x ≤ 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

total = 0

for i in range(5):

total += i

print(total)

What is the result of running this program code?

3

6

10

The program results in an infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a for loop and a while loop?

A for loop repeats commands a specific number of times and awhile loop repeats until a condition becomes false.

A for loop is used to make decisions between two options and awhile loop is used to make decisions between 3 options or more.

A for loop is used when the variable is less than 10 and a while loop is used when the variable is 10 or greater.

A for loop is used when we only need to meet one condition and awhile loop is used when there are two or more conditions.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the output of the following code be?

x = "Woodruff"

print(x * 5)

Woodruff5

Woodruff Woodruff Woodruff Woodruff Woodruff

WoodruffWoodruffWoodruffWoodruffWoodruff

x5

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?