Chapter1 Formatted Questions Expanded
Chapter1 Formatted Questions Expanded
Introduction to Programming
This document contains 50 questions in multiple formats: MCQ, Fill in the Blank,
True/False, and Short Answer, strictly based on Chapter 1. Each includes answers and
explanations.
A) Assembly
B) Binary
C) C++
D) Machine Code
Answer: C
Explanation: C++ is a high-level language, unlike assembly or machine code which are low-
level.
C) Draws flowcharts
D) Stores data
Answer: B
Explanation: The compiler converts high-level source code into machine-readable object
code.
Answer: program
Explanation: An algorithm provides the logic and sequence of steps to solve problems.
Answer: True
Answer: False
Explanation: Machine language is made up of binary code, which is difficult for humans to
read.
Answer: Syntax errors break language rules and prevent compilation. Logical errors allow
the program to run but produce wrong output.
Explanation: Syntax errors are easy to detect during compilation; logical errors require
testing to identify.
A) Editor
B) Compiler
C) Loader
D) Debugger
Answer: C
Explanation: The loader loads the executable file into memory and runs it.
10. 10. The person who writes and tests computer programs is called a __________.
Answer: programmer
11. 11. A syntax error occurs when the logic of a program is incorrect. (True/False)
Answer: False
Explanation: Syntax errors are caused by incorrect use of language rules, not logic.
12. 12. What is the main advantage of using high-level languages over low-level languages?
Answer: B