stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
AP CSP Exam Prep Flashcards | StudBud
Explore
/
AP CSP Exam Prep
AP CSP Exam Prep
41 terms
·
StudBud Administration
·
216 plays
AP practice problems for Computer Science Principles [2021 - 2023]
Flashcards
41 cards
F
Practice quiz
P
Host live
L
Questions
41
Answers
1
Q22: What ASCII character is represented by the binary (base 2) number 1001010?
J
I
K
H
2
Question 14
(B)
(A)
(C)
(D)
3
Q16: What is displayed if x=-1 and y=0?
Yankee
Foxtrot
Hotel
November
4
Q15: What is displayed if x=5 and y=10?
Hotel
Foxtrot
November
Yankee
5
Q11: Which of the following is considered an
unethical
use of computer resources
Downloading freeware or shareware onto your home computer
Searching online for an digital version of a school textbook
Downloading an app store game directly to your mobile device
Installing a single-user copy of software on many computers
6
Q31: Which positional number system is most efficient in terms of character space?
Binary
Hexadecimal
Octal
Decimal
7
Q21: Which hex value is closest to red?
#123456
#654321
#123321
#321123
8
Q12: Programs written in a high-level language are easier for people to understand than those written in low-level one.
False
True
9
Q19: What is the missing condition to display only odd numbers?
(num MOD 1) = 1
(num MOD 1) = 0
(num MOD 2) = 0
(num MOD 2)=1
10
Q27: What is the name of the group that manages the Internet's many rules and protocols?
Internet Standards Commission (ISC)
Internet Management Association (IMA)
Organization for Internet Protocol Maintenance (OIPM)
Internet Engineering Task Force (IETF)
11
Q2: What is the process of hiding information inside public data?
Encryption
Concatenation
Redaction
Steganography
12
Q33: Which of the following illustrates the fault-tolerant nature of the Internet?
Using a hierarchical naming system to avoid naming conflicts
Using multiple protocols such as HTTP, IP, and SMTP to transfer data.
Resolving errors in the domain name system (DNS) lookups
Providing data transmission even when some connections have failed
13
Q13: If you were using even parity, the string 10111010 would be considered to contain an error.
True
False
14
Q24: Pseudo-random number generators are...
(A) deterministic and recursive
(B) non-deterministic and recursive
(D) non-deterministic and non-recursive
(C) deterministic and non-recursive
15
Q6: Some algorithm finds the sum of the numbers in a list. What structure must be added to sum only the even numbers?
Sequencing
Searching
Selection
Iteration
16
Q35: Convert 11 to binary
1101
100001
11
1011
17
Q36: What is true about all binary numbers that end in a 0?
They are prime
They are odd
They are even
They are composite
18
Q39: [3.5] Let's say truckWeight = 7000 and weightLimit = 8000. What does truckLimit < weightLimit evaluate to?
8000
7000
true
false
19
Q26: True or False
False
True
20
Q28: What is the term used to measure the delay in data transfer across a network?
Traceroute
Latency
Bandwidth
Ping
21
Q41: [3.6] What is the value of sum after the following code executes?
12
16
18
14
22
Q29: Which is a valid IP Address using IPv4?
500.102.152.167
200.104.20.44
157.40.91
FF.A4.6C.72
23
Q3: Binary Search must run on an ordered list
False
True
24
Q8: Which hex value is blue?
#00FF00
#FF0000
#FF00FF
#0000FF
25
Question 4
(D)
(A)
(B)
(C)
26
Q10: How many bytes long is the sequence: 11011000
8
216
1
16
27
Q17: Which combo would display "Hotel"?
x = -1, y = 1
x = 1, y = -1
x = 1, y = 1
x = -1, y = -1
28
Q5: Which RGB color value is closest to purple?
(C) (0, 100, 100)
(B) (50, 100, 0)
(A) (100, 100, 100)
(D) (100, 0, 100)
29
Q25: A program allows 3 bits to represent a value. When it adds 5 and 3 the result is 0. Why?
The result was approximated by a floating-point value
An overflow error occurred
A round-off error occurred
The result was affected by lossy data compression
30
Q7: Which of the following activities poses the greatest personal threat to cybersecurity?
Withdrawing money from a bank using an ATM
Reserving a hotel room by emailing your credit card number
Paying a bill using a secure electronic payment system
Shopping at an online store that uses public key encryption
31
Q34: Which of the following has the greatest potential for compromising a user's personal privacy?
The user's public key used for encryption
A group of cookies stored by the user's Web browser
The Internet Protocol (IP) address of the user's computer
The user's e-mail address
32
Q38: [3.5] Let n be an integer. Which expression evaluates to true if and only if n is a two-digit number?
(n > 10) AND (n < 99)
(n ≥ 10) AND (n < 100)
n = (n MOD 100)
(n < 10) AND (n ≥ 100)
33
Q18: Which term is NOT associated with the image of a network
Deterministic
Fault Tolerant
Redundancy
Decentralized
34
Q9: Which is LEAST likely to affect the speed of a program handling large data sets?
How much storage space the program requires as it runs
How long the program takes to run.
How much memory the program requires as it runs
How many programming statements the program contains
35
Q37: [3.3] For what value of y would z = 2, using that algorithm shown?
4
2
3
1
36
Q30: I created a function with the method header: getAverage(int a, int b). Which is an accurate call of this function?
GetAverage(3, 4)
getAverage(4, 5)
getAverage(6.5, 7)
get Average(5, 6)
37
Q23: Which best describes how files are sent across the Internet?
Files are broken into packets that will arrive in sequential order
Host and destination computers connect directly. The entire file is sent
Files are sent one at a time to ensure a private connection
Files are broken into packets and reassembled upon receipt
38
Q32: What is the minimum number of connections that must be broken to disconnect Comp G from Comp D?
4
2
1
3
39
Q1: Which best explains what happens when a new device is connected to the Internet?
A packet number is assigned to the device
A group of routers are assigned to the device
An Internet Protocol (IP) address is assigned to the device
A Web site is assigned to the device
40
Q20: What is the minimum number of connections that must be broken to disconnect CompE from CompF?
2
3
1
4
41
Q40: [3.6] What is displayed if x = 3 and y = 5?
2
-8
-2
8