
Chapter 5
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the objective of writing new functions?
Back
To improve code readability and reusability
2.
FLASHCARD QUESTION
Front
Which of the following is an advantage of creating functions?
Options:
They make the code run faster
They allow you to break up your code into manageable pieces
They increase the complexity of the code
They reduce the need for debugging
Back
They allow you to break up your code into manageable pieces
3.
FLASHCARD QUESTION
Front
Fill in the blank: The function header is return value (or ______), name, a list of parameters between a set of parentheses.
Back
parameter
4.
FLASHCARD QUESTION
Front
What happens when you call your own functions like any other in programming?
Back
The function executes its code, allowing for code reuse and modularity.
5.
FLASHCARD QUESTION
Front
How do parameters and return values allow functions to communicate with the rest of a program?
Back
By allowing data to be passed into functions and results to be returned
6.
FLASHCARD QUESTION
Front
A function ends whenever it hits a ______ statement.
Back
return
7.
FLASHCARD QUESTION
Front
What is the purpose of the function 'askYesNo1()' in the given code example?
Back
To prompt the user for a yes or no answer and return a boolean value.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Disney descendants flashcard
Flashcard
•
KG
10 questions
SUP E3 - PART 1
Flashcard
•
University
11 questions
Genetic Engineering Concepts
Flashcard
•
11th Grade - University
12 questions
Present perfect Vs past tense
Flashcard
•
University
15 questions
Parts of speech: general review
Flashcard
•
11th - 12th Grade
15 questions
AP Biology Genetics Flashcard
Flashcard
•
12th Grade - University
15 questions
"The Importance of Being Earnest"
Flashcard
•
12th Grade - University
10 questions
Python basics
Flashcard
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade