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

Exam (elaborations)

APCSP Practice Exam Questions With Complete Solutions

 1 view  0 purchase
  • Course
  • APCSP Practice
  • Institution
  • APCSP Practice

APCSP Practice Exam Questions With Complete Solutions .A bank uses a computer program during the night to tell if the alarm should be rung. Sensors in the bank set the following Boolean variables: vaultClosed: set to true if the bank vault is closed; otherwise falseheardNoise: set to true if ...

[Show more]

Preview 2 out of 10  pages

  • October 11, 2024
  • 10
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • APCSP Practice
  • APCSP Practice
avatar-seller
stuviaunmatched
APCSP Practice Exam Questions With
Complete Solutions

.A bank uses a computer program during the night to tell if the alarm should be rung. Sensors in the
bank set the following Boolean variables:

vaultClosed: set to true if the bank vault is closed; otherwise falseheardNoise: set to true if a
microphone heard noise; otherwise falsesawMovement: set to true if a camera saw movement in the
bank; otherwise false

The automatic alarm should notify the police if there is noise and movement in the bank, or if the bank
vault is open. Which of the following boolean expressions can be used in a selection statement to ring
the alarm? - ANSWER-NOT vaultClosed OR (heardNoise AND sawMovement)



.A byte is made up of 8 bits (binary digits). You have a programming language that uses one byte to
represent characters and are now modifying your language to use two bytes to represent characters.
How many more characters can you represent in your new programming language? - ANSWER-2^8
times as many characters



.A construction company is building a tall skyscraper and is considering two different types of material to
use for the beams in the building. The company decides to use a computer simulation of each option to
determine which material will cause the building to be more stable.

Which of the following is NOT true about the company's plan? - ANSWER-The simulation will not
produce usable results because actual data about each material is not available



.A program is expressed in a programming language. Which of the following is true of the program? -
ANSWER-The program can also be expressed as binary code, which is what the program will be
translated to in order to execute on the computer



.A researcher is emailing images of soil samples back to her lab so her team can analyze them. She
notices that the images sent in her email are of lower quality than the images on her camera. Which of
the following could be a possible explanation for the difference in image quality? - ANSWER-Before
being sent, the image was compressed using a lossy compression technique

, .A search engine has a trend-tracking feature that provides information on how popular a search term is.
The data can be filtered by geographic region, date, and search term.

Which of the following questions is LEAST likely to be answerable using the trends feature? - ANSWER-
What region of the country has the highest population of a particular animal



.A user enters a Web address in a browser, and a request for a file is sent to a Web server. Which of the
following statements are true about how the file is sent to the user?

I - The file is broken down into several packets for transmission.

II - The packets must be reassembled by the user's device upon receipt.

III - The user's browser must request each individual packet, in order, until all packets are received -
ANSWER-I and II



.A video viewing Website previously used 32-bit integers to store the number of views for each video,
but a video that had been watched billions of times hit the maximum value. What is it called when this
maximum is exceeded? - ANSWER-An overflow error



.A Website is considering an update to its servers that would save the geolocations of users accessing
the site. Which of the following is LEAST likely to occur as a result of this update? - ANSWER-Users in a
certain location may no longer be able to access the Website



.According to the domain name system (DNS), which of the following is a subdomain of the domain
test.com? - ANSWER-info.test.com



.Assume we have an algorithm used to simulate the results of flipping a coin n times. Two variables used
for the algorithm are heads_counter, storing the number of heads we've had, and flip_counter, storing
the number of flips we've made. We want to add on to the algorithm so that at the end we display
whether there were an odd or even number of tails. - ANSWER-Both Algorithm A and Algorithm B
always calculate the correct answer.



.Based on the code segment, how would you best describe the value of resultList? - ANSWER-resultList
contains all items from inputList that met the Mystery condition



.Based on the code segment, how would you best describe the value of resultList? - ANSWER-resultList
contains the result of calling the Mystery procedure on every item in inputList

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 stuviaunmatched. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80562 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
$13.19
  • (0)
  Add to cart