Unit:6
Computer programing
Q1: What is a program?
Answer: A program is a set of instruction used to solve a problem. Programs are
an integral part of a computer. It is a well-defined set of instructions to execute a
particular task.
___________________________________________________________________
Q2: What do you understand by the term 'programing'?
Answer: Computer programming is defined as a process of designing, writing,
testing, debugging and documenting a program. Programming languages are
divided into the following types:
Low Level Language (LLL)
High Level Languages (HLL)
___________________________________________________________________
Q3: What is low level language?
Answer: LOW LEVEL LANGUAGES (LLL)
Low level languages are machine-oriented languages. It means, these are easily
understood by the computer. These languages are generally machine dependent.
These languages are difficult for a programmer to learn. Low level languages are
of the following types:
Machine Level Language (MLL)
Assembly Level Language (ALL)
Unit:6
Q4: What is high level language? Write some of its advantages.
Answer: High Level languages (HLL)
High level languages are easier for a human programmer to understand. They are
generally not dependent on any particular computer.
Advantages of High-Level Languages
There are many advantages of high-level languages. These languages are as
follows:
1. Understandability
Programs written in these languages are easy to understand and read than those
in low level languages.
2. Debugging
Debugging simply means to remove errors in a program. It is easier to find and
remove errors in a high-level languages program.
3. Potability
Programs written for one machine can run on different machines with very minor
changes.
Example of high-level languages
Some Examples of high-level languages are:
1. BASIC
2. LOGO
3. JAVA
4. COBOL
Unit:6
Q4: Write a short note on:
a. Basic
b. Logo
c. Java
Answer: BASIC
BASIC stand for Beginner's All-purpose Symbolic Instruction Code. It is a very
simple language.
LOGO
LOGO stands for Language of Graphic Orientation. It is also a simple language
used to draw figures and do sums.
JAVA
Java is a modern language developed by Sun Microsystems. It also uses the
concept of object-oriented programming and is very popular among
programmers.
Q5: What are compiler and interpreter?
Answer: COMPILER
Compiler translates the whole program in a single operation. A program written in
high level language is converted directly into machine level language.
INTERPRETER
An interpreter translates a program in a step-by-step process. It is slower than the
compiler.
Q7: What is decoding of program? Explain types of translators.
Answer: High level languages are designed for the ease of programmers. These
languages are not understood by the computer because it only understands 0s
and 1s. To make the computer understand a program, it is converted into
machine level language by a compiler or interpreter. This process is called
decoding of programs.
Unit:6
There are three types of translators. These are:
1. Assembler
2. Compiler
3. Interpreter
ASSEMBLER
assembler converts a program written in assembly level languages into machine
level language
de assembly code into machine code.
COMPILER
Compiler translates the whole program in a single operation. A program written in
high level
language is converted directly into machine level language.
INTERPRETER
An interpreter translates a program in a step-by-step process. It is slower than the
compiler.