
Python Function Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Jhunel Peñaflorida
Used 5+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does the following function returns?
1 2 3 10
1 2 5 4
1 2 3 4
Syntax Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does the following function returns?
6
13
16
Syntax Error
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does the following function returns?
"abc"
"ab"
True
Syntax Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is an invalid function call?
greet("Sam")
greet("Sam", "Hello")
greet(msg="Hello", "Sam")
greet(name="Sam")
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What's the output of this function?
[1, 2, 3, 4]
[1, 2]
Error
[3, 4]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
function
def
define
func
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this function return?
Hello
hello
greet
Error
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
20 questions
C - Structures
Quiz
•
University
14 questions
LA6.C6: Graphics Window
Quiz
•
9th Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
MS Excel - Day 04
Quiz
•
University
10 questions
Komdat Chap 2
Quiz
•
University
19 questions
DSA Quest 1.0
Quiz
•
University
20 questions
Hashing
Quiz
•
University
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
