Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

NHTW Programming

NHTW Programming

9th Grade

10 Qs

My Sql

My Sql

12th Grade

10 Qs

UNIT 2.4 LOGIC

UNIT 2.4 LOGIC

10th Grade

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT 10 : Introduction to Adobe Illustrator(CS5)

ICT 10 : Introduction to Adobe Illustrator(CS5)

10th Grade

10 Qs

CSS9_Q3M3L1_QUIZ5

CSS9_Q3M3L1_QUIZ5

9th Grade

11 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

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

Already have an account?