stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
CSP 1.1 & 1.2 Review Flashcards | StudBud
Explore
/
CSP 1.1 & 1.2 Review
CSP 1.1 & 1.2 Review
38 terms
·
StudBud Administration
·
16 plays
Quiz Unit 1.1 & 1.2 Assignment Anna Ma & Junko Takahashi
Flashcards
38 cards
F
Practice quiz
P
Host live
L
Questions
38
Answers
1
What kind of conditional statement is this?
if-else-then
if-else
if-then
NOR
2
How many values can a one-way flag be?
2
3
1
4
3
What is the relationship between an object and a method
verb(o)-object(m)
inverse relationship
object(o)-verb(m)
class is the type of method
4
In what order are the values given for a color?
green, red, blue
red, blue, green
blue, green, red
red, green, blue
5
What is the pattern of a best-so-far variable?
initialize, report, check and set
check and set record
initialize, check and set record, report
check and set record, report
6
What does the accumulator do?
constant
uses the most recent value
keep a running total
makes a list
7
What is the best example of encapsulation
putting the details in one place
gas pedal in a car
defining a function
event handler
8
How many bits are in a byte
8
256
2
16
9
True or False: the product backlog provides the most important user stories at the bottem
False
True
10
What is the RGB value for magenta?
123, 0, 255
0, 255, 0
0, 0, 255
255, 0, 255
11
What is the compressed representation of this file?
124351617581
876541
213415165718
145678
12
What type of relationship do lossiness and fidelity have?
inverse
romantic
they are the same
direct
13
What is the object of this code?
()
drum
sprite
beatLots
14
What is the definition of abstraction?
a sequence of events
defining a function
reduction of code
reduce info/detail to facilitate focus on relevant concepts
15
How many distinct values is a byte able to represent?
8
17
128
256
16
What is the CPU core?
central processing unit core
compressed program unit core
central programmed unit control
communicated product unit
17
What decimal number is represented by 1111010?
125
122
141
123
18
What is the compression ratio of this file?
12/13
1.063333
13/12
1-(13/12)
19
What variable role is implemented in this code?
fixed
accumulator
aggregator
best-so-far
20
______ is the way the computer gets information from its environment
input
method
output
object
21
What is a sprint task list?
planning for each hour of the sprint
CPU core
sprint backlog items should be specific & broken into tasks
22
What is a conditional statement?
forever loop
a piece of code that is initialized at the start
a boolean expression
statements that only run under certain conditions
23
What is pixel short for?
picture element
pixel industries
pixellete
picture dots
24
True or False: A higher fidelity means a slower transmission
True
False
25
True or False: A state diagram has states and actions
True
False
26
How would you write 12 in binary?
00001111
00001100
00001101
00110000
27
Why are Turing tests used?
to prevent hacking
to enable programming
because Alan Turing said so
to differentiate between a human and computer
28
Why use a walker variable?
to say to members of a collection during iteration
to look through a collection
to keep a running total
to add something to a collection
29
What is the percent compression of this file?
.769%
8.3%
-8.3%
7.69%
30
How many variables are used to describe LightBot's state?
1
4
3
2
31
What does a higher compression rate indicate?
a bigger file
a higher lossiness
a higher fidelity
a lower lossiness
32
What is the binary representation of 65?
01000001
00100001
10000001
01000001
33
Which part of the code makes this iterate?
when flag is clicked
if-then-else
forever loop
if-then
34
Which of the following is the example of an algorithm?
The instructions for a PLTW activity
A set schedule
Answer 1 & 2
An accumulator
35
True or False: Digital data is data which can only take on discrete values
True
False
36
What is the most recent variable
state of process
assigns an initial value
makes a list
constant value
37
What is used to represent alphabets outside of English?
letters
Binary
ASCII
UTF-8
38
True or False: a fixed variable changes value
false
true