100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

APCSP Final Exam |Guaranteed Success|100% Accurate

Rating
-
Sold
-
Pages
41
Grade
A+
Uploaded on
04-12-2024
Written in
2024/2025

APCSP Final Exam |Guaranteed Success|100% Accurate












Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
December 4, 2024
Number of pages
41
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

, 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
$15.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
MedMerit

Get to know the seller

Seller avatar
MedMerit Capella University
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
76
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions