Computer Awareness Study Material – Programming Concepts
Computer Awareness Study MaterialBanking AwarenessMarketing Aptitude
It is the sequence of instructions in which the problems of computer tasks and steps are performed with the help of computer. A person who writes or performs the program is known as programmer. Programmer use is some specific languages to write program which is known as programming languages e.g. C++, Java, etc.
Programming Language
It is a set of keywords, symbols and a system of rules for constructing statements by which humans can communicate instructions to be executed by a computer.
Programming languages are mainly categorised into three parts which are as follows
Low Level Language
These programming languages are more arcane and difficult to understand. It is designed to operate and handle the entire instruction set of a computer system directly which are generally used to write the system software, e.g. Machine language and Assembly language.
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.
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.
Medium Level Language
It serves as the bridge between raw hardware and programming layer of a computer system. It is designed to improve the translated code before it is executed by the processor. C language is known as medium level language.
High Level Language (HLL)
It is an advanced computer programming language that is not limited to one computer, designed for a specific job and is easier to understand. The main advantage of high level languages over low level languages is that they are easier to read, write and understand, e.g. BASIC, C, FORTRAN, Java, Pascal, etc.
Some High Level Languages and Their Application Areas
Language | Year | Developer | Application Area | Nature |
FORTRAN (Formula Translation) | 1957 | a team of programmers at IBM | Calculation | Compiled |
ALGOL
(Algorithmic Language) |
1958 | A commitee of European and American computer scientists | Scientific purpose | Compiled |
LISP (List Processing) | 1958 | John McCarthy at the Massachusetts Institute of Technology (MIT) | Artificial intelligence | Compiled and Interpreted |
COBOL (Common Business Oriented Language) | 1959 | Grace Hopper | Business management, string oriented | Compiled |
BASIC (Beginner’s All purpose Symbolic Instruction Code) | 1964 | John G. Kemeny and Thomas E. Kurtz at Dartmouth college in New Hampshire | Programming for educational purpose | Interpreted |
Pascal | 1970 | Niklaus Wirth | Education | Compiled |
C | 1972 | Dermis Ritchie at Bell Labs | System programming | Compiled |
C++ | 1983 | Bjarne Stroustrup at Bell Labs | System object programming | Compiled |
Java | 1995 | J times Gosling at Sun Microsystems | Internet oriented programming | Compiled and Interpreted |
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 are divided into three categories -which are as follows
Assembler
It converts a program written in assembly language into machine language. Assembly language consists of mnemonic codes, which are difficult to learn and are machine dependent.
Some basic functions of an assembler are as follows
- Replaces mnemonic codes by machine codes.
- Replaces symbolic addresses by numeric addresses.
- Determines machine representation for constants.
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 the user at the same time and 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.
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 (copy created by the compilation of source code). Compiler converts the entire HLL program in one go and reports all the errors of the program alongwith the line numbers.
Algorithm
It is an effective method that can be expressed within a finite amount of space and time and in a well-defined formal language for calculating a function.
The desirable features of an algorithm are
- Each step of algorithm should be simple.
- It must and in a finite number of steps.
- It should be as efficient as possible.
- It should be unambiguous in the sense that the logic should be crisp and clear.
- It should be effective, i.e. it must lead to a unique solution of the problem.
Flowchart
It is a type of diagram that represents an algorithm work flow or process, showing the steps as boxes of various kinds, and their order by connecting them with arrows. Flowcharts are used in analysing, designing , documenting or managing a process or program in various fields. The two most common types of boxes in a flowchart are
- A processing step, usually called activity and denoted as a rectangular box.
- A decision, usually denoted as a diamond.
QUESTION BANK
1. Which language is CPU dependent ?
- C
- Assembly
- Java
- All except Java
- None of these
2. Languages which can easily interact with the hardware are called
- High level languages
- Low level languages
- Middle level languages
- All of the above
- None of the above
3. Computer language used on Internet is
- PASCAL
- Java
- BASIC
- LOGO
- None of these
4. A computer program used for business application is
- LOGO
- COBOL
- BASIC
- FORTRAN
- C + +
5. The language which can be relocated easily is
- Machine language
- Assembly language
- Low level language
- Middle level language
- High level language
6. Lisp is the second oldest high level programming language. Here Lisp stands for
- Level Program
- Level Process
- List Processing
- List Program
- None of these
7. Computer language used for calculation is
- LOGO
- FORTRAN
- BASIC
- C++
- PASCAL
8. The language used for development of various games is
- C
- C++
- JavA
- SQL
- FORTRAN
9. Which of the following is not characteristic of COBOL?
- It is a very standardised language
- It is a very efficient in terms of coding and execution
- It had limited facilities for mathematical notation
- It is very readable language
- None of the above
10. A factor in the selection of source language is
- programmer skill
- language availability
- program compatibility with other software
- All of the above
- None of the above
11. All computer execute
- BASIC programs
- COBOL programs
- Machine language programs
- FORTRAN programs
- All of these
12. LISP is designed for
- artificial intelligence
- GUI
- CUI
- optical fibre
- transistor
13. C language developed by Dennis Ritchie in
- 1970
- 1971
- 1972
- 1973
- 1974
14. Main application area of ALGOL is
- General
- Scientific
- Engineering
- Commercial
- Teaching
15. ……….. is a string oriented.
- SNQBOL
- COBOL
- PASCAL
- PERL
- LISP
16. Assembly language is a
- Machine language
- High level programming language
- Low level programming language
- Language for assembling computers
- None of the above
17. Which of the following is not true about an assembler?
- Translates instructions of assembly language in machine language
- It translates the C program
- It is involved in program’s execution
- It is a translating program
- It does not translate a Basic program
18. Compiler is the
- name given to the computer operator
- part of the digital machine to store the information
- operator of boolean algebra
- translator of source program to object code
- part of arithmetic logic unit
19. An assembler is a
- Programming language dependent
- Syntax dependent
- Machine dependent
- data dependent
- None of the above
20. Each model of a computer has a unique
- Assembly of a computer
- Machine language
- High level language
- All of the above
- None of the above
21. Assembly language [IBPS Clerk 2011]
- uses alphabetic codes in place of binary numbers used in machine language.
- is the easiest language to write programs
- need not be translated into machine language
- All of the above
- None of the above
22. ……….. are words that a programming language has set aside for its own use. [IBPS PO 2011]
- Control words
- Control structures
- Reserved words
- Reserved keys
- None of these
23. FORTRAN stands for [SBI Clerk 2011]
- Formal Translation
- Formative Translation
- Formal Transaction
- Formula Transaction
- Formula Translation
24. The ………… program is used to convert mnemonic code to machine code. [SBI Clerk 2011]
- Debug
- C++
- FORTRAN
- Assembler
- None of these
25. Which among the following is/are interpreted language? [SBI PO 2011]
- C
- C + +
- Java
- Visual Basic
- Both ‘3’ and ‘4’
26. The function of an assembler is [IBPS PO 2011]
- To convert basic language into machine language
- To convert high level language into machine language
- To convert assembly language into machine language
- To convert assembly language into low level language
- None of the above
27. Which of the following is not a computer language ? [SBI Clerk 2012]
- High level language
- Machine language
- Low level language
- Medium level language
- None of these
28. Translator program used in assembly language is called [SBI Clerk 2012]
- compiler
- interpreter
- translation
- translator
- assembler
29. ………. is a cross between human language and a programming language.
- Pseudocode [IBPS PO 2012]
- Java
- The Java virtual machine
- The compiler
- None of the above
30. Which of the following is a programming language for creating special programs like Applets? [IBPS Clerk 2012]
- Java
- Cable
- Domain name
- Net
- COBOL
31. C++ language developed by [IBPS Clerk 2012]
- Dennis Ritchie
- Charles Babbage
- Niklaus Wirth
- Bjarne Stroustroup
- John McCharthy
32. A set of rules for telling the computer what operations to perform is called a [IBPS PO 2012]
- Procedural language
- Structures
- Natural language
- Command language
- Programming language
33. What does CO stands in COBOL? [IBPS Clerk 2012]
- Common Object
- Common Oriented
- Common Operating
- Computer Oriented
- None of the above
34. Compiling creates a (n) [RBI Grade B 2012]
- Error-free program
- Program specification
- Subroutine
- Algorithm
- Executable program
35. Machine language [SBI PO 2013]
- is the language in which programs were first written
- is the only language understo .d by the computer
- differs from one type of computer to another
- All of the above
- None of the above
36. In programming, repeating some statements is usually called [SSC CGL 2013]
- Looping
- Control structure
- Compiling
- Structure
37. A(n)………. program is one that is ready to nm and does not need to be altered in any way. [IBPS Clerk 2013]
- Interpreter
- High level
- Compiler
- COBOL
- Executable
38. …………. is a written description of a computer program’s functions. [SBI PO 2014]
- Explanatory instructions
- Graphical user interface
- Plug and play
- README files
- Documentation
39. Which of the following is not a computer language ? [SBI PO 2014]
- BASIC
- COBOL
- LOTUS
- FORTRAN
- None of the above
40. Java is referred to as a (n) [SBI PO 2014]
- High level language
- Complex language
- Hardware device driver
- Low level language
- Programming mid level language
41. Which of the following contains specific rules and words that express the logical steps of an algorithm? [IBPS Clerk 2014]
- Programming language
- Syntax
- Programming structure
- Logical chart
- flow chart
42. Computer program are written in a high level programming language, however the human readable version of a program is called [IBPS PO 2015]
- Word size
- Source code
- Instruction set
- Application
- Hard drive
43. The instructions that tell a computer how to carry out the processing tasks are referred to as computer [IBPS PO 2015]
- Programs
- Processors
- Input devices
- Memory modules
- None of the above
44. C, BASIC, COBOL and Java are examples of …………… languages. [IBPS Clerk 2015]
- Low-level
- Computer
- System programming
- High level
- None of the above
45. A set of step-by-step procedures for accomplishing a task is known as a(n) [IBPS Clerk 2015]
- Algorithm
- Hardware program
- Software
- Firmware program
- None of the above
46. In Computer programming there is set of subroutine definitions, protocols and tools for building software and applications. Which among the following is a term for sets of requirements that govern how one application can talk to another?
- UPS
- API
- CGI
- J2EE
- OLE
47. The use of combination of l’s and 0’s is feature of which of the following type of Computer Language? [IBPS PO 2016]
- High Level Language
- PASCAL
- Machine Language
- C
- COBOL
ANSWERS
Leave a Reply