Search Header Logo

Python Games (Virtual Pet and Rock, Scissor and Paper)

Authored by Archie Miranda

Computers

6th Grade

Used 4+ times

Python Games (Virtual Pet and Rock, Scissor and Paper)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python data type is best for storing a pet's name?

int

float

str

bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python operator is used for assignment?

=

==

+=

:=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take user input in Python?

input()

print()

read()

get()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a function in Python?

define function_name():

function function_name():

def function_name():

create function_name():

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to check conditions in Python?

if

while

for

check

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do? hunger = 5 hunger -= 2

Increases hunger by 2

Decreases hunger by 2

Sets hunger to 2

Causes an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best for running the game continuously until an end condition is met?

for loop

while loop

repeat-until loop

loop forever

Access all questions and much more by creating a free account

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?