Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 32 pages
Exam (elaborations)

APCSP Final Exam comprehensive questions and verified answers ACTUAL EXAM 2025 TEST!! Graded A+ | 2025|2026 EXAM UPDATE WITH CORRECT ANSWERS 2025/2026

Document preview thumbnail
Preview 4 out of 32 pages

APCSP Final Exam comprehensive questions and verified answers ACTUAL EXAM 2025 TEST!! Graded A+ | 2025|2026 EXAM UPDATE WITH CORRECT ANSWERS 2025/2026

Content preview

APCSP Final Exam comprehensive questions and
verified answers ACTUAL EXAM 2025 TEST!!
Graded A+ | 2025|2026 EXAM UPDATE WITH
CORRECT ANSWERS 2025/2026




"h" - correct answers Assume that both lists and strings are indexed starting with index 1. The
list wordList has the following contents. Let myWord be the element at index 3 of wordList. Let
myChar be the character at index 2 of myWord. What is the value of myChar ?



["abc", "def:, "ghi", "jkl"]



(genre = "mystery") AND ((1 ≤ num) AND (cost < 10.00)) - correct answers A large spreadsheet
contains the following information about the books at a bookstore. A sample portion of the
spreadsheet is shown below. An employee wants to count the number of books that meet all of
the following criteria. For a given row in the spreadsheet, suppose genre contains the genre as a
string, num contains the number of copies in stock as a number, and cost contains the cost as a
number. Which of the following expressions will evaluate to true if the book should be counted
and evaluates to false otherwise?



[-1, 0, 1] - correct answers The following procedure is intended to return true if the list of
numbers myList contains only positive numbers and is intended to return false otherwise. The
procedure does not work as intended. For which of the following contents of myList does the
procedure NOT return the intended result? *



refer to feb 8th quiz for picture

,[-3, -2, -1]

[-2, -1, 0]

[-1, 0, 1]

[1, 2, 3]



['The', 'ight', 'ed box is back'] - correct answers Given the following, what is printed?



['The', 'ight', 'ed box is back'] - correct answers Given the following, what is printed?

s = "The right red box is back"

s.split ("r")



["guitar", "drums", "bass"] - correct answers Consider the following code segment. What are the
contents of secondList after the code segment is executed?



first list -- ["guitar", "drums", "bass"]

secondlist-- ["flute", "violin"]

thirdlist -- []

thirdlist-- firstlist

firstlist-- secondlist

secondlist -- thirdlist



["The', "right', 'red', 'box', 'is', back'] - correct answers Given the following, what is printed?



["The', "right', 'red', 'box', 'is', back'] - correct answers Given the following, what is printed?

s = "The right red box is back"

s.split ( )

,[0,1,2,3,4] - correct answers What is the result of evaluating the expression list(range(5))?



[0,1,2,3,4] - correct answers What is the result of evaluating the expression list(range(5))?



[10, 30, 50, 70] - correct answers refer to 4th picture, march 24&25th



1 3 2 4 - correct answers Consider the following code segment. Which of the following CANNOT
be displayed as a result of executing the code segment?



1**1 2*2 - correct answers In the following procedure, the parameter str is a string and the
parameter num is a number. Consider the following code segment. What is displayed as a result
of executing the code segment? (See picture of code in quiz 4/21)



10 10 - correct answers Consider the following procedure. Consider the following statement.
DISPLAY(doSomething(10, 20)) What is displayed as a result of executing the statement above?
(See picture of code in quiz 4/21)



100 300 500 - correct answers Consider the following code segment. What is displayed as a
result of executing the code segment?



14 - correct answers Consider the following code segment, which is intended to store ten
consecutive even integers, beginning with 2, in the list evenList. Assume that evenList is initially
empty. Which of the following can be used to replace <MISSING CODE> so that the code
segment works as intended?



19 - correct answers What is printed when the following statements execute?



19 - correct answers What is printed when the following statements execute?

, day = "Thursday"

day = 23.5

day = 19

print(day)



21 40 30 50 - correct answers Consider the following code segment. What is displayed as a
result of executing the code segment? see picture on 3/29



3 - correct answers The figure to the left represents a network of physically linked devices,
labeled A through H. A line between two devices indicates a connection. Devices can
communicate only through the connections shown. What is the minimum number of
connections that would need to be removed from the network in order for device A to not be
able to communicate with device F?



4 - correct answers The list wordList contains a list of 10 string values. Which of the following is
a valid index for the list?



5 - correct answers Consider the following code segment. If the value of score1 is 350 and the
value of score2 is 210, what will be the value of result after the code segment is executed? see
pic on 4/6



53 - correct answers What value is printed when the following is executed? (print(int(53.785))?



53 - correct answers What value is printed when the following is executed? (print(int(53.785))?



6 and 8 - correct answers A homework assignment consists of 10 questions. The assignment is
graded as follows. Let numCorrect represent the number of correct answers for a particular
student. The following code segment is intended to display the appropriate grade based on

Document information

Uploaded on
October 11, 2025
Number of pages
32
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

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

Sold
0
Followers
0
Items
58
Last sold
-



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