
Python Function Quiz

Quiz
•
Computers
•
University
•
Hard
Jhunel Peñaflorida
Used 5+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python revision

Quiz
•
10th Grade - University
10 questions
J277 - 2.2 - Functions in Python

Quiz
•
10th Grade - University
13 questions
JavaScript

Quiz
•
University
15 questions
C++ Quiz-1

Quiz
•
University
10 questions
5-函数

Quiz
•
University
10 questions
Programacion

Quiz
•
University
20 questions
Quiz Pemrograman Lanjut 2022/2023

Quiz
•
University
19 questions
Web Development Quiz

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Computers
36 questions
USCB Policies and Procedures

Quiz
•
University
4 questions
Benefits of Saving

Quiz
•
5th Grade - University
20 questions
Disney Trivia

Quiz
•
University
2 questions
Pronouncing Names Correctly

Quiz
•
University
15 questions
Parts of Speech

Quiz
•
1st Grade - University
1 questions
Savings Questionnaire

Quiz
•
6th Grade - Professio...
26 questions
Parent Functions

Quiz
•
9th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University