Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Internet

Internet

6th - 12th Grade

13 Qs

Evaluación Final UNDECIMO 11

Evaluación Final UNDECIMO 11

11th Grade

10 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT 10 : Introduction to Adobe Illustrator(CS5)

ICT 10 : Introduction to Adobe Illustrator(CS5)

10th Grade

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

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.

for loop

Media Image

list

Media Image

function

Media Image

conditional

Media Image

while loop

Media Image

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?