Search Header Logo

Python Quiz

Authored by Tieka North

Other

12th Grade

14 Questions

Used 13+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

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

def function_name(parameters):

function_name(parameters):

def function_name:

function_name:

2.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

Which of the following is the correct way to comment a single line in Python?

*/

/*

//

#

3.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

What is the correct way to call a function in Python?

call_function()

function()

my_function

my_function()

4.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

Which of these is a valid Karel command?

move

turn_right

drop_ball()

take_ball()

5.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

Which one of these is NOT a command that Karel knows?

turn left

turn right

put down a ball

pick up a ball

6.

FILL IN THE BLANK QUESTION

5 mins • 3 pts

______ is giving commands to a computer.

7.

MULTIPLE CHOICE QUESTION

5 mins • 3 pts

Media Image

If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs?

street 2 avenue 4

street 6 avenue 2

street 2 avenue 6

street 5 avenue 6

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?