wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 8 Practice Test For CSP

Total questions: 16

Worksheet time: 11mins

Name
Class
Date
1.

What is the decimal value of 0111₂?

a)

8

b)

10

c)

7

d)

9

2.

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?

a)

2 times as many values can be represented

b)

2^16 times as many values can be represented

c)

16 times as many values can be represented

d)

16^2 times as many values can be represented

3.

Which ASCII character is represented by the decimal (base 10) number 74?

(a)  

4.

According to the ASCII character encoding, which of the following characters is represented by the hexadecimal (base 16) number 6F?

(a)  

5.

What does it mean for a compression method to be lossy?

a)

The data is stored very compactly

b)

Nothing is lost in the storage process

c)

Some data is lost but the output is exactly the same.

d)

Some data is lost but the data output is basically the same.

6.

Given the three following values which one is the median?
The decimal value 21410
The binary value 110110012
Hexadecimal value D516

a)

21410

b)

110110012

c)

D516

7.

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?

a)

2 more items can be uniquely identified

b)

2 times as many items can be uniquely identified

c)

5 more items can be uniquely identified

d)

25 times as many items can be uniquely identified

8.

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?

a)

The result was affected by lossy data compression.

b)

An overflow error occurred.

c)

A round-off error occurred.

d)

An off-by-one error occurred.

9.

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

a)

Red = 0

b)

Blue > Red + Green

c)

Red > Blue + Green

d)

Green > Blue + Red

10.

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?

a)

The image will look slightly brighter.

b)

The image will be grayscaled to a black and white image.

c)

The image will be inverted, bright pixels will become dark and dark pixels will become bright.

d)

The image will look slightly darker.

11.

How many different values can be represented using 6 bits?

a)

128

b)

16

c)

32

d)

64

12.

Convert the following hexadecimal value to binary: C7D9.

(a)  

13.

Convert the following binary value to hexadecimal. 1100101011110011

(a)  

14.

Convert the following binary value to decimal. 11001110

(a)  

15.

Convert the following decimal value to binary. 185

(a)  

16.

What color would you describe the following hexadecimal RGB encoding as? 00FF00

a)

Green

b)

Yellow

c)

Cyan

d)

Magenta

e)

Blue