AP Computer Science Principles Unit 3
Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is NOT true about functions in programming? Functions are reusable programming abstractions., Functions help reduce the complexity of writing and maintaining programs., Functions cannot make calls to other functions within the same program., Functions help break a problem into logical chunks., Once defined, a function can be called many times from different parts of a program.
Back
Functions cannot make calls to other functions within the same program.
2.
FLASHCARD QUESTION
Front
What is one important naming convention of functions?
Back
A function name should be as descriptive as possible to indicate what the function does.
3.
FLASHCARD QUESTION
Front
Which one of the following statements about functions is TRUE:
A function can change names over the course of a program.
Code can be added or removed dynamically from a function while the program is running.
Functions can be called using different names depending on where in the program they are called.
Two functions can be given identical names as long as their code is identical.
Two functions in a single program can have different names but contain identical code.
Back
Two functions in a single program can have different names but contain identical code.
4.
FLASHCARD QUESTION
Front
Which of the following will call the function drawStar? Options: drawStar; drawStar(); function drawStar (){ for (var i=0; i<5; i++){ moveForward(100); turnLeft(36); } } function drawStar; function drawStar();
Back
drawStar();
5.
FLASHCARD QUESTION
Front
For this scenario related to turtle drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task: Drawing out the letters of a word "HELLO"
Back
Function(s)
6.
FLASHCARD QUESTION
Front
For this scenario related to turtle drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task: Drawing 100 tiny dots in a line
Back
Loop
7.
FLASHCARD QUESTION
Front
For this scenario related to turtle drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task: Drawing a circle of any size at any point on the screen
Back
Function(s)
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
Primary Storage Concepts
Flashcard
•
KG
8 questions
CHILDREN 2 (1ST CLASS)
Flashcard
•
KG
11 questions
7517 05 Structured Programming
Flashcard
•
10th Grade - University
8 questions
Unit 3.7 Firm's costs, Revenue & Objective
Flashcard
•
11th Grade
12 questions
Organic 2 Exam 4 Review
Flashcard
•
KG
11 questions
3D Design Vocabulary Flashcard
Flashcard
•
10th Grade
12 questions
Descriptive adjectives for Home and Furniture
Flashcard
•
10th Grade - University
4 questions
Untitled Flashcards
Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade