wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Principles

Total questions: 62

Worksheet time: 47mins

Name
Class
Date
1.

Which of the following decimal (base-10) values is equivalent to the binary (base-2) value 101001?

a)

22

b)

37

c)

41

d)

82

2.

The smallest unit of information is

a)

a byte (Pronounced: bite)

b)

a bit

c)

a nibble

d)

a block

e)

Fortran

3.

The smallest visual element on a video monitor is called what?

a)

Character

b)

Pixel

c)

Byte

d)

Kwerk

4.
A single unit of information represented by a 1 or 0...
a)
Binary
b)
Byte
c)
Bit
d)
Bit Rate
5.
Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?
a)
1,000 times bigger
b)
100,000 times bigger
c)
1,000,000 times bigger
d)
1,000,000,000 times bigger
6.
Select the answer that lists the units of bytes in ascending order (from smallest to largest)
a)
Gigabyte, megabyte, terabyte
b)
Megabyte, terabyte, kilobyte
c)
Gigabyte, terabyte, megabyte
d)
Kilobyte, gigabyte, terabyte
7.
What is the 4-bit binary number for the decimal number Ten (10)?
a)
0010
b)
1010
c)
0110
d)
0101
8.
 How many different digits are used in the Hexadecimal number system?
a)
2
b)
10
c)
8
d)
16
9.

According to Moore’s Law, increases in technological performance should approximately double every year? If this holds true, how much can performance be expected to increase over 5 years?

a)

10 times as much

b)

100 times as much

c)

32 times as much

d)

16 times as much

10.

What is the decimal equivalent of 11010011?

a)

211

b)

210

c)

209

d)

208

11.
Large amounts of structured and unstructured data that can potentially be mined, examined, and used by organizations is the definition of
a)
usable data
b)
data set
c)
usable data
d)
big data
e)
data collection
12.
The representation of information using a chart, diagram, image, etc. is the definition of
a)
indexing
b)
analytics
c)
extraction
d)
concatenation
e)
visualization(s)
13.
A collection of numbers or values that relate to a particular subject usually portrayed in a relational database table.  Example: column header and row contents for test scores for each student. This is the definition of
a)
data set
b)
useful data
c)
usable data
d)
structured data
e)
data persistence
14.
a)

The resulting image will be a grayscale version of the original image.

b)

The overall brightness of all pixels in the resulting image will be darkened.

c)

The resulting image will be completely white.

d)

All of the colors of the resulting image will be inverted, like a negative, of the

original image.

15.

A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?

a)

The song was saved using fewer bits per second than the original song.

b)

The song was saved using more bits per second than the original song.

c)

The song was saved using a lossless compression technique.

d)

Some information is lost every time a file is saved from one location on a computer to another location.

16.

An online store uses 6-bit binary sequences to identify each unique item for sale. The store plans to increase the

number of items it sells and is considering using 7-bit binary sequences. Which of the following best describes the

result of using 7-bit sequences instead of 6-bit sequences?

a)

10 more items can be uniquely identified.

b)

2 more items can be uniquely identified.

c)

2 times as many items can be uniquely identified.

d)

10 times as many items can be uniquely identified.

17.

A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 5

and 3, the result is 0. Which of the following is the best explanation for the result? ( Hint: write as a binary number. How many bits? )

a)

An overflow error occurred.

b)

A round-off error occurred.

c)

The result was affected by lossy data compression.

d)

The result was approximated by a floating-point representation.

18.

Digital images are often represented by the red, green, and blue values (an RGB triplet) of each individual pixel in

the image. A photographer is manipulating a digital image and overwriting the original image. Which of the

following describes a lossless transformation of the digital image?

a)

Compressing the image in a way that may lose information but will suffer only a small loss of image quality.

b)

Creating the gray scale of an image by averaging the amounts of red, green, and blue in each pixel and

assigning this new value to the corresponding pixel in the new image. The new value of each pixel represents

a shade of gray, ranging from white to black.

c)

Creating the negative of an image by creating a new RGB triplet for each pixel in which each value is calculated by subtracting the original value from 255. The negative of an image is reversed from the original; light areas appear dark, and colors are reversed.

d)

Modifying part of the image by taking the pixels in one part of the picture and copying them to the pixels in

another part of the picture.

19.
Convert 128 to binary
a)
10000000
b)
01111110
c)
10000001
d)
11001100
20.
Convert 65 to binary
a)
01100001
b)
00100001
c)
01000001
d)
00100101
21.
Convert 254 to binary
a)
11110000
b)
11111100
c)
11111111
d)
11111110
22.
Convert 37 to binary
a)
00100101
b)
00100011
c)
00100111
d)
01000101
23.
Convert 196 to binary
a)
11000110
b)
11100100
c)
11000100
d)
11010100
24.
Convert 00010001 to decimal
a)
17
b)
27
c)
37
d)
47
25.
Convert 11001100 to decimal
a)
224
b)
134
c)
104
d)
204
26.
Convert 11111111 to decimal
a)
255
b)
245
c)
235
d)
225
27.
Convert 00100100 to decimal
a)
26
b)
36
c)
46
d)
56
28.
Convert 01000100 to decimal
a)
58
b)
68
c)
78
d)
88
29.
If a binary number ends with a 1, it must be...
a)
An odd number
b)
An even number
c)
A prime number
d)
The number 12
30.
What are the only two numbers you can use in binary?
a)
0 and 1
b)
1 and 2
c)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
d)
1, 2, 4, 8, 16
31.
Which of these is the correct sequence for the place values for binary numbers?
a)
1, 2, 4, 8, 16, 32, 64, 128
b)
1, 2, 4, 6, 8, 10, 12, 14, 16
c)
1, 2, 3, 4, 5, 6, 7, 8
d)
0, 1
32.
What is the point of binary?
a)
It represents how computers interpret electrical signals
b)
Because we like to make you do extra maths ;-D
c)
For the lulz
d)
Because it describes star systems
33.
A bit is 
a)
a numerical label assigned to each device.
b)
the smallest unit of data in a computer.
c)
a keyboarding term for typing.
d)
is a numeral system made up of 16 symbols.
34.
What is binary?
a)
A part of a computer
b)
The way computers talk to each other
c)
A computer program
d)
Software for a computer
35.
If 1 and 0 mean on and off. Is the number 1 on or off?
a)
ON
b)
OFF
36.
How is our number system different from the binary system?
a)
Our number system is base-5; the binary system is base-3
b)
Our number system is base-10; the binary system is base-2
c)
Our number system is base-10; the binary system is base-1
d)
Our number system is base 100; the binary system is base-2
37.
How would you write the number two in binary?
a)
1001
b)
0001
c)
0000
d)
0010
38.
A group of 8 bits is known as a gigabyte.
a)
True
b)
False
39.
How would you write the number 4 in binary code?
a)
0100
b)
0000
c)
0001
d)
0010
40.

What is 23 in binary

a)

10101

b)

10110

c)

10111

d)

11000

41.
Binary uses 1’s & 0’s to represent data
a)
True
b)
False
42.
What is 12 in binary?
a)
0010
b)
1010
c)
1100
d)
1111
43.
What is 3 in binary?
a)
0100
b)
0001
c)
0101
d)
0011
44.
Each 1 and 0 represented in binary is called a bit
a)
True
b)
False
45.
There are 8 bits to one byte
a)
True
b)
False
46.

A raw digital sound file samples a sound wave at some interval and measures the height of the wave at each point. Thus, raw sound is recorded as a list of numbers.


In very broad terms the MP3 audio compression algorithm identifies frequencies and volume levels - low and high - that are outside the range of human hearing and removes the data representing these frequencies from the original. This technique results in a smaller audio file that sounds exactly the same to the human ear.


This technique is an example of what type of compression?

a)

Lossy compression

b)

Lossless compression

c)

Fast Fourier Transform compression

d)

Tailored compression

47.

The image below shows an encoding for a black and white pixel image. The first two bytes of the data (circled in red) are used to encode the width and height of the image.


What is the best term for this type of "data about the data"?

a)

Megadata

b)

Superdata

c)

Metadata

d)

Predata

48.

The next two questions use a robot in a grid of squares. The robot is represented as a triangle, which is initially facing up, towards the top of the grid. The robot is moved according to the instructions in the chart above.


Consider the following program which uses commands from the pseudocode described above.


REPEAT 4 TIMES {

MOVE_FORWARD()

MOVE_FORWARD()

MOVE_FORWARD()

ROTATE_RIGHT()

MOVE_FORWARD()

ROTATE_RIGHT()

MOVE_FORWARD()

ROTATE_RIGHT()

}


Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.

a)
b)
c)
d)
e)
49.
What is the aswer to this binary addition?
00110011 + 01000110
a)
11001110
b)
10000110
c)
01111001
d)
00011100
50.
Convert 11111100 to hex?
a)
CF
b)
FF
c)
FC
d)
CC
51.
Convert 001100101110 to hex?
a)
34E
b)
64E
c)
32D
d)
32E
52.

2. which is file format for video?

a)

Motion Picture Expert Group (MPEG)

b)

Flash (flv)

c)

Wave format (WAV)

d)

JAVA

53.

Number systems with different bases such as binary (base-2) and decimal (base-10) are all used to view and represent digital data.


Which of the following is NOT true about representing digital data?

a)

At one of the lowest levels of abstraction, all digital data can be represented in binary using only combinations of the digits zero and one.

b)

The same value (number) can have a different representation depending on the number system used to represent it.

c)

Groups of bits can be used to represent abstractions, including but not limited to numbers and characters.

d)

Some large numbers cannot be represented in binary and can only be represented in decimal.

54.

A middle school is expanding to open a high school next year, doubling the total number of students. The school keeps a database in which each student's unique ID number is stored as an 8 bit number called studentID. Before the arrival of the new students almost every 8 bit number has already been assigned to a student. Of the options provided below, which is the smallest change to the way studentID is represented necessary to ensure each incoming student receives a unique ID?

a)

Add a bit to studentID to double the number of IDs that the database can represent.

b)

Double the number of bits in studentID to double the number of IDs that the database can represent

c)

Keep using an 8-bit number for studentID but reserve the first bit to indicate middle school or high school.

d)

Remove a bit from studentID to make room for incoming students

55.

8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers?

a)

9 Bits

b)

10 Bits

c)

16 Bits

d)

17 Bits

56.

Two students have developed a protocol in which they send 4-bit messages to each other. They decide to modify their protocol to start sending 8-bit messages instead. How many more values can be represented in an 8-bit message than a 4-bit message?

a)

21 = 2 times as many values

b)

22= 4 times as many values

c)

23 = 8 times as many values

d)

24 = 16 times as many values

57.

Which of the following is a true statement about data compression?

a)

Data compression is only useful for files being transmitted over the Internet.

b)

Regardless of the compression technique used, once a data file is compressed, it cannot be restored to its original state.

c)

Sending a compressed version of a file ensures that the contents of the file cannot be intercepted by an unauthorized user.

d)

There are trade-offs involved in choosing a compression technique for storing and transmitting data.

58.

A video-streaming Web site uses 32-bit integers to count the number of times each video has been played. In anticipation of some videos being played more times than can be represented with 32 bits, the Web site is planning to change to 64-bit integers for the counter. Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?

a)

2 times as many values can be represented.

b)

32 times as many values can be represented.

c)

2^32 times as many values can be represented.

d)

32^2 times as many values can be represented.

59.

An artist makes an RGB raster image in which each pixel color is encoded with 12-bits --- 4 bits each for red, green and blue.


Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation.

a)

F00

b)

00F

c)

FF00

d)

FF0000

60.

A compression scheme for long strings of bits called run-length encoding is described as follows:


Rather than record each 0 and 1 individually, instead record "runs" of bits by storing the number of consecutive 1s and 0s that appear.


Since it's binary, any run of 0s must be followed by a run of 1s (even if the run is only 1-bit long) and vice versa. Thus, you can store a list of small numbers that represents the alternating runs of 0s and 1s. The image above is an example:


To uncompress the data back into its original binary state, you simply reverse the process. This technique is an example of what type of compression?

a)

Lossy compression

b)

Lossless compression

c)

Fast Fourier Transform compression

d)

Tailored compression

61.

Consider the following incorrect program, which is intended to move the robot around the perimeter of a grid, as indicated by the drawing above. The starting position and direction of the robot is indicated in the diagram.


Line 1: REPEAT 4 TIMES

Line 2: {

Line 3: MOVE_FORWARD()

Line 4: ROTATE_RIGHT()

Line 5: MOVE_FORWARD()

Line 6: MOVE_FORWARD()

Line 7: MOVE_FORWARD()

Line 8: MOVE_FORWARD()

Line 9: ROTATE_RIGHT()

Line 10: }


Given the options below, which lines should be removed so the program will work as intended?

a)

Line 3 and Line 4

b)

Lines 5, 6, 7, 8 and 9

c)

Line 8 and Line 9

d)

Line 9

62.

What are the benefits of text compression?

two answer

a)

Save computer space

b)

count binary number

c)

to restart

d)

Transfer data faster