
2024-2025 CodeHS Computer Science Principles Fall Final Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

55 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Why do we use functions in programming?
Back
Break down our program into smaller parts, Avoid repeating code, Make our program more readable.
2.
FLASHCARD QUESTION
Front
What is a code comment?
Back
A way to give notes to the reader to explain what your code is doing.
3.
FLASHCARD QUESTION
Front
Why do we use if statements in Python?
Back
To do something only if a condition is true
4.
FLASHCARD QUESTION
Front
Which general if statement definition is written correctly?
Back
5.
FLASHCARD QUESTION
Front
What does an if/else statement look like in Python?
Back
6.
FLASHCARD QUESTION
Front
Why do we use if/else statements in Python?
Back
To do something if a condition is true and do something else if the condition is false
7.
FLASHCARD QUESTION
Front
Why do we use while loops in Python?
Back
To repeat some code while a condition is true
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?