Unit 1 Module 2 Test

Unit 1 Module 2 Test

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

9th - 12th Grade

16 Qs

CodeHS: Unit 6 - JavaScript Basics

CodeHS: Unit 6 - JavaScript Basics

9th Grade

15 Qs

Python CT con

Python CT con

10th - 12th Grade

15 Qs

Python Final 052224 - 3

Python Final 052224 - 3

10th Grade

12 Qs

AP CSP Python Quiz 1

AP CSP Python Quiz 1

10th - 12th Grade

11 Qs

SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

10th Grade

10 Qs

Objects

Objects

8th - 12th Grade

16 Qs

Python Programming

Python Programming

5th Grade - University

15 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?