Chapter 4 Introduction To Programming Concepts Worksheet 1
Chapter 4 Introduction To Programming Concepts Worksheet 1
12. Which symbol is commonly used to denote the beginning of a comment in Python?
A) //
B) /*
C) #
D) <!--
1. : A programming language is used to write instructions that a computer can understand. _______
4. : All programming languages are exactly the same and can do the same things. _______
6. : You can only use programming languages on desktop computers, not on mobile devices. _______
7. : Variables in programming can hold different types of data, such as numbers and text. _______
8. : The process of checking and fixing errors in a program is called compiling. _______
12. : Debugging is the process of finding and fixing errors in code. _______
16. : All programming languages are case-sensitive, meaning that uppercase and lowercase letters are treated
differently._______
Book exercise
True or false
1. Answer: True
2. Answer: False
3. Answer: True
4. Answer: False
5. Answer: True
6. Answer: False
7. Answer: True
8. Answer: False
9. Answer: True
10. Answer: True
11. Answer: False
12. Answer: True
13. Answer: False (HTML is a markup language, not a programming language.)
14. Answer: True
15. Answer: False (Syntax refers to the rules that define the structure of the code.)
16. Answer: False (While many are case-sensitive, not all programming languages are.
B
1. Assembler and Compiler
An assembler is a utility software program which is used to convert a program written in assembly
language into machine language and vice-versa whereas a compiler is a utility software program that
transforms the source code written in high-level language into machine language (object code) that a
computer can understand.
2. Compiler and Interpreter
C. 1. d 2. c 3. a 4. e 5. b
D
1.What is a program?
A program is a set of instructions written and executed in a specific sequence.
2.Name the five computer generation language.
The five generations of computer languages are given below.
a. First generation: Machine Language
b. Second generation: Assembly language
c. Third generation: High level language
d. Fourth generation: Very high level language
e. Fifth generation: Artificial intelligence
3.State any two point of first generation language.
Important points are:
a. First generation computer language is the lowest level of computer language.
b. Information was entered into the computer in the form of long series of 1s or 0s or the binary codes. These
codes can easily be interpreted
4. What are the important feature of fourth generation language?
The important features of fourth generation computer language are:
a. Instructions are written in English-like sentences.
b. These are non-procedural.
c. Increases productivity because programmers type fewer lines of code to get something
done.
5. State the advantages of object-oriented programming.
In Object Oriented Programming approach, programmers can build programs from
pre-existing objects and can use features from one program in another. These results in
faster development and thus it saves time, reduces maintenance costs, and improves
flexibility for future revisions.