COMP 308 JAVA FOR PROGRAMMERS
COMPLETE STUDY GUIDE WITH SOLVED
QUESTIONS
◉ What is machine language?
Answer: A simple type of language that computers use to execute
programs directly.
◉ What does RAM stand for?
Answer: Random Access Memory.
◉ What is the fetch-and-execute cycle?
Answer: The process where the CPU fetches an instruction from
memory and executes it repeatedly.
◉ What is the role of the Arithmetic Logic Unit (ALU) in a CPU?
Answer: To carry out operations such as addition and subtraction.
◉ What are registers in the context of a CPU?
Answer: Small memory units capable of holding a single number,
used for immediate data processing.
,◉ What is the program counter (PC)?
Answer: A special purpose register that stores the memory address
of the next instruction to be executed.
◉ 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.
COMPLETE STUDY GUIDE WITH SOLVED
QUESTIONS
◉ What is machine language?
Answer: A simple type of language that computers use to execute
programs directly.
◉ What does RAM stand for?
Answer: Random Access Memory.
◉ What is the fetch-and-execute cycle?
Answer: The process where the CPU fetches an instruction from
memory and executes it repeatedly.
◉ What is the role of the Arithmetic Logic Unit (ALU) in a CPU?
Answer: To carry out operations such as addition and subtraction.
◉ What are registers in the context of a CPU?
Answer: Small memory units capable of holding a single number,
used for immediate data processing.
,◉ What is the program counter (PC)?
Answer: A special purpose register that stores the memory address
of the next instruction to be executed.
◉ 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.