wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 1: Digital Information (APCSP '25-'26 code.org)

Total questions: 88

Worksheet time: 2hrs 30mins

Name
Class
Date
1.

Convert the decimal 128 to binary:

a)

10000000

b)

01111110

c)

10000001

d)

11001100

2.

Convert the decimal 65 to binary:

a)

01100001

b)

00100001

c)

01000001

d)

00100101

3.

Convert the decimal 254 to binary:

a)

11110000

b)

11111100

c)

11111111

d)

11111110

4.

Convert the binary number 00010001 to decimal:

a)

17

b)

27

c)

37

d)

47

5.

Convert the binary number 11001100 to decimal:

a)

224

b)

134

c)

104

d)

204

6.

Convert the binary number 00100100 to decimal:

a)

26

b)

36

c)

46

d)

56

7.
A way of representing information using only two options
a)
Binary
b)
Multiple Choice
c)
ASCII
d)
API
8.
A contraction of "Binary Digit". It is the single unit of information in a computer, typically represented as a 0 or 1.
a)
BYTE
b)
BIT
c)
Binary
d)
BOO
9.

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

10.
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
11.
What type of test is most similar to binary?
a)
An essay test
b)
Multiple choice
c)
True or False
d)
Fill-in-the-blanks
12.

How high can you count in binary?

a)

As high as you want

b)

Up to 128

c)

Up to 2

d)

Up to 256

13.
What is the largest integer that can be represented using 8 bits?
a)
115
b)
235
c)
255
d)
256
14.

During your Lesson 3 Activity in sending binary messages, you sent 4 bits to your partner while another 4 bits came back from them as well. This back and forth exchange took a total of 16 seconds. Calculate the bit rate of this entire transmission.

a)

.5 bits/second

b)

2 bits/second

c)

4 bits/second

d)

.25 bits/second

15.

As you learned when creating your number system in Lesson 4, you must have the following for this system to work EXCEPT:

a)

Can only include 1 and 0

b)

An agreement on the fundamental ordering of the symbols

c)

A set of unique symbols

16.

What is the minimum number of bits you would need to encode the 26 letters of the alphabet plus a space -- for a total of 27 characters?

a)

2 bits

b)

3 bits

c)

5 bits

d)

6 bits

17.

With regards to representing digital data, the same value (number) can have a different representation depending on the number system used to represented it.

a)

TRUE

b)

FALSE

18.

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

19.

Look at the partial chart above of the ASCII values. According to ASCII character encoding, which of the following letters is represented by the 8-bit binary value: 0100 0010

a)

ASCII Character A

b)

ASCII Character B

c)

ASCII Character D

d)

The table does not contain the value presented by this binary number

20.

With regards to black and white images, which of the following is TRUE?

a)

A white pixel is represented by a "0" bit

b)

"1" represents that pixel being turned on

c)

"1" represents that pixel being turned off

d)

The white pixel can be represented as either a "1" or a "0" bit

21.

With regards to black and white images, which of the following is FALSE?

a)

A black pixel is represented by a "0" bit

b)

"0" represents that pixel being turned off

c)

"1" represents that pixel being turned off

d)

A white pixel is represented by the "1" bit

22.

Which of the following is TRUE regarding lossless and lossy compressions?

a)

An example of lossless compression is a .jpg file

b)

Lossless uses inexact approximations while lossy does not·

c)

You can completely reconstruct lossless but not lossy compression ·

d)

You can completely reconstruct lossy but not lossless compression

23.
What is lossless compression?   
a)
A) Shrinking data and losing some of it
b)
B) Making the code less efficient
c)
C) Shrinking data without losing any of it
d)
 D) Expanding a set of data via aggregation
24.
Which of the following image files is compressed and lossless? 
a)
A. BMP
b)
B. JPEG
c)
C. PNG
d)
D. GIF
25.
Which compression technique allows for the full reconstruction of the original data?
a)
Lossy Compression
b)
Multi-Band Compression
c)
Lossless Compression
d)
Parallel Compression
26.
How many bits are in a byte?
a)
2
b)
8
c)
16
d)
128
27.

Which of the following is TRUE regarding 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 size.

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.

28.
For black and white images, a pixel is represented by
a)
one bit
b)
one byte
c)
12 bits
d)
8 bits
29.
If 12 bits are used to represent one pixel of a color image, how many bits are used to represent each color channel?
a)
2
b)
3
c)
8
d)
4
30.
An image compression technique removes pixels with color differences that are difficult for the human eye to detect. This type of compression is
a)
lossless
b)
lossy
c)
brute force
d)
computationally hard
31.
How many more values can be represented by a 64 bit integer than a 32 bit integer?
a)
2 times as many values 
b)
32 times as many values 
c)
2^32 times as many values
d)
32^2 times as many values
32.

A student is transferring photos from her camera to her computer. The student notices that the saved photos on her computer are lower quality than the original raw photo on her camera.

Which of the following could be a possible explanation for the difference in image quality?

a)

The saved image files were compressed with a lossy compression technique.

b)

The saved image files were compressed with a lossless compression technique.

c)

The saved image files were not compressed properly.

d)

Some information is lost every time a file is saved on a computer.

33.

An MP3 audio compression algorithm identifies frequencies and volume levels 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

b)

Lossless

c)

Fast Fourier Transform compression

d)

Tailored compression

34.

You can reverse a transformation process and re-create the original message. What kind of data compression is that?

a)

lossless

b)

lossy

35.

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

a)

True

b)

False

36.

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

a)

True

b)

False

37.
What is a “pixel?” 
a)
An individual letter in ASCII 
b)
Short for picture element 
c)
The name the inventor of the internet 
d)
 The name of the system to code for colors using 0-255, using letters FF0000 to represent the color red
38.
Which compression technique allows for the full reconstruction of the original data?
a)
Lossy Compression
b)
Multi-Band Compression
c)
Lossless Compression
d)
Parallel Compression
39.

A student is transferring photos from her camera to her computer. The student notices that the saved photos on her computer are lower quality than the original raw photo on her camera.

Which of the following could be a possible explanation for the difference in image quality?

a)

The saved image files were compressed with a lossy compression technique.

b)

The saved image files were compressed with a lossless compression technique.

c)

The saved image files were not compressed properly.

d)

Some information is lost every time a file is saved on a computer.

40.

Adding a bit to a binary number...

a)

...doubles the number of values that can be represented.

b)

...increases the number of values that can be represented by 1000.

c)

...increases the number of values that can be represented by 2.

d)

...squares the number of values that can be represented.

41.

How many bits would be needed to count all of the students in a particular class (if the number of students in class is 33)?

a)

4

b)

5

c)

6

d)

7

42.

Each time we add another bit, we can make three times as many numbers as before.

a)

True

b)

False

43.

Which of the following is FALSE regarding decimal and binary systems?

a)

Both systems use the concept of place value

b)

While the binary number system uses ten digits (0-9), the decimal numbers system only uses two (0 and 1)

c)

In both systems, we can calculate each digit's value by multiplying the digit with its matching power of 2 or 10. The sum is the total value of the number.

d)

Each digit in the decimal number system corresponds to a power of 10, whereas each digit in the binary number system corresponds to a power of 2.

44.

When using bits to represent fractions of a number, which of the following is TRUE?

a)

(A) It is possible to represent all possible fractions

b)

(B) The inability to represent numbers exactly results in roundoff errors

c)

Both (A) and (B) are True

d)

Both (A) and (B) are False

45.

Assume your friend just sent you 32 bits of pixel data (just the 0s and 1s for black and white pixels) that were encoded after sampling an image. Choose the two statements that are true.

a)

The 32 bits of pixel data is enough to produce the image using the widget. Nothing else is needed

b)

The digital image would be an exact copy of the analog image

c)

The correct width and height must be input into the pixelation widget to produce the image

d)

The fact that only 32 bits were used to represent the image indicates relatively large sample squares were used. The digital image may vary from the analog image significantly.

46.

Which of the following would result in a better digital approximation of an analog black and white image?

a)

Increasing the size of each sample square, thus decreasing the number of samples taken

b)

Decreasing the size of each sample square, thus increasing the number of samples taken

c)

Using fewer bits to represent the image.

d)

Decreasing the size of each sample square, thus increasing the number of samples taken

47.

Which statement about analog and digital images is true?

a)

With advances in technology, digital images look exactly like the analog images they represent

b)

Sampling an analog image more frequently produces a digital image with a better representation

c)

Analog images come from data that is measured at regular intervals

d)

Digital images come from data that is measures continuously

48.

The Digital Public Library of America is a US project aimed at providing public access to digital holdings in order to create a large-scale public digital library. This would be an example of which of the following?

a)

Open Access

b)

Open Source

c)

Creative Commons

d)

Intellectual Property

49.

OpenTTD is a software video game where developers are able to create complicated rail networks while allowing the players to find their own solutions and designs (Source: DesignRush). This would be an example of which of the following?

a)

Open Access

b)

Open Source

c)

Intellectual Property

d)

Creative Commons

50.

A patent gives its owner the legal right to exclude others from making, using, or selling an invention for a limited period of years in exchange for publishing an enabling public disclosure of the invention . This would be an example of which of the following?

a)

Open Access

b)

Open Source

c)

Intellectual Property

d)

Creative Commons

51.

Pixabay.com is an international, free-to-use website for sharing photos, illustrations, vector graphics, film footage and music. Many of the thousands of photographers & graphic designers that put their images on this site want specific rules on how their images will be used (i.e. not having their images used for commercial purposes). Which of the following should be used specifically for these situations?

a)

Open Access

b)

Open Source

c)

Intellectual Property

d)

Creative Commons

52.

Which of the following is FALSE regarding intellectual property?

a)

Intellectual property can include images, written publications, and video creations

b)

When you create something digitally and leave it on the open web with no restrictions of how it can be used, anyone can use your creation without fear of legal consequences

c)

As the creator of something from your computer, you have complete control of how your creation gets used by others

d)

For something you create and place online, you don't have to have a label of "All Rights Reserved" in your creation to have copyright protection

53.

With regards to sounds, if you want a higher quality sound, you pick a 32-bit audio or an 8-bit audio. More bits means a higher range of numbers.

a)

True

b)

False

54.

When referring to RGB color, if we have 3 bits to represent each color (of red, green, and blue), we would have how many color choices for each pixel?

a)

4

b)

8

c)

16

d)

32

55.

What is the highest value you can count to using 5 bits?

a)

15

b)

16

c)

31

d)

32

56.

What is the the binary equivalent of 0.75?

a)

000001.00 (because of rounding up)

b)

000000.01

c)

000000.111

d)

000000.11

57.

Roundoff errors occur when bit arrangements can’t represent numbers as intended. That being said, a binary number can be made for ANY decimal (such as 0.36).

a)

True

b)

False

58.

What is the the binary equivalent of 0.50?

a)

000001.00 (because of rounding up)

b)

000000.10

c)

000000.11

d)

000000.01

59.

Lisa takes a picture with her smartphone which she subsequently posts online. Allen finds the picture online and posts a copy of it on his website with an attached Creative Commons license. Which of the following best describes who owns the photo?

a)

Allen owns the photo because only holders of a Creative Commons license can own works online.

b)

Lisa owns the photo because she was the original creator and did not license the work.

c)

Lisa owns the photo because it was granted a Creative Commons license by another person online.

d)

Both own the photo because creating a copy makes it her intellectual property.

60.

Which of these binary (base-2) numbers is the smallest?

a)

1000 0001

b)

1100 0001

c)

0110 0110

d)

0001 1111

61.

Convert the binary (base-2) number 0011 0001 to decimal (base-10).

a)

32

b)

64

c)

49

d)

121

62.

Ryan is designing an app that needs to quickly send low quality photos between users. Most smartphones take much higher quality photos than Ryan needs for his app. Which answer best describes the type of compression Ryan should choose and why?

a)

Lossy compression since it typically results in smaller data sizes.

b)

Lossless compression since it ensures perfect reconstruction of the photo.

c)

Lossy compression since it ensures perfect reconstruction of the photo.

d)

Lossless compression since it typically results in smaller data sizes.

63.

Lucy is completing a project as part of a science class using materials she found online. Which of the following is MOST LIKELY to lead to legal consequences?

a)

Modifying a piece of open source software.

b)

Using open access research for which she does not acquire a license.

c)

Failing to publish her work under a Creative Commons license

d)

Using images posted online by another student without permission or citation.

64.

Which of the following is true of intellectual property?

a)

Information created on a computer is not owned by anyone since only analog information is protected under copyright law.

b)

You do not need to cite work created by someone else if both the original work and your use of it are in digital form.

c)

Creative Commons enables content creators to freely distribute their otherwise copyrighted work.

d)

Creative Commons has severely hindered broad and open access to digital information

65.

Jorge is sending a large image file to a friend as part of a shared classroom project. Which of the following is most likely true if Jorge opts to compress the image before sending it?

a)

The image can no longer be represented using bits.

b)

The image will have been converted into an analog form.

c)

The image will require more pixels to display it on the screen.

d)

The image will require fewer bits in order to be represented.

66.

Which of the following is true of lossy and lossless compression algorithms?

a)

Lossy compression algorithms are used when perfect reconstruction of the original data is important.

b)

Lossy compression algorithms are typically better than lossless compression algorithms at reducing the number of bits needed to represent a piece of data.

c)

Lossless compression algorithms are only used to compress text data.

d)

Lossless compression algorithms only allow for an approximate reconstruction of the original data.

67.

Which of the following is true of how computers represent numbers?

a)

With a fixed number of bits some numbers are too large to represent in a computer which will lead to overflow errors.

b)

Using a fixed but large number of bits can eliminate the possibility of round off error when representing numbers in binary

c)

Using a fixed but large number of bits, for example 128, eliminates the possibility of overflow errors.

d)

With a large but fixed number of bits it is possible to eliminate either round-off errors or overflow errors, but not both.

68.

Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which an overflow error occur?

a)

14

b)

15

c)

16

d)

17

69.

When visiting a museum Sue takes a photo of a painting with a smartphone which stores the photo as an image file. Which of the following best describes the differences between the painting itself and the photo of the painting stored on the smartphone?

a)

Both the painting and the photo are analog

b)

Sampling can be used to determine whether the analog image is an accurate representation of the painting

c)

The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used

d)

The photo is a digital representation of the analog painting

70.

Which of the following best describes how computing devices represent information?

a)

A computer will either represent information as bits or bytes but not both

b)

A computer represents data as a byte which is either a 0 or a 1

c)

A computer represents data as bits which is either a 0 or a 1

d)

A computer represents information as bits which contain 8 bytes.

71.

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

72.

the fundamental unit of a digital image, typically a tiny square or dot that contains a single point of color of a larger image

a)

Image

b)

Pixel

c)

metadata

d)

Pie Chart

73.

Consider the following three binary numbers:

01010

010000

1110

Which of the following lists the numbers in order from least to greatest?

a)

010000

1110

01010


b)

01010

1110

010000


c)

01010

010000

1110


d)

1110

01010

010000


74.

The color widget uses 3 bytes of metadata. The first two bytes indicate the width and height of the image. The next byte indicates the number of bits that will be used to represent color. How many bits is used to represent color given the metadata (in binary) 00001000 00001000 0001001

a)

3 bits

b)

6 bits

c)

9 bits

d)

12 bits

75.

Which of the following is irreversible?

a)

lossy compression

b)

lossless compression

c)

abstraction

d)

RLI

76.

Innovation

a)

A new or improved idea, device, product, etc, or the development thereof

b)

A way of representing information using only two options

c)

· A contraction of "Binary Digit"; the single unit of information in a computer, typically represented as a 0 or 1

d)

Time it takes for a bit to travel from its sender to its receiver.

77.

Which of the following is a reason to use lossy compression?

a)

You want the compressed file to be larger than the original.

b)

You want the highest quality audio file possible, with no modifications.

c)

You want the highest quality image file possible, with no modifications.

d)

You want to save space and are not concerned if the file is the highest quality possible.

78.

ASCII

a)

Having multiple backups to ensure reliability during cases of high usage or failure

b)

A group of computers and servers that are connected to each other.

c)

American Standard Code for Information Interchange; the universally recognized raw text format that any computer can understand

d)

A type of computer that forwards data across a network

79.

Abstraction

a)

American Standard Code for Information Interchange; the universally recognized raw text format that any computer can understand

b)

A simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.

c)

A group of computers and servers that are connected to each other.

d)

A type of computer that forwards data across a network

80.

Bit

a)

A set of rules governing the exchange or transmission of data between devices.

b)

The number of bits that are conveyed or processed per unit of time. e.g. 8 bits/sec.

c)

Time it takes for a bit to travel from its sender to its receiver.

d)

A contraction of "Binary Digit"; the single unit of information in a computer, typically represented as a 0 or 1

81.

Binary:

a)

A set of rules governing the exchange or transmission of data between devices.

b)

a simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.

c)

A way of representing information using only two options

d)

having multiple backups to ensure reliability during cases of high usage or failure.

82.

online research output free of any and all restrictions on access and free of many restrictions on use, such as copyright or license restrictions

a)

Open Access

b)

Open Source

c)

Open Door

d)

Creative Commons

83.

programs that are made freely available and may be redistributed and modified;

a)

Open Source

b)

Creative Commons

c)

Expired Copyright

d)

Downloadable Software

84.

public copyright license that enables the free distribution of an otherwise copyrighted work. This is used when the content creator wants to give others to right to share, use and build upon the work they have created;

a)

Copyright Infringement

b)

Plagiarism

c)

Creative Commons

d)

Crowdsourcing

85.

Which of the following statements about sampling is incorrect?

a)

Sampling is a process that can be used to compress an image.

b)

Sampling is a process for turning an analog image into a digital image.

c)

When smaller samples are used, the resulting file will require fewer bytes.

d)

Each pixel of the analog image is coded as one color, and cannot be more than one color.

86.

ASCII is an abstraction because

a)

it allows the user to know the binary code for each character.

b)

the user can type letters and other characters without knowing the binary code assigned to them.

c)

it helps the user convert the decimal representation of a letter to the binary representation for the letter.

d)

the user can read a binary message and translate it into characters.

87.

A computer program is using 4 bits to represent an integer. When the program adds the decimal numbers 10 and 6, the result is 0000. Which of the following describe the result? (Select all that apply)

a)

The number 16 in decimal is 0000 in binary.

b)

An overflow error occurred.

c)

a roundoff error occurred.

d)

You cannot represent the number 16 with 4 bits.

88.

Which of the following are true about how analog data is converted to digital data?

a)

The digital version is a representation of the analog, but cannot contain all of the details.

b)

To make the digital version be a more accurate representation of the analog data, the process should use fewer bits to represent each sample.

c)

A longer interval between measured samples means more details will be captured in the conversion from analog to digital.

d)

The digital version contains all of the details of the analog data, as long as enough storage capacity is available.