Computer Awareness - SPLessons

Computer Languages

Chapter 8

SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Computer Languages

Computer Languages

shape Introduction

A program is a set of instructions that are written in a language called Programming Language.A computer programming language is a formal language, designed to communicate with a computer.

shape Concepts

History of Programming Languages:


  • In 19th century, programmable looms and player piano scrolls were implemented. These are the examples of domain-specific languages.

  • In between 1943 and 1945, the first high-level programming language Plankalkul was implemented by the German Z3 by Konrad Zuse.

  • In 1950’s, the third generation languages 3GL are more abstract and portable.

  • ALGOL 60 was introduced in 1950’s and continued as ALGOL 68.

  • APL implemented array programming and affected functional programming.

  • COBOL was invented in 1959. Simula was the first language to support object oriented programming language and was introduced in 1960.

  • C is a system programming language, introduced between 1969 and 1973.

  • C++ is the combination of object-oriented and system programming language.

  • The United States government standardized Ada, a system programming language is extracted from Pascal by defense contractors.

  • UNIX scripting tool was released in 1985 after Java was introduced for server side programming.

  • The 4 GLs are domain specific languages. These are manipulated and return data groups.  Example SQL


Types of Languages
The programming languages are classified into two types, they are:



Procedural Languages: Procedural languages explain the step by step performance of a task. These languages consist of the sequence, selection and repetition.


  • A sequence is known as step by step process.

  • Selection is nothing but choosing among the given options.

  • Repetition is repeating the specific process.

  • Early programming languages are usually procedural languages.


Non-Procedural Language: Non–Procedural Languages do not contain the features of procedural languages.


  • These languages do not support sequence, selection and repetition


Classification of Programming languages:
There are three types of programming languages, they are:


Machine Language: It is also called as first generation language. It is the only language that the computer can understand.


  • If a program is written in any other language, that program must be converted into machine language for execution.

  • These are machine dependent, which means if any program is written in one computer, it cannot be executed on another computer.

  • Earlier, the computer programs were written at the level of binary arithmetic in machine language.

  • Machine languages use some bits to represent tasks like mathematical calculations and this language is difficult to read and write.


Assembly Language: It is the second generation language.


  • It uses the meaningful abbreviations of words to represent basic computer instructions. It is a machine dependent.

  • Assembler is a program, which can convert assembly language into machine language. It uses the mnemonic codes.

  • It requires you to have the complete knowledge about computer architecture.

  • It is a low-level language.


High-level language: It is the third generation language. Any program written in a high-level language is called source program.


  • It is machine independent, and it must be converted into machine language before execution.

  • The high-level language is converted into machine language by using compiler and interpreter.

  • The compiler is a program used to create an object program from source code in machine language during execution.

  • The compiler can execute the entire code at a time.

  • An interpreter is a program that converts source code into machine language. It does not create an object.

  • The main difference between a compiler and interpreter is, the compiler can execute the entire program at a time but Interpreter executes line by line.

  • This language consists of syntactic and semantic rules.

  • Syntactic rules explain the grammar of source code.

  • Semantic rules refer to the meaning of the code.

  • Some high-level languages are

    COBOL: Stands for Common Business Oriented Language, used in commercial applications and mainframe computers.

    FORTRAN: It stands for Formula Translation, and is generally used in scientific and engineering applications.

    BASIC: It stands for Beginner’s All – purpose Symbolic Instruction Code. It can be easily learned and used by beginners. It is the mother of visual basic.

    PASCAL: It is used in scientific applications and named by French mathematician Blaise Pascal.

    C: It is a middle-level language implemented by Dennis M. Ritchie at AT & T Bell Laboratories in 1972.  It is a procedural language.

    C++: It is C language with object-oriented programming concepts. It was developed by Bjarne Strustrap in Bell Laboratories.

    Java: It is an object-oriented programming language developed by Sun microsystem. It is used to write applets and can run on all platforms.


Computer Architecture

Computer architecture is a collection of methods and rules used to perform fundamental operations. It is defined as the art of choosing and interconnecting hardware components. There are 3 main sub-categories of computer architecture, they are:


  1. An instruction set architecture: It is the embedded programming language that explains the capabilities and functions of the CPU based on the running program on either machine or assembly code. This includes the word size, memory addressing modes, processor registers & address and data formats.

  2. Micro-architecture: It is also known as computer organization. It is defined as the implementation of a processor in the ISA. It defines the data paths, processing data and storage elements.

  3. System Design: It is the collection of all hardware components in the system including data and processes. Memory controllers are hierarchies. The system is interconnected with computer buses and switches.


Computer Program

A computer program is a set of instructions that are executed to perform a particular task.


  • A computer program includes functions, methods and variables.

  • A program can be written in human-readable source code.

  • Computer source code is written by professional computer programmers in a programming language.

  • The source code can be converted into an executable code by a compiler or interpreter.

  • Two computer programs running simultaneously is called “Multitasking”.

  • Computer programs are loaded into RAM and are non-volatile. A program under execution is called process.


shape Questions

1. COBOL stands for____.

  1. Common Business Oriented Language
  2. Commercial Business Oriented Language
  3. Common Binary Oriented Language
  4. Common Business Organization Language

Answer: A

2. If a program is converted from a high level to a machine language is called ______.

  1. Hardware
  2. Application software
  3. System converter
  4. Compiler

Answer: E

3. C language was implemented by_____.

  1. Charles Babbage
  2. IBM
  3. Bell Laboratories
  4. United states Government committee

Answer: C

4. The mother of visual basic is____.

  1. PASCAL
  2. BASIC
  3. COBOL
  4. C

Answer: B

5. BASIC stands for_______

  1. Business All – purpose Systematic Instruction code
  2. Business All – proposal Symbolic Instruction code
  3. Bell’s All – pointer Symbolic Information code
  4. Beginner’s All – purpose Symbolic Instruction code

Answer: D

6. _______ Language computer can understand and execute.

  1. Assembly language
  2. Machine Language
  3. High-level Language
  4. Memorized language

Answer: B

7. C language was developed by______.

  1. Charles Babbage
  2. Von Neumon
  3. Bjarne Stroutstrup
  4. Dennis Ritchie

Answer: D

8. C++ language introduced by___

  1. Charles Babbage
  2. Von Neumon
  3. Bjarne Stroustrup
  4. Dennis Ritchie

Answer: C

9. Examples of High level Languages___.

  1. BASIC
  2. COBOL
  3. PASCAL
  4. All the above

Answer: D

10. SQL is example for ____.

  1. 1 GL
  2. 2 GL
  3. 3 GL
  4. 4 GL

Answer: D

11. In programming language COMAL, symbol of ‘//’ is used instead of

  1. unmarked variable
  2. unmarked strings
  3. remarks
  4. marked structure

Answer: C

12. COMAL language statement ‘//PROGRAM: Input three numbers and print average//’ shows

  1. defined function
  2. entered variables
  3. string variables
  4. real numbers

Answer: C

13. Program used for interactive computing is ______.

  1. translator
  2. executor
  3. instructor
  4. interpreter

Answer: D

14. In programming language BASIC, the area is calculated as ______.

  1. 100 Area=Width*Length
  2. 100 Area: = Width*Length
  3. Area: = Width*Length
  4. area 100: length*width

Answer: A

15. Computer programming language which is based on issues is called _______.

  1. advanced level programming language
  2. ordinary programming language
  3. high-level programming language
  4. low-level programming language

Answer: C

16. Group of all special characters, for example, digits and letters are named as _______.

  1. strings
  2. negative numbers
  3. odd numbers
  4. even numbers

Answer: A

17. In programming a single instruction is classified as ________.

  1. set of instructions
  2. statement
  3. set of codes
  4. set of formula

Answer: B

18. Program style and should be composed in _______.

  1. well-structured manner
  2. easy modification format
  3. easily understandable
  4. all of above

Answer: D

19. If an element in an array has two subscripts, then array has _____.

  1. single dimension
  2. three dimensions
  3. four dimensions
  4. two dimensions

Answer: D

20. A statement which is treated as the decision for possible activities is named as _______.

  1. case
  2. error statement
  3. variable recognition
  4. condition

Answer: A