stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
AP CSP Review #1 Flashcards | StudBud
Explore
/
AP CSP Review #1
AP CSP Review #1
10 terms
·
StudBud Administration
·
24 plays
Multiple choice questions reviewing programming concepts.
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What will be displayed after this code is run?
1 3 5
2 4 6
1 3 6
1 2 3
2
If the variables
onTime
and
absent
both have the value
false
, what is displayed as a result of running the code?
Is anyone there?
Better late than never.
Hello. Better late than never.
Hello. Is anyone there?
3
The program below is run. Which of the following COULD NOT possibly be the output from that program?
10, 5, 10, 5
2, 2, 11, 11
1, 1, 20, 20
10, 10, 10, 10
4
What text will be output by the program?
Output D
Output A
Output C
Output B
5
What number will be output by the console.log command on line 5?
13
16
12
11
6
Which of the following best describes the result of running the program code?
Nothing is displayed; the program results in an infnite loop.
The number 6 is displayed.
The number 0 is displayed.
The number 10 is displayed.
7
What is stored in
updatedScores
after running the program code?
[77, 37, 50, 92, 86]
[82, 0, 0, 97, 91]
[0, 37, 50, 0, 0]
[5, 0, 0, 5, 5]
8
What number will be output by the console.log command on line 5?
35
30
25
10
9
What is the minimum number of connections that would need to be removed in order for device A not to communicate with F?
4
5
3
2
10
What will be displayed after this code segment is run?
5
8
2
6