Q2. Write a short note on programming in two major types of languages.
Ans. The two major types of programming languages are:
- Low Level Language
- High Level Language
- Low Level Languages
Low Level languages (that is, machine languages and assembly languages) are machine-oriented and require extensive knowledge of computer circuitry.
Machine language, in which instructions are written in binary code (using 1 and 0), is the only language the computer can execute directly.
Assembly language, in which instructions are written using symbolic names for machine operations (for example, READ, ADD, STORE etc) and operands, makes programming less tedious than machine language programming. However, assembly program is then converted into machine language using assembler software.
- High Level Languages
High Level Languages, (HLLs), on other hand, offer English like keywords, constructs for sequence, selection (decision) and iteration (looping) and use of variables and constants. Thus it is very easy to program with such languages compared to low level languages. The programs written in HLLs are converted into machine language using complier or interpreter a s a computer can work with machine language only.