Worksheet: Introduction to
Programming (Chapter 1)
Part A: Multiple Choice Questions
Choose the correct answer and write the letter only.
1. Which of the following best describes a compiler?
A) A tool to type code
B) A tool to convert source code into machine code
C) A tool for designing GUIs
D) A tool to store data
2. What is the main purpose of programming?
A) To write essays
B) To create viruses
C) To instruct a computer to perform tasks
D) To translate spoken language
Part B: True/False
Write T for true and F for false.
3. A program is a set of instructions that a computer follows to perform a task.
4. An interpreter translates the entire program at once into machine language.
5. C++ is considered a low-level programming language.
Part C: Fill in the Blanks
Complete the following sentences with the correct words.
6. __________ is the process of identifying and correcting errors in a program.
7. The raw text of a program written in a programming language is called __________ code.
8. A __________ is a person who writes and tests computer programs.
Part D: Short Answer
9. What is the difference between a compiler and an interpreter?
10. What are the main characteristics of a high-level programming language?
Part E: Matching Type
Match the terms in Column A with their correct definitions in Column B.
Column A:
11. Algorithm
12. Debugging
13. Machine Language
14. Source Code
Column B:
A. Process of correcting errors in a program
B. A step-by-step procedure to solve a problem
C. A language directly understood by the computer
D. Instructions written by the programmer
Part F: Practical Task
15. Write an algorithm (in plain language) to find the sum of two numbers and print the
result.