Search Header Logo

Unit 1 Module 2 Test

Authored by Benjamin Dusek

Computers

9th - 12th Grade

Used 22+ times

Unit 1 Module 2 Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Select the incorrect function.

print()

123_print()

Print()

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

def display_name():

print("Aaron Rodgers")


Which line of code calls the function in the code above?

display_nam.run()

call(display_name)

print("aaron rodgers")

display_name()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A function with two string parameters could start with which definition?

funct_add_strings(str1,str2):

def add_strings(str1,str2):

def 2_strings(str1,str2)

FUNCTION +_strings(a,b)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

def add_num(num_1=36)

print(num_1+num_1)

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


add_num()

0

36

72

NAME Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python function return variables can only be stored in variables.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_num(num1 = 10)

return num_1+num_1


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


print(add_num(36))

36

100

360

72

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_numbers(num_1,num_2 = 45):

return num_1+num_2


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


print(add_numbers(23))

68

1035

90

46

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?