• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 29 pages
Exam (elaborations)

AP Computer Science Final Exam with Verified Answers

Document preview thumbnail
Preview 3 out of 29 pages

A certain programming language uses 4-bit binary sequences to represent nonnegative integers. For example, the binary sequence 0101 represents the corresponding decimal value 5. Using this programming language, a programmer attempts to add the decimal values 14 and 15 and assign the sum to the variable total. Which of the following best describes the result of this operation? - An overflow error will occur because 4 bits is not large enough to represent 29, the sum of 14 and 15. ASCII is a character-encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter "G" is represented by the decimal (base 10) value 71. A partial list of characters and their corresponding ASCII values are shown in the table below. - V/86 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? - 2 times as many items can be uniquely identified In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs? - The program can only use a fixed number of bits to represent integers; the computed sum is greater than the maximum representable value

Content preview

AP Computer Science Final Exam with
Verified Answers
A certain programming language uses 4-bit binary sequences to represent nonnegative
integers. For example, the binary sequence 0101 represents the corresponding decimal value 5.
Using this programming language, a programmer attempts to add the decimal values 14 and 15
and assign the sum to the variable total. Which of the following best describes the result of this
operation? - ✔✔An overflow error will occur because 4 bits is not large enough to represent 29,
the sum of 14 and 15.


ASCII is a character-encoding scheme that uses a numeric value to represent each character.
For example, the uppercase letter "G" is represented by the decimal (base 10) value 71. A
partial list of characters and their corresponding ASCII values are shown in the table below. -
✔✔V/86


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? - ✔✔2 times as many items can be uniquely identified


In a certain computer program, two positive integers are added together, resulting in an
overflow error. Which of the following best explains why the error occurs? - ✔✔The program
can only use a fixed number of bits to represent integers; the computed sum is greater than the
maximum representable value.


A video-streaming Web site keeps count of the number of times each video has been played
since it was first added to the site. The count is updated each time a video is played and is
displayed next to each video to show its popularity.
At one time, the count for the most popular video was about two million. Sometime later, the
same video displayed a seven-digit negative number as its count, while the counts for the other
videos displayed correctly. Which of the following is the most likely explanation for the error? -
✔✔The count for the video became larger than the maximum value allowed by the data type
used to store the count.

,Which of the following can be represented by a sequence of bits?
An integer
An alphanumeric character

A machine language instruction - ✔✔I, II, and III


Which of the following are true statements about the data that can be represented using binary
sequences?
Binary sequences can be used to represent strings of characters.
Binary sequences can be used to represent colors.

Binary sequences can be used to represent audio recordings. - ✔✔I, II, and III


Consider the 4-bit binary numbers 0011, 0110, and 1111. Which of the following decimal values
is NOT equal to one of these binary numbers? - ✔✔9


Which of the following best explains how an analog audio signal is typically represented by a
computer? - ✔✔An analog audio signal is measured at regular intervals. Each measurement is
stored as a sample, which is represented at the lowest level as a sequence of bits.


The position of a runner in a race is a type of analog data. The runner's position is tracked using
sensors. Which of the following best describes how the position of the runner is represented
digitally? - ✔✔The position of the runner is sampled at regular intervals to approximate the
real-word position, and a sequence of bits is used to represent each sample.


A binary number is to be transformed by appending three 0s to the end of the number. For
example, 11101 is transformed to 11101000. Which of the following correctly describes the
relationship between the transformed number and the original number? - ✔✔The transformed
number is 8 times the value of the original number.

, Internet protocol version 4 (IPv4) represents each IP address as a 32-bit binary number.
Internet protocol version 6 (IPv6) represents each IP address as a 128-bit binary number. Which
of the following best describes the result of using 128-bit addresses instead of 32-bit
addresses? - ✔✔2^96 times as many addresses are available.


Each student that enrolls at a school is assigned a unique ID number, which is stored as a binary
number. The ID numbers increase sequentially by 1 with each newly enrolled student. If the ID
number assigned to the last student who enrolled was the binary number 1001 0011, what
binary number will be assigned to the next student who enrolls?

A - ✔✔1001 0100


A store uses binary numbers to assign a unique binary sequence to each item in its inventory.
What is the minimum number of bits required for each binary sequence if the store has
between 75 and 100 items in its inventory? - ✔✔7


Consider the following numeric values.
Binary 1011
Binary 1101
Decimal 5
Decimal 12
Which of the following lists the values in order from least to greatest?

A - ✔✔Decimal 5, binary 1011, decimal 12, binary 1101


A computer program performs the operation 2/3 and represents the result as the value
0.6666667 Which of the following best explains this result? - ✔✔The precision of the result is
limited due to the constraints of using a floating-point representation.


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? - ✔✔The song was saved using fewer bits per second than the original song.

Document information

Uploaded on
October 5, 2025
Number of pages
29
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
12
Followers
0
Items
12590
Last sold
3 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions