
Programming Y9B Exam
Quiz by Yaithd Daniel Olivas Arcos
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
What is the definition of a function?
It is a block of code that implements loops.
Is a block of code that only performs loops.
Is a block of code that only runs when it's called.
Is a block of code that performs a specific task all the time.
300s - Q2
What is the command to create a function?
Users enter free textType an Answer300s - Q3
Choose the correct syntax to create a function.
def + parenthesis + function name + colon
parenthesis + def + colon + function name
create + parameter + function name + colon
def + function name + parenthesis + colon
300s - Q4
Choose the block of code without errors. The function takes a parameter, n, and returns 5*n.
300s - Q5
How many parameters does the following function have?
Type the number.
Users enter free textType an Answer300s - Q6
What is the task the function in the image is performing?
Prints the input seven times.
Prints the input six times.
Prints the input once.
Implements a loop to sum numbers.
300s - Q7
To call a function, you need to type the function name followed by the values for the parameters enclosed by the parenthesis.
truefalseTrue or False300s - Q8
Match the command with its description.
Users link answersLinking300s - Q9
Find the code without any errors.
300s - Q10
What is the task the code in the image is performing?
The code returns var1
The code returns var2
The code returns the lowest input.
The code returns the highest input.
300s