Font size
WorksheetsAP CSP Code.org Semester 1 Review Quiz
Total questions: 29
Worksheet time: 24mins
What is the binary representation of the decimal number 10?
1000
1100
1111
1010
Which concept focuses on hiding the complex details of a data type and only showing the essential features?
Revelation
Abstraction
Complication
Elaboration
How has the internet impacted society?
The internet has had no impact on society
The internet has revolutionized communication, access to information, and social interactions.
The internet has only made communication more difficult
The internet has decreased access to information and social interactions
What is the binary representation of the decimal number 25?
11001
10101
10011
11100
Which of the following is an example of data abstraction?
Reading a book about car engines
Watching a tutorial on car maintenance
Using a car without needing to understand the internal workings of the engine
Taking a car apart to understand how it works
How does data analysis help in decision-making?
By making the decision-making process more time-consuming
By providing irrelevant and misleading information
By creating more confusion and uncertainty
By providing insights and patterns from the data
When visiting a museum Sue takes a photo of a painting with a smartphone which stores the photo as an image file. Which of the following best describes the differences between the painting itself and the photo of the painting stored on the smartphone?
Both the painting and the photo are analog
Sampling can be used to determine whether the analog image is an accurate representation of the painting
The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used
The photo is a digital representation of the analog painting
Ryan is designing an app that needs to quickly send low quality photos between users. Most smartphones take much higher quality photos than Ryan needs for his app. Which answer best describes the type of compression Ryan should choose and why?
Lossy compression since it typically results in smaller data sizes.
Lossless compression since it ensures perfect reconstruction of the photo.
Lossy compression since it ensures perfect reconstruction of the photo.
Lossless compression since it typically results in smaller data sizes.
The inputs and outputs that allow a user to interact with a piece of software.
Useful Interchange
User Input
User Interface
User Intention
Some program statements run when triggered by an event, like a mouse click or a key press.
Sequential Programming
Event Driven Programming
What is a reason to include comments in a program?
Comments tell the computer what the code is doing.
Comments tell the programmer what the code is doing.
Comments help the user work an app more effectively.
Comments will show up in the console so when the program is run, the programmer know what happens.
What is displayed to the console log?
$10
$ 10
$10.00
error
True
False
Bug
Part of a program that does not work correctly.
An algorithm that has been coded into something that can be run by a machine.
The art of creating a program.
An action that causes something to happen.
a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible
Lossless Compression
Heuristic
Lossy Compression
encryption
Consider the following three binary numbers:
01010
010000
1110
Which of the following lists the numbers in order from least to greatest?
010000
1110
01010
01010
1110
010000
01010
010000
1110
1110
01010
010000
What is output by line 6?
(a)
What is output by line 5?
(a)
What is output by the program?
less than 10
less than 20
less than 30
30 or more
What is output by the program?
Option A
Option B
Option C
Option D
Option E
What will the value of bags be at the end of the program?
(a)
Three words are stored in the variables word1, word2, and word3. The values of the variables are to be updated as shown in the following table.
Which of the following code segments can be used to update the values of the variables as shown in the table?
temp ← word1
word3 ← word1
word1 ← temp
temp ← word1
word1 ← word3
word3 ← temp
temp ← word1
word1 ← word2
word2 ← word3
word3 ← temp
temp ← word3
word3 ← word2
word2 ← word1
word1 ← temp
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?
3
4
5
7
