Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Quiz  -  5

Python Quiz - 5

4th - 11th Grade

10 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Do Now Lesson 2

Do Now Lesson 2

9th - 12th Grade

15 Qs

CS Edexcel Unit 6 Part 4 - Count Controlled Iteration

CS Edexcel Unit 6 Part 4 - Count Controlled Iteration

9th - 10th Grade

11 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 12th Grade

10 Qs

AP CSP Unit 3 Simple Review

AP CSP Unit 3 Simple Review

9th - 12th Grade

8 Qs

Python Essentials I - 4.6.7 Quiz

Python Essentials I - 4.6.7 Quiz

10th Grade

8 Qs

Python Basics

Python Basics

KG - University

15 Qs

Python Review 2023-01-12

Python Review 2023-01-12

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Michael Ida

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this function do?

Returns the product of its parameters

Returns the sum of its parameters

Returns the largest of its parameters

Returns the smallest of its parameters

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code snippet print?

cow

sheep

pig

ox

3.

REORDER QUESTION

1 min • 1 pt

You want to write code to aske the user to enter his or her favorite food and then print "good" if the response is "fries" and "bad" if it isn't. Reorder the statements below to accomplish this.

Media Image
Media Image
Media Image
Media Image
Media Image

4.

DRAG AND DROP QUESTION

1 min • 1 pt

How would you write a for loop to repeat 15 times using a counter variable called count?

for ​ (a)   ​ (b)   ​ (c)   ​ (d)  

count
in
range(15)
:

5.

DRAG AND DROP QUESTION

1 min • 1 pt

You want to create a conditional to check whether a variable called n is positive. How would you do this?

​ (a)   n ​ (b)   ​ (c)   ​ (d)  

if
>
0
:
<
<=
>=
==
!=
for

6.

DRAG AND DROP QUESTION

1 min • 1 pt

A ​ (a)   loop repeats a specified number of times. A ​ (b)   loop repeats as long as a condition is met.

for
while
conditional
list
block
if
variable
function
recursive
iterative

7.

MATCH QUESTION

1 min • 1 pt

Match each description with the code snippet that is an example of that description.

list

Media Image

function

Media Image

while loop

Media Image

conditional

Media Image

for loop

Media Image

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?