Comprehensive Worksheet – Chapter 1:
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.
1. 1. Which of the following is a high-level programming language?
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.
2. 2. What is the function of a compiler in programming?
A) Runs the program
B) Translates code into machine language
C) Draws flowcharts
D) Stores data
Answer: B
Explanation: The compiler converts high-level source code into machine-readable object
code.
3. 3. A __________ is a set of instructions written to perform a specific task.
Answer: program
Explanation: A program consists of instructions for the computer to follow.
4. 4. The step-by-step method for solving a problem is called an __________.
Answer: algorithm
Explanation: An algorithm provides the logic and sequence of steps to solve problems.
5. 5. A flowchart is used to visually represent a program's logic. (True/False)
Answer: True
Explanation: Flowcharts help in planning the structure of a program using symbols.
6. 6. Machine language is easy for humans to understand. (True/False)
Answer: False
Explanation: Machine language is made up of binary code, which is difficult for humans to
read.
7. 7. Define the term 'debugging' in programming.
Answer: Debugging is the process of identifying and correcting errors in a program.
Explanation: It ensures the program behaves as expected by removing bugs or flaws.
8. 8. Differentiate between syntax error and logical error.
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.
9. 9. Which component is responsible for executing the compiled program?
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
Explanation: A programmer develops software by writing code and debugging it.
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: High-level languages are easier to read, write, and maintain.
Explanation: They allow abstraction from hardware and better productivity.
13. 13. What does SDLC stand for in software development?
A) Software Design Logic Cycle
B) Software Development Life Cycle
C) System Developer License Code
D) Structured Debugging and Logic Cycle
Answer: B
Explanation: SDLC outlines the phases of software development from planning to
maintenance.