
Python Functions Quiz
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Adham Elmuntser
Used 1+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(greet('Bob')) if the greet function is defined as:
Hello Bob
Hello, Bob!
Hello, !
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of the exponent parameter in the pow function in example 2?
1
2
3
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(pow(4, 3)) given the pow function is defined as:
16
8
64
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of print(add(3, 4)) if the add function is defined as:
5
7
3.5
14
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the function: def multiply(x, y, z): return x * y * z + 2 What is the output of print(multiply(1, 2, 3))?
8
9
6
12
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the function concatenate is defined as: def concatenate(*args): print(args[1]) What is the output of concatenate('hello', 'world')?
hello
world
hello, world
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(calculate(8, 2)[2]) if the calculate function is defined as: def calculate(a, b): return a + b, a - b, a * b, a / b
10
6
16
4.0
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
15 questions
UTS INFORMATIKA
Quiz
•
1st Grade
20 questions
quiz dasar python
Quiz
•
1st Grade - University
15 questions
Exploring Microsoft Word Interface
Quiz
•
1st - 2nd Grade
20 questions
COMPUTER QUIZ
Quiz
•
1st - 7th Grade
15 questions
Systems Architecture
Quiz
•
KG - 9th Grade
20 questions
TIK PAINT
Quiz
•
KG - 2nd Grade
20 questions
Administrasi Sistem Jaringan
Quiz
•
1st Grade
16 questions
Year 8 Digital Media Revision
Quiz
•
KG - 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
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade
