Font size
WorksheetsUnit 8 Practice Test For CSP
Total questions: 16
Worksheet time: 11mins
What is the decimal value of 0111₂?
8
10
7
9
A news website uses 16-bit integers to count the number of times an article has been viewed. The website is becoming more popular, and expects some of the articles to exceed the number of views that can be represented with 16 bits. In anticipation of this, the website is planning to change to 32-bit integers for the view counter. Which of the following best describes the result of using 32-bit integers instead of 16 -bit integers?
2 times as many values can be represented
2^16 times as many values can be represented
16 times as many values can be represented
16^2 times as many values can be represented
Which ASCII character is represented by the decimal (base 10) number 74?
(a)
According to the ASCII character encoding, which of the following characters is represented by the hexadecimal (base 16) number 6F?
(a)
What does it mean for a compression method to be lossy?
The data is stored very compactly
Nothing is lost in the storage process
Some data is lost but the output is exactly the same.
Some data is lost but the data output is basically the same.
Given the three following values which one is the median?
The decimal value 21410
The binary value 110110012
Hexadecimal value D516
21410
110110012
D516
An online store uses 4-bit binary values to identify each unique item for sale. The store plans to increase number of items it sells and is considering changing to 5-bit binary values. Which of the following best describes the result of using 5-bit values instead of 4-bit values?
2 more items can be uniquely identified
2 times as many items can be uniquely identified
5 more items can be uniquely identified
25 times as many items can be uniquely identified
The following binary addition stored into a 4 bit value results in a value of zero.
1101
+ 0011
0000
Which of the following best explains why?
The result was affected by lossy data compression.
An overflow error occurred.
A round-off error occurred.
An off-by-one error occurred.
The bits below are a base 2 representation of an RGB pixel. Which of the following is a true statement about the color encoded by this binary sequence:
00001111
01111100
11101001
Red = 0
Blue > Red + Green
Red > Blue + Green
Green > Blue + Red
Suppose we have the function attached that modifies a pixel and returns the result. Which of the following best describes the result of applying this filter to every pixel in the image?
The image will look slightly brighter.
The image will be grayscaled to a black and white image.
The image will be inverted, bright pixels will become dark and dark pixels will become bright.
The image will look slightly darker.
How many different values can be represented using 6 bits?
128
16
32
64
Convert the following hexadecimal value to binary: C7D9.
(a)
Convert the following binary value to hexadecimal. 1100101011110011
(a)
Convert the following binary value to decimal. 11001110
(a)
Convert the following decimal value to binary. 185
(a)
What color would you describe the following hexadecimal RGB encoding as? 00FF00
Green
Yellow
Cyan
Magenta
Blue
