Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

CodeHS Classes & Objects

CodeHS Classes & Objects

9th - 12th Grade

10 Qs

Python Functions

Python Functions

9th - 12th Grade

13 Qs

Structured Programming

Structured Programming

9th Grade

11 Qs

Python Revision Tour - I

Python Revision Tour - I

12th Grade

15 Qs

Python If Statements - and or not

Python If Statements - and or not

11th Grade

10 Qs

Python End of Topic Quiz

Python End of Topic Quiz

8th Grade - University

15 Qs

[AP CSP] Unit 4 Review: Functions and Lists

[AP CSP] Unit 4 Review: Functions and Lists

9th - 12th Grade

10 Qs

Java Inheritance Quiz

Java Inheritance Quiz

11th Grade

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.

function

Media Image

conditional

Media Image

for loop

Media Image

list

Media Image

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