Search Header Logo

Python Programming U1M2

Authored by Jennifer OKeefe

Computers

9th - 12th Grade

Used 11+ times

Python Programming U1M2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function names cannot begin with a number as the first character.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def show_name():

print("Tobias Ledford")


Which code calls the unction in the above code?

show_name.run()

open(show_name)

run show_name

show_name()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function with 2 integer parameters could start with which definition?

function add_numbers(num_1, num_2):

def add_numbers(num_1, num_2):

def 2_numbers(num_1, num_2):

FUNCTION add_numbers(x,y):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_num(num_1 = 10):

print(num_1 + num_1)


Choose the correct output of calling the above function using the following code:


add_num()

0

10

20

An error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python function return values must be stored in variables.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_num (num_1 = 10):

return num_1 + num_1


Choose the correct output of calling the function above using the following code:


print(add_num(100))

20

100

200

An error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_numbers(num_1, num_2=10):

return num_1 + num_2


Choose the correct output of calling the function above using the following code:


print(add_numbers(100))

100

110

200

Ann error

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?