Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

23-2 Finals CS2A

Total questions: 88

Worksheet time: 2hrs 37mins

Name
Class
Date
1.

System Design in computer architecture includes addressing modes, instructions, and native data types. What is the name given to this conceptual level of design that focuses on these elements?

a)
Operating System (OS)
b)
Random Access Memory (RAM)
c)
Central Processing Unit (CPU)
d)
Instruction Set Architecture (ISA)
2.

What is the key distinguishing feature of Harvard Architecture compared to Von Neumann Architecture?

a)
Separate memory units for data and instructions
b)
Separate memory units for data and control signals
c)
Shared memory unit for data and instructions
d)
No memory units for data and instructions
3.

How many fundamental units that make up a Central Processing Unit (CPU)?

a)
1
b)
4
c)
6
d)
3
4.

Which of the following statements accurately describes Assembly Language?

a)
Assembly Language is a high-level programming language that is platform-independent.
b)

Assembly Language is a low-level programming language that is specific to a particular computer architecture.

c)
Assembly Language uses Java-like syntax for coding.
d)
Assembly Language is primarily used for web development.
5.

EMU8086 Emulator primarily focuses on high-level programming languages. What is the primary function of an emulator like EMU8086?

a)

To execute software intended for a different processor architecture

b)
To generate random code snippets for educational purposes
c)
To provide a platform for playing video games
d)
To simulate physical hardware components in a virtual environment
6.

Which among the following is the main advantage of a pipelined data path compared to a non-pipelined one?

a)

Increased throughput and speed

b)
Limited instruction set support
c)
Reduced complexity and cost
d)
Slower execution speed
7.

Which of the following best describes the core functionalities of a computer system?

a)

Numerical calculations only

b)

User interaction and graphics processing

c)

Web browsing and internet connectivity

d)

Processing data, storage, movement, and control

8.

What is the architectural difference between Harvard and Von Neumann Architecture regarding memory?

a)
Harvard Architecture uses a single memory for both data and instructions, while Von Neumann Architecture has separate memory for data and instructions.
b)
Harvard Architecture uses a single memory for both data and instructions, while Von Neumann Architecture has separate memory for data and instructions.
c)
Harvard Architecture has separate memory for data and instructions, while Von Neumann Architecture has separate memory for data and instructions.
d)
Harvard Architecture has separate memory for data and instructions, while Von Neumann Architecture uses a single memory for both data and instructions.
9.

Emulation is primarily used for running modern games on modern hardware. What is a common application of emulation technology?

a)
Running older games on modern hardware
b)
Emulating hardware components to test software compatibility
c)
Simulating real-world scenarios for training purposes
d)
Running mobile apps on a desktop computer
10.

Which statement describes the function of cache memory?

a)
Cache memory is used for long-term storage of data
b)

Cache memory stores frequently used data for quicker access

c)
Cache memory is slower than main memory
d)
Cache memory is only used for storing large files
11.

When analyzing the data flow within a computer's Central Processing Unit (CPU), which specific component is primarily responsible for computer’s data processing function?

a)

Registers

b)

CPU Interconnection

c)

Cache Memory

d)

Arithmetic and Logic Unit

12.

Which term refers to an individual processing unit on a processor chip

a)

Core

b)

Processor

c)

Multicore

d)

CPU

13.

During which generation were integrated circuits first invented?

a)
First generation
b)
Third generation
c)
Fifth generation
d)

Second generation

14.

Which type of memory requires constant refreshing to retain data?

a)

Dynamic RAM

b)

Read-Only Memory

c)
Flash Memory
d)

Static RAM

15.

Which step in the CPU's operation involves the CPU grabbing the next instruction from memory?

a)

Execution

b)

Fetch

c)

Decode

d)

Write

16.

Which CPU component holds the address of data to be fetched from memory?

a)

PC

b)

IR

c)

MDR

d)

MAR

17.

Which type of memory does not require refreshing and is generally faster but more expensive?

a)

Static RAM

b)
Flash Memory
c)

Read-Only Memory

d)

Dynamic RAM

18.

Which CPU operating step involves transferring the contents of the PC to the Memory Address Register?

a)

Execution

b)

Instruction Decode

c)

Data Fetch

d)

Instruction Fetch

19.

Which type of memory allows data to be read or written in almost the same amount of time, regardless of the physical location of data inside the memory?

a)

Random Access Memory

b)
Cache Memory
c)

Read Only Memory

d)
Flash Memory
20.

Which type of RAM requires constant refreshing to retain data?

a)
Dynamic RAM (DRAM)
b)
Cache RAM
c)
Flash RAM
d)
Static RAM (SRAM)
21.

Which characteristic best describes SRAM?

a)
Slower access times
b)
Faster access times
c)
Less expensive
d)
Non-volatile memory
22.

Which characteristic best describes SRAM?

a)
Slower access times
b)
Faster access times
c)
Less expensive
d)
Non-volatile memory
23.

Which type of memory acts as a buffer between the CPU and Main memory?

a)
Virtual memory
b)

ROM

c)
Cache memory
d)

RAM

24.

Which memory type is non-volatile and stores instructions required to start a computer?

a)
Virtual memory
b)

ROM

c)
Cache memory
d)

RAM

25.

Which part of the CPU temporarily holds the results of the last processing step of the ALU?


a)

Instruction Register

b)

Address Register

c)

Accumulator

d)
Cache memory
26.

The program seems to be malfunctioning and isn't prompting the user for input. You suspect an issue with the instruction responsible for getting user input. Based on the LMC instruction set, which opcode should you check to diagnose the problem?

a)

500

b)

000

c)

901

d)

902

27.

What is the purpose of the STA C instruction in the LMC program?

a)
To store the value in the accumulator to the memory address specified by the value in the C register.
b)
To divide the value in the accumulator by the memory address specified by the value in the C register.
c)
To multiply the value in the accumulator by the memory address specified by the value in the C register.
d)
To add the value in the accumulator to the memory address specified by the value in the C register.
28.

When analyzing LMC programs, what specific function does the HLT instruction serve?

a)

To stop the program

b)
To print a message on the screen
c)
To skip the next instruction
d)
To restart the program
29.

I. Which is the conversion of a decimal number 125.5625 to binary?

a)

0110 1101.1001

b)

0111 1101.1010

c)

0111 1101.1001

d)

0101 1101.1001

30.

II. Perform the binary addition:

0101.0110 + 0000.1110 + 0101.1101 + 0001.0100 + 0011.0011 + 0001.1001 + 1111.1011

a)

0101010.1010

b)

0110011.0011

c)

0111100.1100

d)

0100001.1100

31.

When writing assembly language, what is the name for the opcode part of the instruction?

a)
magnetic
b)
malleable
c)
mnemonic
d)
magnificent
32.

You're debugging a machine code instruction that seems to be malfunctioning. The error message indicates an issue with how the data is being accessed. To diagnose the problem, you need to identify the part of the instruction that specifies the method for locating the operand. Which element of the machine code instruction should you examine?

a)

Opcode

b)

Operand

c)

Addressing mode

d)

None of these

33.

When it comes to fine-grained control over a computer's resources like CPU and memory, which type of programming language offers the most direct access?

a)

Low-level Language

b)

Compiled Language

c)

Scripting Language

d)

Interpreted Language

34.

Even though CPUs have varying architectures, some programming languages can still run on multiple types. What characteristic allows a language to achieve this portability across different CPUs?

a)

Compiled Language

b)

High-level Language

c)

Open-source Language

d)

Interpreted Language

35.

These mnemonics serve as a bridge between human-readable instructions and the underlying machine code. When analyzing LMC instructions, which mnemonic specifically signifies subtraction?

a)

SUB

b)

SBU

c)

SBB

d)

SUU

36.

When working with the Little Man Computer (LMC), which mnemonic instruction signifies addition?

a)

ADD

b)

ADS

c)

ODD

d)

IDD

37.

By analyzing the instruction format and the LMC instruction set:

A DAT 5

What action does this instruction perform in the LMC program?

a)
Creates a memory location called B
b)
Creates a memory location labelled 5 which stores the letter A
c)
Create a memory location labelled A which stores the number 5
d)
Creates a memory location labelled C
38.

Little Man wants to display an output to the user. Which instruction should he use?

a)

INP

b)

OUT

c)

LDA

d)

DAT

39.

You're debugging a program encountering errors. The error message mentions unexpected values being processed by the CPU. To diagnose the issue, you suspect a mismatch between the programmer's intent and the actual machine instructions being executed. Which of the following is most likely the culprit?

a)

High-level programming language syntax errors (e.g., typos in Python code)

b)

Incorrect variable assignments within the code (e.g., assigning a string to a numerical variable)

c)

Instructions in binary format (machine code)

d)

Outdated compiler version causing compatibility issues

40.

Assembly language instructions provide a low-level representation of computer commands. To understand these instructions, it's crucial to identify their key components. Which element within an assembly language instruction specifies the data to be processed or manipulated?

a)

opcode

b)

operand

c)

mnemonic

d)

instruction set

41.

What translates code written in a high-level language into machine code?

a)

compiler

b)

assembler

c)

loader

d)

interpreter

42.

In Little Man Computer which assembly instruction stores the value in the accumulator to a memory location?

a)

STA x

b)

LDA x

c)

ADD x

d)

SUB x

43.

In Little Man Computer which assembly instruction loads a value from memory onto the accumulator?

a)

STA x

b)

LDA x

c)

ADD x

d)

SUB x

e)

INP

44.
What is Assembly code?
a)
Another name for Pseudocode
b)
A programming language that uses mnemonic codes
c)
A program that joins pieces of code together
d)
Another name for machine code
45.

Machine code instructions provide the fundamental commands a computer understands. By breaking down these instructions, we can identify their key components. What are the two distinct parts that make up a machine code instruction?

a)

Opinstruction and Opmemory

b)

Opcommand and Opstate

c)

Opcode and Operand

d)

Opcommand and Opmemory

46.

III. Which of the following is an octal equivalent of the binary number 1100101.001010?

a)

625.21

b)

145.12

c)

154.12

d)

145.21

47.

IV. Which of the following is the difference of the binary numbers 10011001.1011 and 00100110.0110 ?

a)

11111111.1111

b)

10010011.0101

c)

00010001.0000

d)

01110011.0101

48.

V. Which of the following is the quotient of the binary numbers 0100.100 and 0.100?

a)
1100.00
b)
0110.00
c)
1001.00
d)
1010.00
49.

VI. Which of the following is the quotient of the binary numbers 00011100 and 0.111?

a)

10000

b)

1000000

c)

10000000

d)

100000

50.

VII. Which of the following is the product of the binary numbers 1110.01 and 1010.1100?

a)
11001100.1101
b)

11001100.011

c)
11001100.1110
d)

10011001.0011

51.

VIII. What is the result of adding 15 and -5 in signed-2’s complement representation?

a)

00000000

b)

11110110

c)

00001010

d)

11111010

52.

IX. When subtracting 3 from 9 in binary arithmetic, what is the correct result?

a)

00000100

b)

00000110

c)

00000111

d)

11111010

53.
  1. X. What is the outcome of adding -10 and 2 in binary form?

a)

11111110

b)

11111100

c)

11111010

d)

11111000

54.
  1. XI. If you subtract -5 from 2 using binary arithmetic, what is the result?

a)

11111101

b)

00010010

c)

00000111

d)

00001011

55.
  1. XII. What is the sum of -8 and -4 in binary representation?

a)

11111010

b)

11111000

c)

11110110

d)

11110100

56.
  1. XIII. What is the sum of -12 and 4 in binary representation?

a)

11111000

b)

11110010

c)

11110100

d)

11110110

57.
  1. XIV. What is the outcome of shifting 11100001 to the left by 1 bit?

a)
11100001
b)
11110000
c)

11000010

d)
11000100
58.
  1. XV. What is the outcome of shifting 10101010 to the left by 2 bits?

a)

10101010

b)

10101000

c)

10101001

d)

10101100

59.
  1. XVI. What is the result of arithmetic shifting 11011011 to the left by 2 bits?

a)
11101101
b)
11011011
c)
11101100
d)

11110110

60.
  1. XVII. If you shift 00011110 to the right by 4 bits, what is the result?

a)
00000000
b)

00000001

c)
00011110
d)
00001110
61.
  1. XVIII. What is the result of arithmetic shifting 11110000 to the left by 4 bits?

a)
11100000
b)
10100000
c)
10010000
d)

10000000

62.
  1. XIX. When rotating 11110000 to the left by 2 bits, what is the resulting binary number?

a)
10000011
b)
00001111
c)

11000011

d)
11110000
63.
  1. XX. What is the outcome of rotating 00111100 to the right by 4 bits?

a)
00111100
b)
00000010
c)

11000011

d)
00000000
64.

Which is the primary advantage of microprogrammed control over hardwired control?

a)

Faster execution speed

b)

Greater Flexibility

c)

Lower Cost

d)

Simpler Design

65.

How does the size of the microinstruction format impact the complexity of a microprogrammed control unit?

a)

Larger size simplifies the design

b)

Smaller size increases the speed

c)

Larger size allows for more microoperations

d)

Smaller size reduces the number of possible microoperations

66.

In microprogrammed control, what role does the microprogram sequencer play in the execution of instructions?

a)

Decoding the instruction set

b)

Generating the control signals

c)

Managing the branch instructions

d)

Executing arithmetic operations

67.
  1. Which component of a microprogrammed control unit is responsible for interpreting the microinstruction format and generating control signals?

a)

Arithmetic Logic Unit

b)

Microprogram sequencer

c)

Control Memory

d)

Input/Output Interface

68.
  1. How does the microprogrammed control unit handle conditional branching during the execution of instructions?

a)

By halting the execution until a branch condition is met

b)

By ignoring branch instructions

c)

By executing all branches simultaneously

d)

By selecting the branch based on status bit conditions

69.

Analyze the function of the BRZ Loop instruction in the LMC (Little Man Computer) program. Which of the following best describes its purpose?

a)

Adds the value stored in the accumulator to the value at the Loop address

b)

Stores the current value in the accumulator to the Loop address

c)

Subtracts the value at the Loop address from the accumulator value

d)

Branches to the Loop address if the value in the accumulator is zero

70.

Analyze the steps taken by the control unit after each instruction is executed. Which of the following best describes its subsequent action?

a)

Fetches next instruction

b)

Increments program counter

c)

Decodes instructions

d)

Stores the result in memory

71.

Analyze the role of the instruction register (IR) in a control unit. Which of the following best describes its function?

a)

Decodes the current instructions

b)

Executes complex mathematical operations

c)

Retrieves the next instruction from memory

d)

Advances the program counter to the subsequent instruction

72.

Which component of a control unit loads individual instructions from memory?

a)

Control Unit (CU)

b)

Arithmetic Logic Unit (ALU)

c)

Instruction Register (IR)

d)

Program Counter (PC)

73.

Analyze the role of the control unit within a processor. Which of the following best describes its function?

a)

Manages the communication between the processor and peripheral devices

b)

Executes mathematical operations and logical comparisons

c)

Directs the flow of data and instructions within the processor

d)

Retains instructions and data for immediate access

74.

Analyze the component that contains the controllers for Input/Output (I/O) devices, ATA/IDE, and Serial ports. Which of the following best describes this component?

a)

Sockets

b)

South Bridge

c)

North Bridge

d)

Expansion Slots

75.

Analyze the role of the Northbridge in a motherboard. Which of the following best describes its function?

a)

Manages communication between CPU and RAM

b)

Controls peripheral devices such as keyboards and mice

c)

Regulates power distribution to the motherboard components

d)

Handles data transfer between the CPU and hard drives

76.

Analyze the differences between single-lane and multi-lane bus designs in a computer system. Which of the following best describes a single-lane bus design?

a)

Allows multiple data transfers simultaneously

b)

Increases data transfer speed by using parallel lines

c)

Transfers data one bit at a time along a single pathway

d)

Connects multiple processors to a single memory module

77.

Examine the advantages of a multi-lane bus design. Which of the following best describes its primary benefit over a single-lane bus design?

a)
Limited scalability
b)

Simplifies the architecture of the motherboard

c)
Reduced compatibility
d)
Increased data transfer speed
78.

Analyze why early computers housed components like the CPU and RAM in separate cabinets. What could be a reason for this design choice?

a)

Due to miniaturization limits at the time

b)

To facilitate better cooling efficiency

c)

To enhance the aesthetic design

d)

To prevent electromagnetic interference

79.

Examine the evolution of terminology in computer architecture. How did the term 'bus' originate?

a)

It was derived from 'databus'

b)

It evolved from 'busway'

c)

It originated from 'busbar'

d)

It came from the lastname Bus

80.

Analyze the role of RAM in a computer system. Which of the following best describes its function?

a)
RAM permanently stores data for the CPU
b)
RAM stores data temporarily for the CPU to access quickly.
c)
RAM is responsible for processing graphics in a computer system
d)
RAM controls the power supply in a computer system
81.

Analyze the construction of RAM using basic logic gates. How do these gates contribute to the storage of information in RAM?

a)

They enable the conversion of data into binary code

b)

They facilitate the manipulation of data within the computer

c)

They control the flow of electricity in the computer

d)

They allow for the storage of a single bit of information

82.

Critically evaluate the relationship between RAM and the ALU in a computer system. How does RAM interact with the ALU to perform computing tasks?

a)

By managing input/output operations for the ALU

b)

By providing temporary storage for data and instructions

c)
RAM is responsible for cooling the ALU during operation.
d)

By executing instructions directly

83.

Which of the following statements is true about latches?

a)

They are used to create registers.

b)

They are less efficient than registers.

c)

They are triggered by a data signal.

d)

They can only store data temporarily.

84.

What is the main advantage of an and-or latch over a single OR gate or a single AND gate?

a)

It has a higher latency in processing data.

b)

It can store both 0 and 1.

c)

It requires more components to function.

d)

It is more prone to errors.

85.

What is the purpose of a write-enable line in a gated latch?

a)

To prevent data from being read.

b)

To choose the color of the latch.

c)

To enable writing of data to the latch.

d)

To increase the speed of data transfer.

86.

How does a register differ from a single latch?

a)

A register requires a separate read-enable line for each bit.

b)

A register is more volatile than a latch.

c)

A register can store multiple bits of data.

d)

A register uses a clock signal for operation.

87.

What is the function of a multiplexer in memory addressing?

a)

It controls the flow of data between different memory modules.

b)

It converts the binary address into a decimal value.

c)

It selects the appropriate row or column based on the address.

d)

It refreshes the data stored in the memory cells.

88.

What is the benefit of using a matrix to organize latches in memory?

a)

It allows for more efficient power consumption.

b)

It increases the speed of data retrieval.

c)

It reduces the number of wires needed for addressing.

d)

It simplifies the process of reading data from memory.