COMP 308 JAVA FOR PROGRAMMERS FULLY
SOLVED FINAL EXAM PAPER GRADED A+
◉ How does the CPU access data in memory?
Answer: By sending the address of the data as a signal to the
memory.
◉ What is the significance of binary numbers in machine language?
Answer: Machine language instructions and data are encoded as
binary numbers, consisting of zeros and ones.
◉ What is a bit?
Answer: The smallest unit of data in a computer, representing a
binary digit (0 or 1).
◉ What does a byte consist of?
Answer: A sequence of eight bits.
◉ How does a CPU execute machine language instructions?
Answer: By turning switches on or off in a pattern that encodes the
instruction.
,◉ What happens when the CPU fetches an instruction from
memory?
Answer: It reads a sequence of bytes that represent the instruction.
◉ What is the relationship between machine language and the
physical structure of a computer?
Answer: A computer executes machine language mechanically based
on its physical wiring and components.
◉ What is the purpose of main memory in a computer?
Answer: To hold machine language programs and data.
◉ What does it mean for a CPU to execute instructions
mechanically?
Answer: It executes instructions without understanding them,
simply following the encoded patterns.
◉ What is meant by 'jumping' in a program?
Answer: Modifying the program counter to execute instructions
from a different point in the program.
◉ What are general purpose registers?
Answer: Registers that hold data values immediately accessible for
processing.
, ◉ What is the difference between machine language and higher-
level programming languages?
Answer: Machine language is specific to a computer's architecture,
while higher-level languages need to be translated into machine
language.
◉ What is the role of memory caches in modern computers?
Answer: To speed up access to frequently used data and
instructions.
◉ How does the CPU update the program counter during the fetch-
and-execute cycle?
Answer: It updates the PC to indicate the next instruction to execute.
◉ What is a sequence of machine language instructions stored in
memory?
Answer: A program that the CPU executes.
◉ What is the significance of the fetch-and-execute cycle in
computing?
Answer: It is the fundamental operation that allows the CPU to
process instructions and execute programs.
SOLVED FINAL EXAM PAPER GRADED A+
◉ How does the CPU access data in memory?
Answer: By sending the address of the data as a signal to the
memory.
◉ What is the significance of binary numbers in machine language?
Answer: Machine language instructions and data are encoded as
binary numbers, consisting of zeros and ones.
◉ What is a bit?
Answer: The smallest unit of data in a computer, representing a
binary digit (0 or 1).
◉ What does a byte consist of?
Answer: A sequence of eight bits.
◉ How does a CPU execute machine language instructions?
Answer: By turning switches on or off in a pattern that encodes the
instruction.
,◉ What happens when the CPU fetches an instruction from
memory?
Answer: It reads a sequence of bytes that represent the instruction.
◉ What is the relationship between machine language and the
physical structure of a computer?
Answer: A computer executes machine language mechanically based
on its physical wiring and components.
◉ What is the purpose of main memory in a computer?
Answer: To hold machine language programs and data.
◉ What does it mean for a CPU to execute instructions
mechanically?
Answer: It executes instructions without understanding them,
simply following the encoded patterns.
◉ What is meant by 'jumping' in a program?
Answer: Modifying the program counter to execute instructions
from a different point in the program.
◉ What are general purpose registers?
Answer: Registers that hold data values immediately accessible for
processing.
, ◉ What is the difference between machine language and higher-
level programming languages?
Answer: Machine language is specific to a computer's architecture,
while higher-level languages need to be translated into machine
language.
◉ What is the role of memory caches in modern computers?
Answer: To speed up access to frequently used data and
instructions.
◉ How does the CPU update the program counter during the fetch-
and-execute cycle?
Answer: It updates the PC to indicate the next instruction to execute.
◉ What is a sequence of machine language instructions stored in
memory?
Answer: A program that the CPU executes.
◉ What is the significance of the fetch-and-execute cycle in
computing?
Answer: It is the fundamental operation that allows the CPU to
process instructions and execute programs.