What keyword is used to define a function in Python?

Functions & Modular Programming

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
Tarra Jackson
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
func
define
def
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What will be the output of the following code?
Hello
"Hello"
greet()
Nothing
3.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What is the difference between a parameter and an argument?
A parameter is a value passed into a function, and an argument is a variable in the function.
A parameter is a placeholder in the function definition, while an argument is the actual value passed when calling the function.
They are the same thing.
A parameter is only used in loops.
4.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Which of the following is NOT a function in Python?
print()
return()
input()
len()
5.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What will happen if a function does not have a return statement?
It will automatically return None.
The program will crash.
The function will return the last value used.
The function cannot be called.
Similar Resources on Wayground
10 questions
Database Practice Test 1 Part 2 Review

Quiz
•
11th Grade
8 questions
MIS-RODOCODO

Quiz
•
1st Grade - University
9 questions
Sec Unit 3 - L02 - Network Devices and Symbols

Quiz
•
11th Grade
10 questions
PENSAMENTO_COMPUTACIONAL_Funções em JavaScript

Quiz
•
11th Grade
10 questions
Python Module 2 Section 6 Review

Quiz
•
11th Grade
9 questions
Condition Programming Quiz

Quiz
•
1st Grade - University
10 questions
Python Mod 2 Sec 1

Quiz
•
11th Grade
10 questions
Input and Output Devices Challenge

Quiz
•
7th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade