Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Homework 1 Edublocks

Homework 1 Edublocks

7th - 9th Grade

12 Qs

Python Basics

Python Basics

KG - University

15 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Python Quiz  -  5

Python Quiz - 5

4th - 11th Grade

10 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

AP CSP Exam Review: Big Idea 3

AP CSP Exam Review: Big Idea 3

8th - 10th Grade

15 Qs

Quiz on Python Functions

Quiz on Python Functions

12th Grade

11 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.

while loop

Media Image

function

Media Image

list

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?