Worksheets23-2 Finals CS2A
Total questions: 88
Worksheet time: 2hrs 37mins
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?
What is the key distinguishing feature of Harvard Architecture compared to Von Neumann Architecture?
How many fundamental units that make up a Central Processing Unit (CPU)?
Which of the following statements accurately describes Assembly Language?
Assembly Language is a low-level programming language that is specific to a particular computer architecture.
EMU8086 Emulator primarily focuses on high-level programming languages. What is the primary function of an emulator like EMU8086?
To execute software intended for a different processor architecture
Which among the following is the main advantage of a pipelined data path compared to a non-pipelined one?
Increased throughput and speed
Which of the following best describes the core functionalities of a computer system?
Numerical calculations only
User interaction and graphics processing
Web browsing and internet connectivity
Processing data, storage, movement, and control
What is the architectural difference between Harvard and Von Neumann Architecture regarding memory?
Emulation is primarily used for running modern games on modern hardware. What is a common application of emulation technology?
Which statement describes the function of cache memory?
Cache memory stores frequently used data for quicker access
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?
Registers
CPU Interconnection
Cache Memory
Arithmetic and Logic Unit
Which term refers to an individual processing unit on a processor chip
Core
Processor
Multicore
CPU
During which generation were integrated circuits first invented?
Second generation
Which type of memory requires constant refreshing to retain data?
Dynamic RAM
Read-Only Memory
Static RAM
Which step in the CPU's operation involves the CPU grabbing the next instruction from memory?
Execution
Fetch
Decode
Write
Which CPU component holds the address of data to be fetched from memory?
PC
IR
MDR
MAR
Which type of memory does not require refreshing and is generally faster but more expensive?
Static RAM
Read-Only Memory
Dynamic RAM
Which CPU operating step involves transferring the contents of the PC to the Memory Address Register?
Execution
Instruction Decode
Data Fetch
Instruction Fetch
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?
Random Access Memory
Read Only Memory
Which type of RAM requires constant refreshing to retain data?
Which characteristic best describes SRAM?
Which characteristic best describes SRAM?
Which type of memory acts as a buffer between the CPU and Main memory?
ROM
RAM
Which memory type is non-volatile and stores instructions required to start a computer?
ROM
RAM
Which part of the CPU temporarily holds the results of the last processing step of the ALU?
Instruction Register
Address Register
Accumulator
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?
500
000
901
902
What is the purpose of the STA C instruction in the LMC program?
When analyzing LMC programs, what specific function does the HLT instruction serve?
To stop the program
I. Which is the conversion of a decimal number 125.5625 to binary?
0110 1101.1001
0111 1101.1010
0111 1101.1001
0101 1101.1001
II. Perform the binary addition:
0101.0110 + 0000.1110 + 0101.1101 + 0001.0100 + 0011.0011 + 0001.1001 + 1111.1011
0101010.1010
0110011.0011
0111100.1100
0100001.1100
When writing assembly language, what is the name for the opcode part of the instruction?
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?
Opcode
Operand
Addressing mode
None of these
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?
Low-level Language
Compiled Language
Scripting Language
Interpreted Language
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?
Compiled Language
High-level Language
Open-source Language
Interpreted Language
These mnemonics serve as a bridge between human-readable instructions and the underlying machine code. When analyzing LMC instructions, which mnemonic specifically signifies subtraction?
SUB
SBU
SBB
SUU
When working with the Little Man Computer (LMC), which mnemonic instruction signifies addition?
ADD
ADS
ODD
IDD
By analyzing the instruction format and the LMC instruction set:
A DAT 5
What action does this instruction perform in the LMC program?
Little Man wants to display an output to the user. Which instruction should he use?
INP
OUT
LDA
DAT
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?
High-level programming language syntax errors (e.g., typos in Python code)
Incorrect variable assignments within the code (e.g., assigning a string to a numerical variable)
Instructions in binary format (machine code)
Outdated compiler version causing compatibility issues
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?
opcode
operand
mnemonic
instruction set
What translates code written in a high-level language into machine code?
compiler
assembler
loader
interpreter
In Little Man Computer which assembly instruction stores the value in the accumulator to a memory location?
STA x
LDA x
ADD x
SUB x
In Little Man Computer which assembly instruction loads a value from memory onto the accumulator?
STA x
LDA x
ADD x
SUB x
INP
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?
Opinstruction and Opmemory
Opcommand and Opstate
Opcode and Operand
Opcommand and Opmemory
III. Which of the following is an octal equivalent of the binary number 1100101.001010?
625.21
145.12
154.12
145.21
IV. Which of the following is the difference of the binary numbers 10011001.1011 and 00100110.0110 ?
11111111.1111
10010011.0101
00010001.0000
01110011.0101
V. Which of the following is the quotient of the binary numbers 0100.100 and 0.100?
VI. Which of the following is the quotient of the binary numbers 00011100 and 0.111?
10000
1000000
10000000
100000
VII. Which of the following is the product of the binary numbers 1110.01 and 1010.1100?
11001100.011
10011001.0011
VIII. What is the result of adding 15 and -5 in signed-2’s complement representation?
00000000
11110110
00001010
11111010
IX. When subtracting 3 from 9 in binary arithmetic, what is the correct result?
00000100
00000110
00000111
11111010
X. What is the outcome of adding -10 and 2 in binary form?
11111110
11111100
11111010
11111000
XI. If you subtract -5 from 2 using binary arithmetic, what is the result?
11111101
00010010
00000111
00001011
XII. What is the sum of -8 and -4 in binary representation?
11111010
11111000
11110110
11110100
XIII. What is the sum of -12 and 4 in binary representation?
11111000
11110010
11110100
11110110
XIV. What is the outcome of shifting 11100001 to the left by 1 bit?
11000010
XV. What is the outcome of shifting 10101010 to the left by 2 bits?
10101010
10101000
10101001
10101100
XVI. What is the result of arithmetic shifting 11011011 to the left by 2 bits?
11110110
XVII. If you shift 00011110 to the right by 4 bits, what is the result?
00000001
XVIII. What is the result of arithmetic shifting 11110000 to the left by 4 bits?
10000000
XIX. When rotating 11110000 to the left by 2 bits, what is the resulting binary number?
11000011
XX. What is the outcome of rotating 00111100 to the right by 4 bits?
11000011
Which is the primary advantage of microprogrammed control over hardwired control?
Faster execution speed
Greater Flexibility
Lower Cost
Simpler Design
How does the size of the microinstruction format impact the complexity of a microprogrammed control unit?
Larger size simplifies the design
Smaller size increases the speed
Larger size allows for more microoperations
Smaller size reduces the number of possible microoperations
In microprogrammed control, what role does the microprogram sequencer play in the execution of instructions?
Decoding the instruction set
Generating the control signals
Managing the branch instructions
Executing arithmetic operations
Which component of a microprogrammed control unit is responsible for interpreting the microinstruction format and generating control signals?
Arithmetic Logic Unit
Microprogram sequencer
Control Memory
Input/Output Interface
How does the microprogrammed control unit handle conditional branching during the execution of instructions?
By halting the execution until a branch condition is met
By ignoring branch instructions
By executing all branches simultaneously
By selecting the branch based on status bit conditions
Analyze the function of the BRZ Loop instruction in the LMC (Little Man Computer) program. Which of the following best describes its purpose?
Adds the value stored in the accumulator to the value at the Loop address
Stores the current value in the accumulator to the Loop address
Subtracts the value at the Loop address from the accumulator value
Branches to the Loop address if the value in the accumulator is zero
Analyze the steps taken by the control unit after each instruction is executed. Which of the following best describes its subsequent action?
Fetches next instruction
Increments program counter
Decodes instructions
Stores the result in memory
Analyze the role of the instruction register (IR) in a control unit. Which of the following best describes its function?
Decodes the current instructions
Executes complex mathematical operations
Retrieves the next instruction from memory
Advances the program counter to the subsequent instruction
Which component of a control unit loads individual instructions from memory?
Control Unit (CU)
Arithmetic Logic Unit (ALU)
Instruction Register (IR)
Program Counter (PC)
Analyze the role of the control unit within a processor. Which of the following best describes its function?
Manages the communication between the processor and peripheral devices
Executes mathematical operations and logical comparisons
Directs the flow of data and instructions within the processor
Retains instructions and data for immediate access
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?
Sockets
South Bridge
North Bridge
Expansion Slots
Analyze the role of the Northbridge in a motherboard. Which of the following best describes its function?
Manages communication between CPU and RAM
Controls peripheral devices such as keyboards and mice
Regulates power distribution to the motherboard components
Handles data transfer between the CPU and hard drives
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?
Allows multiple data transfers simultaneously
Increases data transfer speed by using parallel lines
Transfers data one bit at a time along a single pathway
Connects multiple processors to a single memory module
Examine the advantages of a multi-lane bus design. Which of the following best describes its primary benefit over a single-lane bus design?
Simplifies the architecture of the motherboard
Analyze why early computers housed components like the CPU and RAM in separate cabinets. What could be a reason for this design choice?
Due to miniaturization limits at the time
To facilitate better cooling efficiency
To enhance the aesthetic design
To prevent electromagnetic interference
Examine the evolution of terminology in computer architecture. How did the term 'bus' originate?
It was derived from 'databus'
It evolved from 'busway'
It originated from 'busbar'
It came from the lastname Bus
Analyze the role of RAM in a computer system. Which of the following best describes its function?
Analyze the construction of RAM using basic logic gates. How do these gates contribute to the storage of information in RAM?
They enable the conversion of data into binary code
They facilitate the manipulation of data within the computer
They control the flow of electricity in the computer
They allow for the storage of a single bit of information
Critically evaluate the relationship between RAM and the ALU in a computer system. How does RAM interact with the ALU to perform computing tasks?
By managing input/output operations for the ALU
By providing temporary storage for data and instructions
By executing instructions directly
Which of the following statements is true about latches?
They are used to create registers.
They are less efficient than registers.
They are triggered by a data signal.
They can only store data temporarily.
What is the main advantage of an and-or latch over a single OR gate or a single AND gate?
It has a higher latency in processing data.
It can store both 0 and 1.
It requires more components to function.
It is more prone to errors.
What is the purpose of a write-enable line in a gated latch?
To prevent data from being read.
To choose the color of the latch.
To enable writing of data to the latch.
To increase the speed of data transfer.
How does a register differ from a single latch?
A register requires a separate read-enable line for each bit.
A register is more volatile than a latch.
A register can store multiple bits of data.
A register uses a clock signal for operation.
What is the function of a multiplexer in memory addressing?
It controls the flow of data between different memory modules.
It converts the binary address into a decimal value.
It selects the appropriate row or column based on the address.
It refreshes the data stored in the memory cells.
What is the benefit of using a matrix to organize latches in memory?
It allows for more efficient power consumption.
It increases the speed of data retrieval.
It reduces the number of wires needed for addressing.
It simplifies the process of reading data from memory.
