
Subprograms quiz

Quiz
•
Information Technology (IT)
•
7th Grade
•
Easy
Robert Daniel
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Page Breaks Quiz

Quiz
•
7th Grade
15 questions
Computer Systems Quiz

Quiz
•
7th Grade
10 questions
Unit 1 Code HS Adventures with Karel Javascript

Quiz
•
6th - 8th Grade
10 questions
ICT Sector Opportunities Quiz

Quiz
•
7th Grade
14 questions
CLass VI

Quiz
•
6th - 8th Grade
10 questions
Basics of Microsoft Publisher

Quiz
•
7th Grade
10 questions
Quiz tentang Algoritma Pemrograman

Quiz
•
7th Grade
10 questions
Industrial Arts Services

Quiz
•
7th 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 Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Perfect Squares and Square Roots

Quiz
•
7th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade