100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
APCSP Final Exam |Guaranteed Success|100% Accurate $15.49
Add to cart

Exam (elaborations)

APCSP Final Exam |Guaranteed Success|100% Accurate

 3 views  0 purchase

APCSP Final Exam |Guaranteed Success|100% Accurate

Preview 4 out of 41  pages

  • December 4, 2024
  • 41
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (1)
avatar-seller
MedMerit
, APCSP Final
Exam |Guaranteed Success|100% Accurate




The model used by the simulation software cannot be modified once the simulation has been used

A city planner is using simulation software to study crowd flow out of a large arena after an event has
ended. The arena is located in an urban city. Which of the following best describes a limitation of
using a simulation for this purpose?




Determining the longest word in a textbook

For which of the following problems is using a simulation LEAST likely to be beneficial?




A retail company wants to determine the most popular item that was sold on the company's Web
site last month

In which of the following scenarios would a simulation be the LEAST beneficial?




Using a simulation may expose potential safety issues that can be corrected before construction
begins

The transportation department plans to build a new high-speed train route between two cities. The
transportation department wants to implement a simulation of the train before any construction



1

,begins on this project. Which of the following statements is true about the use of a simulation for
this project?




Investigating ways to reduce the amount of trash in the ocean and Studying the effect of a genetic
change in a population

In which of the following scenarios is using a simulation more beneficial than performing a
calculation?




1324

Consider the following code segment. Which of the following CANNOT be displayed as a result of
executing the code segment?




Any integer value from 7 to 16, inclusive

Consider the following code segment. Which of the following describes the possible values of ans as
a result of executing the code segment?




The player had 3 bonus round attempts and 7 of them earned extra points

In a certain game, a player may have the opportunity to attempt a bonus round to earn extra points.
In a typical game, a player is given 1 to 4 bonus round attempts. For each attempt, the player
typically earns the extra points 70% of the time and does not earn the extra points 30% of the time.
The following code segment can be used to simulate the bonus round. Which of the following is NOT
a possible output of this simulation?




sum ← RANDOM(1, 12) + RANDOM(1, 12) + RANDOM(1, 12)


2

, A spinner contains 12 regions of equal size. The regions are numbered 1 to 12. Which of the
following code segments can be used to simulate the results of spinning the spinner three times and
assigns the sum of the values obtained by the three spins to the variable sum?




A procedure that returns the sum of the values in the file

A student has a data file containing 10,000 numerical values. The student is writing a program to
compute the average of the numbers contained in the file. Which of the following procedures is most
likely to be useful in the student's program?




A procedure findNegative, which returns the row number of the first negative value that appears in
the column or -1 if there are no negative values

A student is writing a program that is intended to replace each negative value in a particular column
of a spreadsheet with the value 0. Which of the following procedures is most likely to be useful in the
student's program?




A procedure isFound, which takes a word and a text file as input and returns true if the word appears
in the text file

Which of the following procedures would be most useful as part of a program to determine whether
a word appears in two different text files?




A musician creates a song using samples of a copyrighted work and then uses a Creative Commons
license to publish the song.

Which of the following actions is most likely to raise legal or ethical concerns?




3

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53340 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
$15.49
  • (0)
Add to cart
Added