AP Computer Science Practice Test 4
Exam Summary
0 of 10 Questions completed
Questions:
Information
You have already completed the exam before. Hence you can not start it again.
Exam is loading…
You must sign in or sign up to start the exam.
You must first complete the following:
Results
Results
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
An automobile company uses GPS technology to implement a smartphone app for its customers that they can use to call their self-driving electric cars to their location.
When the app is used, the coordinates of the car owner are sent to their car. The car then proceeds to drive itself from the parking lot to its owner.
What is a possible concern for user privacy when using this app?
CorrectIncorrect -
Question 2 of 10
2. Question
An author wants to publish a new e-book under a protective license. Which of the following scenarios (I, II, and III), if they exist, would benefit the most from using a Creative Commons License?
I. The author intends to allow others to modify his e-book
II. The author intends to stop others from sharing his e-book in peer-to-peer networks
III. The author intends to make his e-book available for free download.
CorrectIncorrect -
Question 3 of 10
3. Question
An organization needs to process large amounts of data that cannot be handled by the current PC setup and has extra PC devices lying around in the storage room.
What sort of connection should this organization consider to improve its processing capabilities?
CorrectIncorrect -
Question 4 of 10
4. Question
Seven computers are linked together physically to form the following network, as shown below. The line between two PCs indicates a direct line of communication between them.
If a computer is not connected to another one on the network, data can flow through other connections that each may have in common. What minimum number of connections must be broken to prevent E and G from communicating with one another?
CorrectIncorrect -
Question 5 of 10
5. Question
A programmer developed the following algorithm to simulate coin flipping. The program simulates a coin flip ten times and compares the number of times the result was a head or tail.
Which of the following shows that the coin flipping resulted in heads and tails equally?
I. Variables, flips, and tails are initialized to 0.
II. Another variable, the coin, is assigned a random value between zero (tails) and one (heads). For one value, the tails variable is incremented by one. The flip variable is incremented by 1 regardless of coin value.
III. The second step is repeated until the flip variable has a value of 10.
CorrectIncorrect -
Question 6 of 10
6. Question
A programmer has developed an algorithm that computes the sum of integers taken from a list. However, the programmer wants to modify the code to sum up even numbers from the list. What programming structure can the programmer add to do this?
CorrectIncorrect -
Question 7 of 10
7. Question
The following code segment uses the IsFound (list, item) command to compare items of two lists. The command gives a true value when the same item is found in both lists. What would the “result” list contain when this code is executed?
FOR EACH item IN List_1
{
IF (IsFound (List_2, item))
{
APPEND (result, item)
}
}
CorrectIncorrect -
Question 8 of 10
8. Question
A software development company breaks down its software projects into small modules so that coders can develop chunks of the code separately and then to the project once completed. What development process is the company following?
CorrectIncorrect -
Question 9 of 10
9. Question
A new studio was set up in Ohio for a popular game development company. The company used 32-bit computers to develop most of their older games, but they require the new studio only to operate 64-bit machines.
How many more bits will a single new machine offer compared to the PCs at the old studio?
CorrectIncorrect -
Question 10 of 10
10. Question
Neural Networks are being used extensively to make computers more autonomous. These operations, however, require the computer to process large amounts of data to interpret patterns.
Which of the following is not an example of such a pattern-searching process?
CorrectIncorrect