100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
APCSP Practice Test Questions With Complete Solutions $14.99   Add to cart

Exam (elaborations)

APCSP Practice Test Questions With Complete Solutions

 3 views  0 purchase
  • Course
  • APCSP
  • Institution
  • APCSP

APCSP Practice Test Questions With Complete Solutions

Preview 4 out of 46  pages

  • November 16, 2024
  • 46
  • 2024/2025
  • Exam (elaborations)
  • Unknown
  • APCSP
  • APCSP
avatar-seller
Classroom
APCSP Practice Test Questions With Complete Solutions

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 Correct Answer A. 9 bits

A bakery collects data on sales. Each sales record includes the
date of the sale and some metadata about the items that were
part of the sale. The data includes: the names of the items sold,
the types of items sold, the number of each item sold, and the
price of each item sold. Which of the following CANNOT be
determined from the bakery's data set?

A. The total income from the sales of the bakery received in the
past month.
B. Which customer most frequently purchases bread.
C. The item bought in the highest quantity in the past week.
D. Days when certain items sell the most. Correct Answer B.
Which customer most frequently purchases bread.

A certain social media Web site allows users to post messages
and to comment on other messages that have been posted. When
a user posts a message, the message itself is considered data. In
addition to the data, the site stores the following meta data.

The time the message was posted

,The name of the user who posted the message
The names of any users who comment on the message and the
times the comments were made

For which of the following goals would it be more useful to
analyze the data instead of the metadata?

A. To determine the users who post messages most frequently
B. To determine the time of day that the site is most active
C. To determine the topics that many users are posting about
D. To determine which posts from a particular user have
received the greatest number of comments Correct Answer C.
To determine the topics that many users are posting about

A coffee shop is considering accepting orders and payments
through their phone app and have decided to use public key
encryption to encrypt their customers' credit card information. Is
this a secure form of payment?

A. No, public key encryption allows the credit card information
to be read by the pubic.
B. No, the internet protocols are open standards and thus
everything sent over the internet is sent "in the clear."
C. Yes, public key encryption is built upon computationally hard
problems that even powerful computers cannot easily solve.
D. Yes, public key encryption is secure because it transmits
credit card information in binary. Correct Answer C. Yes,
public key encryption is built upon computationally hard
problems that even powerful computers cannot easily solve.

,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. Which is the most accurate description of how the
school could modify the way studentID is represented in the
database 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 databases 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. Correct Answer A. Add a bit to studentID to double
the number of IDs that the database can represent.

NOTE:
Doubling the number of bits would obviously make room for
more student IDs, but it's inaccurate to say that that doubles the
number of possible IDs. If the number of bits went from 8 to 16,
it's 256 TIMES AS MANY possible ids. 8 bits = 256 values and
16 bits = 65,536 IDs.

A programmer is writing a system that is intended to be able to
store large amounts of personal data. As a programmer develops
the data system, which of the following is the LEAST likely to
impact the programmer's choice in designing the structure of the
system?

, A. Maintaining privacy of the information stored in the data set.
B. Scalability of the system.
C. Structuring the metadata of the information for analysis.
D. The frequency of a particular item occurring in a data set.
Correct Answer D. The frequency of a particular item occurring
in a data set.

A programmer is writing a system that is intended to be able to
store large amounts of personal data. As the programmer
develops the data system, which of the following is LEAST
likely to impact the programmer's choices in designing the
structure of the system?

A. Maintaining the privacy of the information stored in the data
set.
B. Scalability of the system.
C. Structuring the metadata of the information for analysis.
D. The frequency of a particular item occurring in a data set.
Correct Answer D. The frequency of a particular item occurring
in a data set.

A programmer wrote an essay for his history class, and realized
he has confused the names of Benjamin Franklin and Alexander
Graham Bell. Instead of going through the whole paper and
changing the names, he used the following incorrect algorithm
in an attempt replace every occurrence of "Benjamin Franklin"
with "Alexander Graham Bell" and vise versa:

- First, change all occurrences of "Benjamin Franklin" to
"apple"

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Classroom. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $14.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$14.99
  • (0)
  Add to cart