
Subprograms quiz
Authored by Robert Daniel
Information Technology (IT)
7th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in programming?
A type of variable
A block of code designed to perform a particular task
A type of loop
A syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to define a function in Python?
`function myFunction()`
`def myFunction():`
`create myFunction()`
`define myFunction()`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are parameters in a function?
The name of the function
The values returned by the function
The variables listed inside the parentheses in the function definition
The comments in the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an argument in the context of functions?
A debate between two programmers
The actual value passed to the function
The name of the function
The return type of the function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a recursive function?
A function that calls itself
A function that never stops running
A function that only runs once
A function that is defined outside of a class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a recursive function?
A function that prints "Hello, World!" once
A function that calculates the factorial of a number by calling itself
A function that adds two numbers
A function that sorts a list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case in a recursive function?
The first line of the function
The condition under which the function stops calling itself
The last line of the function
The name of the function
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
15 questions
INFORMATIKA KELAS 7A DAN TB
Quiz
•
7th Grade - University
15 questions
Informatika
Quiz
•
6th - 8th Grade
13 questions
Digital Technology (Year 7) Assessing Prior Knowledge.
Quiz
•
7th Grade
11 questions
ESTRUTURAS DE REPETIÇÃO
Quiz
•
6th - 8th Grade
10 questions
Comunicación y redes sociales
Quiz
•
6th - 8th Grade
10 questions
ICT practical Exam
Quiz
•
7th Grade
10 questions
Lego Spike & Python - Challenge 3 Quiz
Quiz
•
6th - 8th Grade
10 questions
Quiz Sistem Bilangan Biner
Quiz
•
7th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Main Idea and Supporting Details
Quiz
•
7th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade