0% found this document useful (0 votes)
14 views

_Session_2_CSP_2023_AP_Daily_Practice_Sessions_

The document contains multiple-choice questions from an AP Computer Science Principles practice session, covering topics such as data storage, file compression, user input challenges, and binary search. It includes specific scenarios related to databases, programming logic, and data analysis. Each question is designed to assess understanding of fundamental computer science concepts.

Uploaded by

shoaib_ishtiaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

_Session_2_CSP_2023_AP_Daily_Practice_Sessions_

The document contains multiple-choice questions from an AP Computer Science Principles practice session, covering topics such as data storage, file compression, user input challenges, and binary search. It includes specific scenarios related to databases, programming logic, and data analysis. Each question is designed to assess understanding of fundamental computer science concepts.

Uploaded by

shoaib_ishtiaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

2023 AP Daily: Practice Sessions

AP Computer Science Principals


Session 2 – MCQ

1. A database of information about shows at a concert venue contains the following


information.
• Name of artist performing at the show
• Date of show
• Total dollar amount of all tickets sold

Which of the following additional pieces of information would be most useful in


determining the artist with the greatest attendance during a particular month?
A. Average ticket price
B. Length of the show in minutes
C. Start time of the show
D. Total dollar amount of food and drinks sold during the show

2. A video game character can face toward one of four directions: north, south, east, and
west. Each direction is stored in memory as a sequence of four bits. A new version of
the game is created in which the character can face toward one of eight directions,
adding northwest, northeast, southwest, and southeast to the original four possibilities.
Which of the following statements is true about how the eight directions must be stored
in memory?
A. Four bits are not enough to store the eight directions. Five bits are needed for
the new version of the game.
B. Four bits are not enough to store the eight directions. Eight bits are needed for
the new version of the game.
C. Four bits are not enough to store the eight directions. Sixteen bits are needed
for the new version of the game.
D. Four bits are enough to store the eight directions.

3. Consider the following numeric values.


• Binary 1011
• Binary 1101
• Decimal 5
• Decimal 12

Which of the following lists the values in order from least to greatest?
A. Decimal 5, binary 1011, decimal 12, binary 1101
B. Decimal 5, decimal 12, binary 1011, binary 1101
C. Decimal 5, binary 1011, binary 1101, decimal 12
D. Binary 1011, binary 1101, decimal 5, decimal 12

Source: Topic Question; Taken from: AP Classroom


4. A user wants to save a data file on an online storage site. The user wants to reduce
the size of the file, if possible, and wants to be able to completely restore the file to its
original version.

Which of the following actions best supports the user’s needs?


A. Compressing the file using a lossless compression algorithm before uploading it
B. Compressing the file using a lossy compression algorithm before uploading it
C. Compressing the file using both lossy and lossless compression algorithms
before uploading it
D. Uploading the original file without using any compression algorithm

5. A student is creating a Web site that is intended to display information about a city
based on a city name that a user enters in a text field.

Which of the following are likely to be challenges associated with processing city
names that users might provide as input? Select TWO answers.
A. Users might attempt to use the Web site to search for multiple cities.
B. Users might enter abbreviations for the names of cities.
C. Users might misspell the name of the city.
D. Users might be slow at typing a city name in the text field.

6. A camera mounted on the dashboard of a car captures an image of the view from the
driver’s seat every second. Each image is stored as data. Along with each image, the
camera also captures and stores the car’s speed, the date and time, and the car’s
GPS location as metadata.

Which of the following can best be determined using only the data and none of the
metadata?
A. The average number of hours per day that the car is in use
B. The car’s average speed on a particular day
C. The distance the car traveled on a particular day
D. The number of bicycles the car passed on a particular day

Source: Topic Question; Taken from: AP Classroom


A Show Name B Genre C Day D Start Time E End Time

1 Dot Dot Dash rock Sunday 11:00 A.M. 1:00 P.M.


New Afternoon
2 talk Sunday 1:00 P.M. 3:00 P.M.
Show

3 Thursday Beats hip-hop Thursday 7:00 P.M. 9:00 P.M.

4 Gossip Time talk Friday 4:00 P.M. 6:00 P.M.

5 Campus Chat talk Saturday 6:00 P.M. 8:00 P.M.

6 Jazz Brunch jazz Saturday 12:00 P.M. 3:00 P.M.

7. A large spreadsheet contains information about the schedule for a college radio
station. A sample portion of the spreadsheet is shown below.

A student wants to count the number of shows that meet both of the following criteria.
• Is a talk show
• Is on Saturday or Sunday

For a given row in the spreadsheet, suppose genre contains the genre as a string
and day contains the day as a string. Which of the following expressions will
evaluate to true if the show should be counted and evaluates to false otherwise?
A. (genre = "talk") AND ((day = "Saturday") AND (day = "Sunday"))
B. (genre = "talk") AND ((day = "Saturday") OR (day = "Sunday"))
C. (genre = "talk") OR ((day = "Saturday") AND (day = "Sunday"))
D. (genre = "talk") OR ((day = "Saturday") OR (day = "Sunday"))

Source: Topic Question; Taken from: AP Classroom


i ← 1
REPEAT 10 TIMES
{
<MISSING CODE>
}

8. 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?
A. APPEND(evenList, i)
i ← i + 2

B. i ← i + 2
APPEND(evenList, i)

C. APPEND(evenList, 2 * i)
i ← i + 1

D. i ← i + 1
APPEND(evenList, 2 * i)

9. The list listOne is a sorted list of numbers that contains 700 elements. The
list listTwo is a sorted list of numbers that contains 900 elements. Let x represent
the maximum number of list elements that will need to be examined when performing
a binary search for a value in listOne, and let y represent the maximum number of
list elements that will need to be examined when performing a binary search for a
value in listTwo.

Which of the following statements about x and y is true?


A. The value of x is approximately equal to the value of y.
B. The value of x is approximately 10 less than the value of y.
C. The value of x is approximately 13 less than the value of y.
D. The value of x is approximately 200 less than the value of y.

Source: Topic Question; Taken from: AP Classroom


10. A teacher stores the most recent quiz scores for her class in the list scores. The first
element in the list holds the maximum possible number of points that can be awarded
on the quiz, and each remaining element holds one student’s quiz score. Assume that
scores contains at least two elements.

Which of the following code segments will set the variable found to true if at least
one student scored the maximum possible number of points on the quiz and will
set found to false otherwise?

A. C.

B. D.

Source: Topic Question; Taken from: AP Classroom


11. A researcher is analyzing data about students in a school district to determine whether
there is a relationship between grade point average and number of absences. The
researcher plans on compiling data from several sources to create a record for each
student.

The researcher has access to a The researcher also has access to


database with the following another database with the following
information about each student. information about each student.
• Last name • First name
• First name • Last name
• Grade level (9, 10, 11, or 12) • Number of absences from school
• Grade point average (on a 0.0 • Number of late arrivals to school
to 4.0 scale)

Upon compiling the data, the researcher identifies a problem due to the fact that
neither data source uses a unique ID number for each student.
Which of the following best describes the problem caused by the lack of unique ID
numbers?
A. Students who have the same name may be confused with each other.
B. Students who have the same grade point average may be confused with each
other.
C. Students who have the same grade level may be confused with each other.
D. Students who have the same number of absences may be confused with each
other.

Source: Topic Question; Taken from: AP Classroom

You might also like