Objective
Objective
C H A P T E R
08
PROGRAMMING
CONCEPTS
Program can be defined as a set of instructions 1. Machine Language It is the only language
that need to be executed to accomplish a understood by the computers. Sometimes, it
computing task. A person who writes or referred to as machine code or object code or
performs the program is known as binary language. It is a collection of binary
programmer. Programmer uses some specific digits (0 or 1) or bits that the computer reads
languages to write program which is known as and interprets.
programming languages e.g. C+ +, Java, etc. 2. Assembly Language It is a low level
programming language which is used as an
Programming Language interface with computer hardwares. It uses
It is a set of commands, instructions and other structured commands as substitutions for
syntax use to create a software program. numbers, allowing humans to read the code
Programming language must be simple, easy easier than looking at binary codes.
to learn and use. It must be consistent in terms
of syntax and semantics.
Medium Level Language (MLL)
It serves as the bridge between raw hardware and
Programming languages are mainly categorised
programming layer of a computer system. It is
into three parts which are as follows designed to improve the translated code before it is
executed by the processor. e.g. C.
Low Level Language (LLL)
These programming languages are more High Level Language (HLL)
difficult to understand. It is designed to It is an advanced computer programming language
operate and handle the entire instruction set of that is not limited to one computer, designed for a
a computer system directly which are specific job and is easier to understand. The main
generally used to write the system software. advantage of high level languages over low level
e.g. Machine language and Assembly languages is that they are easier to read, write and
language. understand. e.g. BASIC, C, FORTRAN, Java, Pascal, etc.
Programming Concepts 73
OOPs
OOPs stands for Object Oriented Programming in which programs are considered as a collection of objects. Each
object is nothing but an instance of a class.
De-Bugging
It is the process of locating and fixing or bypassing bugs (errors) in computer program code.
74 Learn, Revise & Practice ~ Computer Awareness
Algorithm Tit-Bits
An algorithm is a step by step method of solving a ■ Visual Basic is an interpreted language.
problem. It is commonly used for data processing, ■ Reserved words are words that a programming
calculation and other related computer and language has set aside for its own use.
mathematical operations. ■ Pseudocode is not a programming language, but
The desirable features of an algorithm are simply an informal way of describing a program. It
(i) Each step of algorithm should be simple. does not follow any syntax strictly.
QUESTION BANK
1. The instructions that tell a computer how to 5. A factor in the selection of source language is
carry out the processing tasks are referred (1) programmer skill (2) language availability
to as computer [IBPS PO 2015] (3) program compatibility with other software
(1) programs (2) processors (4) All of the above
(3) input devices (4) memory modules
(5) None of these
6. Languages which can easily interact with
the hardware are called
2. A set of rules for telling the computer what (1) High level languages
operations to perform is called a (2) Low level languages
[IBPS PO 2012] (3) Middle level languages
(1) Procedural language (2) Structures (4) All of the above
(3) Natural language (4) Command language
(5) Programming language 7. Machine language [SBI PO 2013]
(1) is the language in which programs were first
3. Which of the following contains specific written
rules and words that express the logical (2) is the only language understood by the computer
steps of an algorithm? [IBPS Clerk 2014] (3) differs from one type of computer to another
(1) Programming language (4) All of the above
(2) Syntax (5) None of the above
(3) Programming structure
(4) Logical chart 8. The use of combination of 1’s and 0’s is
(5) Flow chart feature of which of the following type of
computer language? [IBPS PO 2016]
4. A (n) ……… program is one that is ready to
(1) High Level Language
run and does not need to be altered in any
(2) PASCAL
way. [IBPS Clerk 2013]
(3) Machine Language
(1) interpreter (2) high level
(4) C
(3) compiler (4) COBOL
(5) COBOL
(5) executable