Unit 1 Module 2 Test

Unit 1 Module 2 Test

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

PS Разминка перед циклами

PS Разминка перед циклами

9th - 12th Grade

13 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

Functions in Python

Functions in Python

9th - 12th Grade

15 Qs

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Looping Review

Looping Review

10th - 12th Grade

15 Qs

Podstawy języka Python

Podstawy języka Python

9th Grade

16 Qs

Python Unit 5 Looping

Python Unit 5 Looping

9th - 12th Grade

15 Qs

Arrays

Arrays

11th Grade

10 Qs

Unit 1 Module 2 Test

Unit 1 Module 2 Test

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Benjamin Dusek

Used 22+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?