Introduction to object-oriented programming concepts
1. What are low-level languages? Give an example.
A low-level language is a programming language that is close to machine language and directly interacts with the hardware. It is difficult for humans to understand but runs very fast.
Example: Machine language, Assembly language.
2. What are high level languages? Give example.
A high-level language is a programming language that is easy to understand and use. It is closer to human language and is used to write software programs.
Example: Python, Java, C++.
3. What are the purposes of programming languages?
A programming language serves different purposes:
• It gives instructions to the computer to perform specific tasks.
• To develop software applications like games, websites, and mobile apps.
4. What is machine level language?
Machine level language is the lowest-level programming language that a computer can understand directly. It is written in binary code (0s and 1s).
Example: 10110000 01100001
5. What is assembly level language?
Assembly level language is a low-level programming language that uses symbolic codes (called mnemonics) instead of binary. It is easier to understand than machine language.
Example: MOV A, B
6. What are the examples of middle level languages?
C, C++
7. What is first generation programming language?
First generation language refers to machine-level language, written in binary (0s and 1s). It is the earliest and most basic type of programming language used to communicate directly with the computer.
Example: 10100011 11001010
8. What is second generation programming language?
Second generation language refers to assembly language, which uses symbols and mnemonics instead of binary code. It is easier than machine language but still hardware-dependent.
Example: ADD A, B
9. What is third generation programming language?
Third generation language is a high-level language that is easy to read, write, and understand. It is machine-independent and used for general-purpose programming.
Example: C, C++, Java.
10. What is fourth generation programming language?
Fourth generation language (4GL) is designed to be closer to human language and easier to use than third generation languages. It is often used for database management and report generation.
Example: SQL, Oracle.
11. What is fifth generation programming language?
Fifth generation language (5GL) focuses on problem-solving using artificial intelligence. It allows users to specify what the program should accomplish rather than how to do it.
Example: Prolog, Mercury.
12. The translator that is used to translate assembly language to machine language is known as ___________.
assembler
13. What are the advantages of 4GL?
• It reduces programming efforts.
• It reduces cost of software development.
• It reduces the time to develop software.
0 Comments