CS 160 FINAL EXAM 2025/2026 CURRENTLY
TESTING QUESTIONS AND DETAILED CORRECT
ANSWERS (VERIFED) GUARANTEED PASS
ALREADY TOP-RATED A+.
CS160
Ace your CS 160 Final Exam with this comprehensive review,
designed to solidify your understanding of programming fundamentals
and problem-solving strategies. This resource provides key practice
problems and detailed explanations covering everything from data
structures to algorithm efficiency.
Why is the language of a computer binary? ...... ANSWER
....... It's easier, cheaper, and more reliable to build
machines and devices that only have to distinguish
between binary states.
What is the 4-bit binary number for the decimal number
Eleven (11)? ...... ANSWER ....... 1011
What is the minimum number of bits you would need to
encode the 26 letters of the alphabet plus a space - a total of
27 characters? ...... ANSWER ....... 5 bits
,2|Page
Which components in the list would be considered "input"
devices? (Choose all that apply.) ...... ANSWER .......
keyboard
mouse
touch screen
Without a processor, a computer cannot run software. ......
ANSWER ....... True
ASCII values are stored as binary numbers in the computer.
Using the table above, which uppercase letter is represented
with binary 0100 1011 ? ...... ANSWER ....... K
PCC uses an 8 bit number to represent each student's unique
pccID. If enrollment doubles, which option below would be
the smallest change necessary to the way pccID is stored to
ensure each incoming student receives a unique ID? ......
ANSWER ....... Add a bit to pccID to double the number
of IDs that the database can represent.
Number systems with different bases such as binary (base-2)
and decimal (base-10) are all used to view and represent
digital data. ...... ANSWER ....... Some large numbers
cannot be represented in binary and can only be
represented in decimal.
,3|Page
Which of the following RGB values represent the color
below? ...... ANSWER ....... rgb(255, 0, 255)
A computer program uses 4 bits to represent nonnegative
integers. Which of the following statements describe a
possible result when the program uses this number
representation?
I. The operation 4 + 8 will result in an overflow error.
II. The operation 7 + 10 will result in an overflow error.
III. The operation 12 + 3 will result in an overflow error.
...... ANSWER ....... II only
What is the decimal equivalent to the binary number
00001101 ? ...... ANSWER ....... 13
What is the decimal equivalent to the binary number
10101010 ? ...... ANSWER ....... 170
What is the decimal equivalent to the binary number
11110000 ? ...... ANSWER ....... 240
, 4|Page
Convert decimal 23 to an 8 bit binary number. ......
ANSWER ....... 00010111
Convert decimal 209 to an 8 bit binary number. ......
ANSWER ....... 11010001
How many bits would you need if you wanted to have the
ability to count up to 100? ...... ANSWER ....... 7
How many different numbers can 6 bits represent? ......
ANSWER ....... 64
If 2 bits can represent 2^2 values and 3 bits can represent
2^3values, and 4 bits can represent 2^4values, n bits can
represent ...... ANSWER ....... 2^n values
The latency of a network connection is most appropriately
measured with which of the following units? ......
ANSWER ....... Milliseconds
Which of the following describes how a distributed denial-of-
service (DDoS) attack is most likely to compromise an online
store's Web site? ...... ANSWER ....... By preventing
customers from placing orders