
Functions G.12
Authored by Nicolas Homsi
Computers
11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A function in Python is a type of variable
A function in Python is a loop structure
A function in Python is a built-in data type
A function in Python is a block of reusable code that performs a specific task.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
define function_name(parameters):
function_name(parameters)
function_name(parameters):
def function_name(parameters):
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are parameters in a function?
Variables declared outside the function
Variables listed inside the parentheses of a function definition
Constants defined within the function
Data types used in the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many parameters can a function have in Python?
Unlimited
Only 3
Unlimited with a maximum of 10
Limited to 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return statement in a function?
To define the function parameters
To terminate the function execution
To skip a specific code block
To specify the value that the function should output.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can a function return multiple values in Python?
Yes
No
Only in specific cases
Sometimes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for calling a function in Python?
functionName(argument1, argument2, ...)
function_name{argument1, argument2, ...}
function_name(argument1, argument2, ...)
function_name[argument1, argument2, ...]
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
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th Grade
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Cultura Digital 1º Trimestre (6º)
Quiz
•
5th - 12th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
13 questions
Direcciones IP v4
Quiz
•
10th - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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