Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Fundamentals Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the main function of the Control Unit in a CPU?

a)

To perform arithmetic operations

b)

To store data

c)

To direct the operation of the processor

d)

To manage input and output devices

2.

List a is defined as follows:

a = [1, 2, 3, 4, 5]

Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:

a)

a[2:3] = []

b)

a[2] = []

c)

a[2:2] = []

3.

What does the ALU stand for?

a)

Arithmetic Logic Unit

b)

Advanced Logic Unit

c)

Analog Logic Unit

d)

Arithmetic Language Unit

4.

What is the primary purpose of cache memory?

a)

To store permanent data

b)

To provide fast access to frequently used data

c)

To manage input and output operations

d)

To execute machine language instructions

5.

Which component of a computer holds both data and instructions in a von Neumann architecture?

a)

Input Unit

b)

Arithmetic Logic Unit

c)

Memory Unit

d)

Control Unit

6.

List a is defined as follows:

a = ['a', 'b', 'c']

Which of the following statements adds 'd' and 'e' to the end of a, so that it then equals ['a', 'b', 'c', 'd', 'e']:

a)


a[-1:] = ['d', 'e']

b)

a += ['d', 'e']

c)

a.append(['d', 'e'])

7.

Assume x and y are assigned as follows:

x = 5

y = -5

What is the effect of this statement:

x, y = (y, x)[::-1]

a)

The values of x and y are swapped

b)

Both x and y are -5


c)

The values of x and y are unchanged

d)

Both x and y are 5


8.

What is the main characteristic of the von Neumann architecture?

a)

Multiple processors for parallel processing

b)

Unified memory for data and instructions

c)

Separate units for processing and storage

d)

Use of only physical devices

9.

How can a single element tuple be created in Python?

a)

(20,)

b)

(20, 20, 20)

c)

(20)

d)

(20, 20)

10.

What does the acronym GPU stand for?

a)

Global Processing Unit

b)

Graphical Performance Unit

c)

Graphics Processing Unit

d)

General Processing Unit

11.

What is the purpose of the Program Counter (PC)?

a)

To store the next instruction address

b)

To hold the current instruction

c)

To manage data flow

d)

To control the execution sequence

12.

Which of the following is a characteristic of cache memory?

a)

It is slower than RAM

b)

It is larger than main memory

c)

It is faster than regular RAM

d)

It is used for permanent storage

13.

What is the main function of the Arithmetic Logic Unit (ALU)?

a)

To manage input and output

b)

To control the CPU

c)

To store data

d)

To perform arithmetic and logic operations

14.

Which component acts as the stage manager in a computer system?

a)

Input Unit

b)

ALU

c)

Control Unit

d)

Output Unit

15.

What is the role of the Integrated Memory Controller (IMC)?

a)

To control input and output devices

b)

To execute machine instructions

c)

To manage data storage

d)

To allow direct communication between CPU and memory