
Python Functions and Procedures Quiz

Quiz
•
Computers
•
9th - 11th Grade
•
Hard
Helen Laleendra
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function in Python?
define
func
def
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'return' statement in a function?
To return a value to the main program
To exit the function
To define a variable
To print a value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the function 'add_numbers(2, 2)' return?
2
4
None
22
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the procedure 'count' defined as 'for x in range(1, 11): print(x)'?
1 to 11
0 to 11
1 to 10
0 to 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module is used to generate random numbers in Python?
sys
math
OS
random
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'randint' function from the 'random' module do?
Generates a random string
Generates a random boolean
Generates a random float
Generates a random integer
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the values passed to a function called?
Parameters
Arguments
Variables
Constants
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
PC4.8-PC4.9 CSC403 T2

Quiz
•
9th Grade
10 questions
TLE Q3 QUIZ MODULES 1-5

Quiz
•
10th Grade
10 questions
Quiz Blok Variables dan Operator

Quiz
•
10th - 12th Grade
10 questions
Unit 2 Review

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

Quiz
•
11th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
7 questions
CMU CS Academy Unit 7.2 Local Variables

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade