Assessment Final Exam | 2026/2027 Edition (PDF)
1. Which best describes an algorithm?
A) A physical component of a computer
B) A step-by-step procedure to solve a problem
C) A type of programming language
D) A database query
Correct Answer: A step-by-step procedure to solve a problem
Rationale: An algorithm is a finite, well-defined sequence of instructions designed to perform a
specific task or solve a problem. It is not a physical component (hardware), a programming language,
or a database query, though algorithms may be expressed in those contexts.
2. Pseudocode is primarily used to:
A) Execute programs faster
B) Plan logic without syntax constraints
C) Replace compilers
D) Store user data
Correct Answer: Plan logic without syntax constraints
Rationale: Pseudocode uses plain, natural language-like statements to design algorithmic logic before
actual code is written, allowing developers to focus on logic rather than syntax. It is not an execution
tool, a compiler replacement, or a data storage method.
3. Which symbol typically represents assignment in pseudocode?
A) ==
B) =
C) !=
,D) <>
Correct Answer: =
Rationale: In pseudocode and many programming languages, the equals sign (=) denotes assigning a
value to a variable. The double equals (==) is used for comparison, while != and <> represent
inequality.
4. What does the keyword OUTPUT indicate in pseudocode?
A) Reading data from a file
B) Displaying information to the user
C) Initializing a variable
D) Ending a loop
Correct Answer: Displaying information to the user
Rationale: OUTPUT (or PRINT) sends data to a display or console, presenting results to the user. It
does not read data, initialize variables, or control loop termination.
5. Which structure shows program flow visually?
A) Pseudocode
B) Flowchart
C) Variable table
D) Comment block
Correct Answer: Flowchart
Rationale: Flowcharts use standardized symbols (ovals, diamonds, rectangles, parallelograms) to map
the execution path of a program. Pseudocode is textual, variable tables store data, and comment
blocks are annotations.
, 6. In a flowchart, an oval represents:
A) Process
B) Decision
C) Start/End
D) Input/Output
Correct Answer: Start/End
Rationale: Ovals (or rounded rectangles) denote the start or end points of a flowchart. Rectangles
represent processes, diamonds represent decisions, and parallelograms represent input/output.
7. Which is a required characteristic of a valid algorithm?
A) It must use recursion
B) It must terminate after finite steps
C) It must run in under 1 second
D) It must contain loops
Correct Answer: It must terminate after finite steps
Rationale: A fundamental property of an algorithm is finiteness—it must terminate after a finite
number of steps. Recursion, speed, and loops are not universal requirements.
8. What does INPUT do in pseudocode?
A) Saves data to memory
B) Accepts data from external sources
C) Validates syntax
D) Executes functions