stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
AP Comp Sci Final Review!! Flashcards | StudBud
Explore
/
AP Comp Sci Final Review!!
AP Comp Sci Final Review!!
50 terms
·
StudBud Administration
·
5 plays
Extra Credit Assignment for review
Flashcards
50 cards
F
Practice quiz
P
Host live
L
Questions
50
Answers
1
What is the minimum number of bits that can represent those 3 options?
6
3
2
2
Any number that can be written without a fractional component is known as
Integer
Decimal
Data
3
Which of the following comparisons between scanners is the most likely to be true?
HP scanner captures some detail of a scanned document that Fujitsu misses
Canon scanner may miss some details that HP scanner captures
Epson scanner may miss some details that the Canon scanner captures
4
What is a benefit to using pseudocode?
Pseudocode represents coding concepts common to all programming languages
Pseudocode can run in the web browser
Pseudocode runs much faster than other programming languages
5
If they apply Huffman coding to the temperature data, which data is most likely represented with a shorter bit code?
5
6
7
6
This is Nyala’s code for storing the monster’s coordinates. What will be the value of x after this code runs?
27
55
82
7
How many bytes long is that sequence of bits?
32
8
4
8
How many characters are encoded in that binary data?
4
2
32
9
When it comes to image type, computers can more easily compress:
Photographs
Digital clip art
10
After running that code, what will be displayed?
65 30 3
3 65 30
30 65 3
11
What will be the output of that code?
1 0 4 3
1 0 3 4
1 0 3 3
12
What will be the value of eyeX after this code runs?
50
200
250
13
Which of these data sources is analog?
Two years of weekly high temperatures for Houston, Texas
Thirty seconds of sounds from a thunderstorm in Miami, Florida
The daily time of sunrise and sunset in Detroit, Michigan
14
After the code runs, what value is stored in result?
5
8
3
15
What compression algorithm do computers use for the simplest of images
Bitmaps
Run-length encoding
Application ions
16
Which of these words could byte pair encoding compress the most?
ball
bookkeeper
balloons
17
How many bits are in 3 bytes?
36 bits
30 bits
24 bits
18
According to CP1124, what is the binary encoding of the Ukrainian word “вже”?
1101 0010
1101 0010 1101 0110 1101 0101
0101 0110 0010
19
According to TIS-620, what is the binary encoding of the Thai word "พนา"?
1011 1011 1101
1110 1001 0010
1010 1110 1010 1001 1010 0010
20
How many statements are in the above program?
3
2
6
21
How many characters are encoded in that binary data?
24
3
8
22
What error results when the number of bits is not enough to represent the actual number?
Over flow
Round-off
Heuristic
23
What error results when the number of bits is not enough to hold the number?
Round-Off
Over flow
Undecidable
24
What’s a good use case for using a lower quality setting?
Saving a thumbnail that will link to a full-sized version
Saving a photo of a textbook for easing reading offline
Saving photos that you want to print out and frame
25
What is true about this binary data?
Sequence of bits might represent positive, negative, or fractional numbers
Sequence can represent positive & negative numbers, but not fractional #s
This sequence might represent positive numbers but not negative numbers.
26
Which choice puts a space after each byte?
01010101 11010010 11000000
0101 0101 1101 0010 1100 0000
01 01 01 01 11 01 00 10 11 00 00 00
27
Which option puts a space after each byte?
1011 0110 1011 0001
10 11 01 10 10 11 00 01
10110110 10110001
28
Which of these values can be stored in a single bit?
[0,1]
2
0
29
A byte consists of how many bits
20
16
8
30
What does the program output?
MisterSplashyPants
Mister Splashy Pants
31
Which of the letters in “START” is represented by that encoding?
s: S
r: R
t: T
32
After the code runs, what is displayed?
O-:
: - O
O - :
33
Which types of data are stored on a computer using bits?
I, II, and III
I only
I and II only
34
A sequence of three bits can represent how many different values
8
4
12
35
What’s the least number of bits that you’ll need to represent the current minute (0-59) in binary?
16
6
8
36
How many bytes long is that sequence of bits?
2
8
16
37
What will be the value of garlicCount after this code runs?
6
3
2
38
What is the most likely cause of the level 22 bug?
Round-off error in floating-point arithmetic
Integer overflow error
Incorrect use of integer instead of floating-point representation
39
Which of these values can be stored in a single bit?
4
11
0
40
What compression allows the original data to be perfectly reconstructed from the compressed data.
Lossless compression
Lossy compression
41
What will be the value of a after this code runs?
97
93
89
42
What is true about this binary data?
This sequence of bits might represent numbers, letters, or emoji symbols
This sequence might represent letters or emoji symbols but not numbers
This sequence might represent numbers or letters but not emoji symbols
43
What compression reduces the size of files by discarding the less important information but can affect file quality
Lossless compression
Lossy compression
44
You’re going to room 13. Identify the binary number you should look for on your door.
1100
1011
1101
45
What value does the emoted variable store?
“AHHHH FIRE!”
“AHHHHfire!”
“ahhhhFIRE!”
46
Which of the following is a single byte of digital information?
0
1101010
10101101
47
After running that code, what will be displayed?
12 12
11 12
12 11
48
What types of data are stored on a computer using bits?
I, II, and III
I and II only
II and III only
49
What values can a binary digit represent?
A binary digit can represent one of the values from 0-9.
A binary digit can only represent the value 1.
A binary digit can represent either the value 0 or 1.
50
The best color palette for compression is black and white
False
True