
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
ICT as Platform for Change
Quiz
•
11th - 12th Grade
13 questions
Sistemas de información
Quiz
•
10th Grade - University
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
17 questions
FormazioneSicurezzaSpecifica_Mod. 3.1
Quiz
•
9th - 12th Grade
10 questions
MS word
Quiz
•
11th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
16 questions
ETİK BİLGİ VE SİBER SUÇLAR
Quiz
•
1st - 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