Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[AP CSP] Sem 1 Review

Total questions: 20

Worksheet time: 5hrs 31mins

Name
Class
Date
1.
a)

8

b)

5

c)

11

d)

10

2.
a)

11

b)

6

c)

12

d)

7

3.

In a Python program, how many iterations(loops) will occur for the FOR LOOP code?

a)

1

b)

10

c)

9

d)

8

4.

In a Python program, how many outputs will occur for the snippet of code?

a)

15

b)

3

c)

6

d)

5

5.
There is an error in the code below. What line is the error in?
a)
Line 1
b)
Line 3
c)
Line 5
d)
Line 7
6.

What happens to the memory in the hard drive once the computer is shut off?

a)

It stays stored

b)

It is sent to the CPU

c)

It is all erased

d)

lul

7.

What computer component holds together many of the crucial components of a computer?

a)

Expansion Card

b)

CPU

c)

Motherboard

d)

Hard Drive

8.

What is the name of the chip inside the computer that processes information and carries out a sequence of instructions?

a)

Random Access Memory

b)

Central Processing Unit

c)

Python

d)

Motherboard

9.
What are the chips inside a computer that temporarily hold all the programs and data currently being used?
a)
Random Access Memory (RAM)
b)
Read Only Memory (ROM)
c)
Hard Disk
d)
Hard Drive
10.

What is expression that would represent this Boolean Gate Diagram?

a)

~(A & B) | (C & D)

b)

(A & B) | (C & D)

c)

(A & B) | ~(C & D)

d)

(A & B) | ~(C | D)

11.

What is expression that would represent this Boolean Gate Diagram?

a)

~(A (+) B) & C

b)

(A (+) B) & ~C

c)

(A (+) B) & C

d)

~((A (+) B) & C)

12.

What is expression that would represent this Boolean Gate Diagram?

a)

(A | B) (+) (C | D)

b)

(A & B) (+) (C | D)

c)

(A | B) | (C & D)

d)

(A & B) (+) (C & D)

13.

What is the Binary Value for the decimal number: 233

a)

1110 1001

b)

1001 1110

c)

1010 1110

d)

1001 1010

14.

What is the Binary Value for the hexadecimal number: 4DB

a)

1011 1101 0110

b)

0100 1001 0110

c)

0100 1101 1011

d)

1011 0100 1101

15.

What is the Decimal Value for the Binary Number:


1001 0111 + 1011 0111

a)

516

b)

334

c)

14E

d)

278

16.
Convert ABCD from Hexadecimal to Decimal
a)
42981
b)
43981
c)
44981
d)
45981
17.

Iteration is

a)

When a loop exits

b)

When a loop starts

c)

A single loop through a block of code

d)

The same as a condition

18.
Which of the following is true about using a while loop in your code?
a)
A. while loops can only have one condition [no additional conditions can be added]
b)
 B. while loops stop running after their condition is false [Boolean]
c)
C. while loops stop running after they repeat the number of times you assigned
d)
 D. while loops are not as efficient as for loops
19.

Assume n1 = 10 ... n2 = 20

What will be displayed as output?

a)

10

b)

20

c)

15

d)

25

20.

What would the variables be if age = 14?

a)

Concessions: true, EntranceFee: 500.

b)

Concessions: false, EntranceFee: 500.

c)

Concessions: false, EntranceFee: 1000.

d)

Concessions: true, EntranceFee: 1000.