
Python Functions Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Vigneshwari S
Used 1+ times
FREE Resource
Enhance your content in a minute
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? def greet(name): return "Hi " + name print(greet("Alex"))
Alex
Hi Alex
greet Alex
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a function has no return statement, it returns:
0
None
Empty string
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
def
function
define
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a function call?
def myfunc()
myfunc()
function myfunc
func myfunc
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? def add(a, b): return a + b print(add(2, 3))
23
5
(2, 3)
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Positional arguments must be:
Passed in order
Always keyword arguments
Optional always
Declared after *args
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function returns the length of a string?
size()
len()
count()
length()
Create a free account and access millions of resources
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
50 questions
Ôn tập môn học tin học đại cương 1
Quiz
•
University
50 questions
VIRUS AND ANTIVIRUS
Quiz
•
10th Grade - University
45 questions
Davinci Resolve 17 Fusion 101
Quiz
•
11th Grade - Professi...
45 questions
CS8591-Computer Networks
Quiz
•
University
50 questions
UH 1
Quiz
•
University
47 questions
Położenie i granice Polski, przeszłość, góry i zlodowacenia
Quiz
•
7th Grade - Professio...
45 questions
Microsoft Excels: Formulas and Functions
Quiz
•
12th Grade - University
50 questions
RIA Revision for Class Test_Set 2
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
