WorksheetsComputer Science Fundamentals Quiz
Total questions: 15
Worksheet time: 8mins
What is the main function of the Control Unit in a CPU?
To perform arithmetic operations
To store data
To direct the operation of the processor
To manage input and output devices
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[2:3] = []
a[2] = []
a[2:2] = []
What does the ALU stand for?
Arithmetic Logic Unit
Advanced Logic Unit
Analog Logic Unit
Arithmetic Language Unit
What is the primary purpose of cache memory?
To store permanent data
To provide fast access to frequently used data
To manage input and output operations
To execute machine language instructions
Which component of a computer holds both data and instructions in a von Neumann architecture?
Input Unit
Arithmetic Logic Unit
Memory Unit
Control Unit
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[-1:] = ['d', 'e']
a += ['d', 'e']
a.append(['d', 'e'])
Assume x and y are assigned as follows:
x = 5
y = -5
What is the effect of this statement:
x, y = (y, x)[::-1]
The values of x and y are swapped
Both x and y are -5
The values of x and y are unchanged
Both x and y are 5
What is the main characteristic of the von Neumann architecture?
Multiple processors for parallel processing
Unified memory for data and instructions
Separate units for processing and storage
Use of only physical devices
How can a single element tuple be created in Python?
(20,)
(20, 20, 20)
(20)
(20, 20)
What does the acronym GPU stand for?
Global Processing Unit
Graphical Performance Unit
Graphics Processing Unit
General Processing Unit
What is the purpose of the Program Counter (PC)?
To store the next instruction address
To hold the current instruction
To manage data flow
To control the execution sequence
Which of the following is a characteristic of cache memory?
It is slower than RAM
It is larger than main memory
It is faster than regular RAM
It is used for permanent storage
What is the main function of the Arithmetic Logic Unit (ALU)?
To manage input and output
To control the CPU
To store data
To perform arithmetic and logic operations
Which component acts as the stage manager in a computer system?
Input Unit
ALU
Control Unit
Output Unit
What is the role of the Integrated Memory Controller (IMC)?
To control input and output devices
To execute machine instructions
To manage data storage
To allow direct communication between CPU and memory
