
Functions G.12

Quiz
•
Computers
•
11th Grade
•
Medium
Nicolas Homsi
Used 3+ times
FREE Resource
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, ...]
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Stepwise Refinement

Quiz
•
11th - 12th Grade
18 questions
Unit 4 Variables, Conditionals & Functions CS20-21

Quiz
•
9th - 12th Grade
15 questions
Functions in Python

Quiz
•
9th - 12th Grade
9 questions
Computer Science Foundations - Module 4 Review

Quiz
•
9th - 11th Grade
10 questions
Quiz 5 - Excel

Quiz
•
11th Grade
14 questions
Object Orientated Programming 3

Quiz
•
11th - 12th Grade
10 questions
Assessment Quiz 1

Quiz
•
7th - 12th Grade
16 questions
Computer Basics

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade