wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Code.org Semester 1 Review Quiz

Total questions: 29

Worksheet time: 24mins

Name
Class
Date
1.

What is the binary representation of the decimal number 10?

a)

1000

b)

1100

c)

1111

d)

1010

2.

Which concept focuses on hiding the complex details of a data type and only showing the essential features?

a)

Revelation

b)

Abstraction

c)

Complication

d)

Elaboration

3.

How has the internet impacted society?

a)

The internet has had no impact on society

b)

The internet has revolutionized communication, access to information, and social interactions.

c)

The internet has only made communication more difficult

d)

The internet has decreased access to information and social interactions

4.

What is the binary representation of the decimal number 25?

a)

11001

b)

10101

c)

10011

d)

11100

5.

Which of the following is an example of data abstraction?

a)

Reading a book about car engines

b)

Watching a tutorial on car maintenance

c)

Using a car without needing to understand the internal workings of the engine

d)

Taking a car apart to understand how it works

6.

How does data analysis help in decision-making?

a)

By making the decision-making process more time-consuming

b)

By providing irrelevant and misleading information

c)

By creating more confusion and uncertainty

d)

By providing insights and patterns from the data

7.
What is the Binary error that occurs when a number is too Precise?
a)
Decimal Error
b)
Round-Off Error
c)
Counting Error
d)
Precision Error
8.
What is the Binary error that occurs when a number is too large?
a)
Numbers are never too large
b)
Counting Error
c)
NaN Error
d)
Overflow Error
9.
Using the Image, what character is represented by the number 68?
a)
A
b)
B
c)
C
d)
D
e)
E
10.
You are trying to represent a photo with a digital image, but the image is not clear. What should you do?
a)
Decrease the Sample Size
b)
Increase the Sample Size
c)
Increase the Canvas Size
d)
Decrease the Canvas Size
11.
Which form of comression would you use to save data when you transmit text messages and you don't want to lose information?
a)
Lossless Compression
b)
Lossy Compression
c)
Reversible Encryption
d)
Compression Encryption
12.
There are 58 students in your class. How many bits are needed to count all the students in your class?
a)
4
b)
5
c)
6
d)
7
e)
8
13.

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?

a)

Both the painting and the photo are analog

b)

Sampling can be used to determine whether the analog image is an accurate representation of the painting

c)

The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used

d)

The photo is a digital representation of the analog painting

14.

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?

a)

Lossy compression since it typically results in smaller data sizes.

b)

Lossless compression since it ensures perfect reconstruction of the photo.

c)

Lossy compression since it ensures perfect reconstruction of the photo.

d)

Lossless compression since it typically results in smaller data sizes.

15.

The inputs and outputs that allow a user to interact with a piece of software.

a)

Useful Interchange

b)

User Input

c)

User Interface

d)

User Intention

16.

Some program statements run when triggered by an event, like a mouse click or a key press.

a)

Sequential Programming

b)

Event Driven Programming

17.

What is a reason to include comments in a program?

a)

Comments tell the computer what the code is doing.

b)

Comments tell the programmer what the code is doing.

c)

Comments help the user work an app more effectively.

d)

Comments will show up in the console so when the program is run, the programmer know what happens.

18.

What is displayed to the console log?

a)

$10

b)

$ 10

c)

$10.00

d)

error

19.
a)

True

b)

False

20.

Bug

a)

Part of a program that does not work correctly.

b)

An algorithm that has been coded into something that can be run by a machine.

c)

The art of creating a program.

d)

An action that causes something to happen.

21.

a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible

a)

Lossless Compression

b)

Heuristic

c)

Lossy Compression

d)

encryption

22.

Consider the following three binary numbers:

01010

010000

1110

Which of the following lists the numbers in order from least to greatest?

a)

010000

1110

01010


b)

01010

1110

010000


c)

01010

010000

1110


d)

1110

01010

010000


23.

What is output by line 6?

(a)  

24.

What is output by line 5?

(a)  

25.

What is output by the program?

a)

less than 10

b)

less than 20

c)

less than 30

d)

30 or more

26.

What is output by the program?

a)

Option A

b)

Option B

c)

Option C

d)

Option D

e)

Option E

27.

What will the value of bags be at the end of the program?

(a)  

28.

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?

a)

temp ← word1

word3 ← word1

word1 ← temp

b)

temp ← word1

word1 ← word3

word3 ← temp

c)

temp ← word1

word1 ← word2

word2 ← word3

word3 ← temp

d)

temp ← word3

word3 ← word2

word2 ← word1

word1 ← temp

29.

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?

a)

3

b)

4

c)

5

d)

7