stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
APCSP-Programming Review Flashcards | StudBud
Explore
/
APCSP-Programming Review
When do indefinite loops end?
An example of an indefinite loop is:
APCSP-Programming Review
20 terms
·
StudBud Administration
·
41 plays
Review programming concepts
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
An example of an indefinite loop is:
"for" loop
"while" loop
"For each" loop
"do for" loop
2
When do indefinite loops end?
When the user stops entering data
After the "print" statement
With a "return" statement
When the condition it is testing becomes false
3
Which of the following is the best name for a button that is to clear another component?
Clear
Button1
ClearButton
ButtonC
4
An abstraction is a ____representation that stands for some collection of individual instances.
specific
artistic
general
fixed
5
One main characteristic of an abstraction is it simplifies by leaving out irrelevant aspects.
False
True
6
Which would be considered part of the user interface (UI)? Check all that apply.
An audible click that happens when the user taps the button
The app's memory usage
An error message that appears when something goes wrong
A button that appears on the screen
7
Functions should be used when:
You need the same code more than once
When your program will never need to change
Only when your program is too long
Functions should not be used
8
Which would be considered an event on your smart phone? Choose all that apply.
The phone receive a text message
The app plays a sound clip.
The user taps on the screen
The phone's location changes.
9
Break is to while loops as ____ is to functions/procedures.
print
result
parameter
return
10
Examples of abstraction can be found in which of the following? (Check all that apply.)
Designs
Computer Science
Languages
Maps
11
Which of the following would be a valid App Inventor variable name?
@UN
userName
"user name"
5
12
Can you have an "else" statement without an "if"?
yes
no
13
Functions/procedures always need parameters
True
Only when the condition is false
False
Only when the condition is treu
14
To access a specific value in a list, you use:
the list
the dictionary
the insertion point
the index
15
In App Inventor, shaking the phone/tablet is a(n):
function call
event
argument
parameter
16
Can you have multiple "else" statements with an "if" statement?
no
yes
17
Which of the following would be considered a "computational artifact?" Choose all that apply.
A Google sites web site.
A spreadsheet created with Google Sheets.
A digital recording that mixes two separate tracks of music.
A mobile app
18
Why are "if" blocks used in the "I Have a Dream" app?
to ask if the user wants to close the app
to determine which speech is playing
to determine whether a speech is already playing.
because there are two speeches to choose from
19
The condition an "if" statement is testing always evaluates to:
an integer
it changes each time
a text value
true or false
20
Can you have multiple "else if" statements with an "if"?
no
yes