Module 2.2

Module 2.2

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

C3.5 - Video 6 - AI

C3.5 - Video 6 - AI

11th Grade

10 Qs

HTML

HTML

11th Grade

13 Qs

Year 10 Data Transmission

Year 10 Data Transmission

9th - 12th Grade

13 Qs

Internet Vocabulary

Internet Vocabulary

7th - 9th Grade

12 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

S2 Subject Choice Quiz

S2 Subject Choice Quiz

8th - 10th Grade

10 Qs

Module 2.2

Module 2.2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Harry Riley

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def lowCase(wordsIn):

....return wordsIn.lower()


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


wordsLower = lowCase("Return THIS lower")

print(wordsLower)

"Return THIS lower"

No Output

"return this lower"

An Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Function return values must be stored in variables.

True

False

3.

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many spaces should the second line of a function be indented?

a tab

five spaces

four spaces

it should not be indented

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I define a function with the three parameters how many arguments will I need to input when I run the code?


Please enter a number value.

1

3

2

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must go at the initial line in the defining of a function?

semicolon

colon

double periods

parenthesis

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a return?

print a value

comeback another time

return a value

to reverse the program

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic block of code in Python that can be shared and called later?

variable

string

boolean!

function