
Module 2.2
Authored by Harry Riley
Computers
9th - 12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
13 questions
Networks
Quiz
•
7th - 9th Grade
10 questions
สอบย่อย ครั้งที่ 1 (BC.2/2)
Quiz
•
11th Grade
10 questions
=NOW()
Quiz
•
11th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade