Programming Concepts MCQ
Programming Concepts MCQ
com/c/GKEDITORIAL
Programming Concepts (Highly Useful for IBPS, SBI (Bank PO & Clerk), SSC, Railway, Police
and all Other State Competitive Exams)
Program can be defined as a set of instructions that need to be executed to accomplish a computing task. A
person who writes or performs the program is known as programmer. Programmer uses some specific
languages to write program which is known as programming languages e.g. C+ +, Java, etc.
Programming Language
It is a set of commands, instructions and other syntax use to create a software program. Programming
language must be simple, easy to learn and use. It must be consistent in terms of syntax and semantics.
Programming languages are mainly categorised into three parts which are as follows
1. Machine Language It is the only language understood by the computers. Sometimes, it referred to as
machine code or object code or binary language. It is a collection of binary digits (0 or 1) or bits that the
computer reads and interprets.
2. Assembly Language It is a low level programming language which is used as an interface with computer
hardwares. It uses structured commands as substitutions for numbers, allowing humans to read the code
easier than looking at binary codes.
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.
These Questions Prepared by: SONU (GK EDITORIAL) www.YouTube.com/c/GKEDITORIAL
De-Bugging
It is the process of locating and fixing or bypassing bugs (errors) in computer program code.
Language Translator
It helps in converting programming languages to machine language.
The translated program is called the object code. Depending upon used programming languages, language
translator is divided into three categories which are as follows
1. Assembler It converts a program written in assembly language into machine language. Assembly language
consists of mnemonic code, which are difficult to learn and are machine dependent.
2. Interpreter It converts a HLL program into machine language by converting it line-by-line. If there is any
error in any line, it stops the execution of the program immediately and reports to the user at the same time.
Program execution cannot resume until the error is rectified by the user. Interpreter is very useful for
debugging and suitable for novice programmer. This is a slow process and consumes less memory space.
3. Compiler It converts HLL program into machine language, which can be understood by the processor. For
each high level language, the machine requires a separate compiler. A compiler creates a unique object
program, i.e. if a source program is compiled, there is no need of that source program because output can be
obtained by executing that object program. Compiler converts the entire HLL program in one go and reports
all the errors of the program alongwith the line numbers.
Generation of Languages
The concept of language generations, sometimes called levels, is closly connected to the advances in
technology that brought about computer generations. The five generations of language are as follows
(i) The first generation languages or 1 GLs are low level languages like machine language.
(ii) The second generation languages or 2GLs are also low level languages that generally consist of assembly
language.
(iii) The third generation languages or 3GLs are high level languages such as Java.
(iv) The fourth generation languages or 4GLs are the languages that consist of statements similar to the
statements of human language. 4GLs are commonly used in database programming and scripting
programming.
(v) The fifth generation languages or 5GLs are programming languages that contain visual tools, which help to
develop a program. A good example of 5GLs is Visual Basic.
Error
An error in a program is called bug. It is a term used to describe any issue that arises unexpectedly that cause
a computers not function properly.
Types of Error
The types of error are classified into four categories which are as follows
1. Syntax Error When the rules of the programming language are not followed,the compiler will show syntax
error.
2. Semantic Error Semantic errors are reported by the compiler when the statements written in the program
are not meaningful to the compiler.
3. Logical Error Logical errors are those errors that occur in the output of the program.The presence of logical
errors leads to undesired or incorrect output.
These Questions Prepared by: SONU (GK EDITORIAL) www.YouTube.com/c/GKEDITORIAL
4. Runtime Error Runtime errors are those errors that occur during the execution of a program.It generally
occurs due to some illegal operation performed in the program.
Algorithm
An algorithm is a step by step method of solving a problem. It is commonly used for data processing,
calculation and other related computer and mathematical operations.
The desirable features of an algorithm are
(i) Each step of algorithm should be simple.
(ii) It must be in a finite number of steps.
(iii) It should be as efficient as possible.
(iv) It should be clear in the sense.
(v) It should be effective, i.e. it must lead to a unique solution of the problem.
1. Which of the following contains specific rules and words that express the logical steps of an algorithm?
[IBPS Clerk 2014]
(1) Programming language (2) Syntax (3) Programming structure (4) Logical chart (5) Flow chart
Ans. 3
7. ....... serves as the bridge between raw hardware and programming layer of a computer system.
(1) Medium level language (2) Low level language (3) High level language (4) Both ‘1’ and ‘2’
Ans. 1
9. Which of the following computer language is a mathematically oriented language used for scientific
problems?
(1) Fortran (2) Cobol (3) Lisp (4) Prolog
Ans. 1
12. Lisp is the second oldest high level programming language. Here, Lisp stands for
(1) Level Program (2) Level Process (3) List Processing (4) List Program
Ans. 3
19. Which of the following is a programming language for creating special programs like Applets?
[IBPS Clerk 2012]
(1) Java (2) Cable (3) Domain name (4) Net (5) COBOL
Ans. 1
20. Which among the following is/are interpreted language? [SBI PO 2011]
(1) C (2) C + + (3) Java (4) Visual Basic (5) Both ‘3’ and ‘4’
Ans. 5
22. Languages which can easily interact with the hardware are called
(1) High level languages (2) Low level languages (3) Middle level languages (4) All of the above
Ans. B
24. The ……… program is used to convert mnemonic code to machine code. *SBI Clerk 2011+
(1) Debug (2) C + + (3) FORTRAN (4) Assembler (5) None of these
Ans. 4
25. An assembler is a
(1) programming language dependent (2) syntax dependent (3) machine dependent (4) data dependent
Ans. 3
30. Error which occurs when program tried to read from file without opening it is classified as
(1) execution error messages
(2) built in messages
(3) user defined messages
(4) half messages
(5) None of the above
Ans. 1
31. ......... is a cross between human language and a programming language. [IBPS PO 2012]
(1) Pseudocode (2) Java (3) The Java virtual machine (4) The compiler (5) None of the above
Ans. 1
1. The instructions that tell a computer how to carry out the processing tasks are referred to as computer
[IBPS PO 2015]
(1) programs (2) processors (3) input devices (4) memory modules (5) None of these
2. A set of rules for telling the computer what operations to perform is called a [IBPS PO 2012]
(1) Procedural language (2) Structures (3) Natural language (4) Command language (5) Programming language
3. A (n) ……… program is one that is ready to run and does not need to be altered in any way. *IBPS Clerk 2013]
(1) interpreter (2) high level (3) compiler (4) COBOL (5) executable
5. The use of combination of 1’s and 0’s is feature of which of the following type of computer language?
[IBPS PO 2016]
(1) High Level Language (2) PASCAL (3) Machine Language (4) C (5) COBOL
11. C, BASIC, COBOL and Java are examples of ……… languages. *IBPS Clerk 2015+
(1) Low level (2) Computer (3) System programming (4) High level (5) None of these
12. Translator program used in assembly language is called [SBI Clerk 2012]
(1) compiler (2) interpreter (3) translation (4) translator (5) assembler
15. Computer programs are written in a high level programming language, however the human readable
version of a program is called [IBPS PO 2015]
(1) Word size (2) Source code (3) Instruction set (4) Application (5) Hard drive
These Questions Prepared by: SONU (GK EDITORIAL) www.YouTube.com/c/GKEDITORIAL
16. A set of step-by-step procedures for accomplishing a task is known as a (n) [IBPS Clerk 2015]
(1) Algorithm
(2) Hardware program
(3) Software
(4) Firmware program
(5) None of the above
17. ……… are words that a programming language has set aside for its own use. [IBPS PO 2011]
(1) Control words
(2) Control structures
(3) Reserved words
(4) Reserved keys
(5) None of these
18. In programming, repeating some statements is usually called [SSC CGL 2013]
(1) looping
(2) control structure
(3) compiling
(4) structure