Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

BAI 9 LOP 5

BAI 9 LOP 5

12th Grade

8 Qs

BTEC DIT C3 LAA - Using cloud and traditional systems

BTEC DIT C3 LAA - Using cloud and traditional systems

10th - 11th Grade

10 Qs

Cyber Security Quiz

Cyber Security Quiz

12th Grade

10 Qs

Year 8 Spreadsheets L1 (Basics)

Year 8 Spreadsheets L1 (Basics)

9th Grade

12 Qs

Pengenalan Aplikasi Blender

Pengenalan Aplikasi Blender

11th Grade

13 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Johnny Darling

Used 75+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 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 showName():

print("Tobias Ledford")

Which code below calls the function in the above code?

showName.run()

open(showName)

run showName

showName()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

funct addNumbers(num1, num2):

def addNumbers(num1, num2):

def 2Numbers(num1, num2):

FUNCTION addNumbers(x, y):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def addNum(num1 = 10):

print(num1 + num1)


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


addNum()

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 addNum(num1 = 10):

return num1 + num1


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


print(addNum(100))

20

100

200

an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def addNumbers(num1, num2 = 10):

return num1 + num2


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


print(addNumbers(100))

100

110

200

An Error

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?