
Python function quiz
Authored by Martin Highmore
Other Sciences, Computers
2nd Grade - University
Used 394+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
def greeting(name):
print ('hello ' + name)
print (greeting('Daddy'))
answer
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
def adder(x, y):
print x + y
print (adder(1, 2))
answer
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
def adder(x, y):
print x + y
print (adder("1","2"))
answer
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
x = 67
if x != 67:
print "x is not equal to 67"
else:
print 'x is equal to 67'
answer
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
def hello():
print ('hello')
def start():
print("start")
start()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output?
x = "This is a string"
def hello():
x = "hello"
print x
print hello()
x in hello and x out side hello
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output
x = 'asa '
print x*3
answer
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
16 questions
C-Programming Basics
Quiz
•
12th Grade
22 questions
Lớp 3: Tổng hợp kiến thức đã học
Quiz
•
3rd - 5th Grade
15 questions
ICT Revision Grade 3
Quiz
•
3rd Grade
15 questions
K5_ÔN TẬP HỌC KÌ 1
Quiz
•
5th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
15 questions
MS Office
Quiz
•
1st - 2nd Grade
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
16 questions
Robotic /coding exam
Quiz
•
6th - 8th 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
Discover more resources for Other Sciences
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade
10 questions
Ada Twist Scientist Comprehension
Quiz
•
KG - 2nd Grade
20 questions
Disney
Quiz
•
KG - 3rd Grade
25 questions
DEFINITE AND INDEFINITE ARTICLES IN SPANISH
Quiz
•
KG - University
20 questions
Rhyming Words
Quiz
•
KG - 3rd Grade