Python!

Python!

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Dr. Moriarty

FREE Resource

Student preview

quiz-placeholder

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the correct way to declare a variable in python?

int x = 5;

x = 5;

x = 5

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the correct way to check if a player's score is greater than 100 in python?

if score > 100:

if (score > 100)

if score >100{

if score > 100

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Extra Credit: Which Animal Crossing character yells at you if you neglect to save?

Mr. Resetti

Isabelle

Tom Nook

K.K. Slider

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

how do you write "else if" in python?

if else

else if

ifels

elif

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do I write a for loop that counts from 0 to 9 in python?

for i, i<10, i++:

for i in range (0, 10):

for int i in range (0,10)

for i range (0, 10)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In python, to show that a statement goes inside a loop, function definition, or if statement, you...

put it in parenthesis

put it in curly brackets

add a colon (:) after it

tab or space it over to the right

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which symbol is used to begin a comment line in python?

#

//

*

/

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

Already have an account?