Intro to Python Final

Intro to Python Final

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

9th - 12th Grade

15 Qs

Python Intermediate

Python Intermediate

9th - 11th Grade

15 Qs

For and While Loops in Python

For and While Loops in Python

9th - 12th Grade

16 Qs

Python Basic files

Python Basic files

10th - 12th Grade

10 Qs

Pseudocode WHILE Loops

Pseudocode WHILE Loops

10th - 12th Grade

10 Qs

Tracing Loops in Java

Tracing Loops in Java

12th Grade

17 Qs

Iteration

Iteration

9th - 12th Grade

15 Qs

Intermediate Python

Intermediate Python

9th - 11th Grade

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