0% found this document useful (0 votes)
67 views11 pages

Generations of Programming Languages

Programming involves taking an algorithm and coding it into a programming language that can be executed by a computer. There are different levels of programming languages from low-level like machine language to high-level languages that are closer to human language. The five levels are: first generation machine language, second generation assembly language, third generation high-level languages, fourth generation languages for database access, and fifth generation visual programming languages. Higher level languages are easier for humans to read and write but slower for computers to execute.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views11 pages

Generations of Programming Languages

Programming involves taking an algorithm and coding it into a programming language that can be executed by a computer. There are different levels of programming languages from low-level like machine language to high-level languages that are closer to human language. The five levels are: first generation machine language, second generation assembly language, third generation high-level languages, fourth generation languages for database access, and fifth generation visual programming languages. Higher level languages are easier for humans to read and write but slower for computers to execute.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

[Link] is programming?

Programming is the process of taking an algorithm and coding it into a


notation, a programming language, so that it can be executed by a computer.

2. Differentiate between high -level languages and low level languages.

High- level languages are programming languages that use the same words and
symbols that are used by humans while Low-level languages, such as Machine
–level language or Assembly language, are programming languages that use
words and symbols that are close to the language the computer understands.

3. List the Five (5) levels or generations of programming languages

1. First generation or Machine –level language

2. Second generation or Assembly-level language

3. Third generation or High-level language

4. Fourth generation language

5. Fifth generation languages

[Link] each level of programming language.

I). State the functions/users

First generation or Machine-level language


It provides a set of instructions and data that a computer’s central processing
unit can execute directly.

Second generation or Assembly-level language


This is used to control specific computer operations. An assembly language
programmer writes instructions using symbolic instruction codes that are
meaningful abbreviations or mnemonics. An assembler is a program that
translates assembly language into machine language.
Third generation or High-level language
This uses a series of English –like words, that are closer to human language, to
write instructions.

Fourth generation language


This enables users to access data in a database. Visual Programming: This
provides a visual or graphical interface, called a visual programming
environment, for creating source codes.

Fifth generation language


Its provides program in visual basic. It also solves the computer problems.

ii). Identify different examples.

First generation or Machine-level language

In these languages, instructions are written using binary (0s and 1s), for
example 10110011110011011. These are the only languages understood by
computers.

Second generation or Assembly-level language


In assembly language, instructions are written using mnemonies or
abbreviatiombfg hjhjhj rgj guhihv

Third generation or High-level language


Fourth generation language

Fifth generation language

iii). Outline their disadvantages and advantages.

First generation or Machine-level language


Advantages

1. Able to be executed very fast by the computer, as there is no need for


translation.

Disadvantages
1. Difficult to read, write and understand by humans as the programs
involve only 0s and 1s.
2. Machine dependent, so unable to be used on another machine.
3. Difficult to modify or correct mistakes.
Second generation or Assembly-level language

Advantages

[Link] to read, write and understand than Machine-level language.

2. easier to modify or correct mistakes than Machine-level language.

Disadvantages
1. Slower in execution than Machine-level language.
2. Still machine dependent.

Third generation or High-level language

Advantages

1. Easier to read, write and understand than Machine-level language and


ALL.
2. Easier to modify or correct mistakes than Machine-level language and
ALL.
3. Machine independent.

Disadvantages
1. Slower in execution than Machine-level language and ALL.
Fourth generation language

Advantages

[Link] development is faster.

[Link] maintenance are easier

[Link] user can often develop his/her own applications.

Disadvantages

The programs developed in the 4GL s are executed at a slower speed by the
CPU. Another disadvantage is that the programs in these programming
languages need more space in the memory of the computer system.

Fifth generation language


Advantages

[Link] is fairly easy to learn, easy to programme. Since it is visual language. 2. Also
you can quickly create a nice looking GUI

Disadvantages

- It is written by Microsoft, so programs written in visual basic cannot, easily,


be transferred to other operating systems.
[Link] a programming dictionary

Programme Dictionary
Artificial Intelligence: The theory and development of computer systems
able to perform tasks normally requiring human intelligence, such as
visual perception, speech recognition, decision-making, translation
between languages.

Assembler: A program for converting instructions written in low-level


symbolic code into machine code.

Character: A Character is considered to be anything that you can key in


from a keyboard.

Compiler: Compilers are translators that convert high-level language


instructions to machine language by taking all instructions together to
form a single file that can run on its own.

Compiling: Compiling is a process of converting source code into object


code by taking instructions as a whole.

Constant: A constant identifies a memory location where a fixed item of


data is stored:

Data Type: A data types indicate the type of data that is stored in a
variable, e.g. numbers or characters.

Debugging: The process of looking for errors, locating them and


correcting them.

Dry run: The process of manually going through the program looking for
errors.
Executable program: A program that is ready to run by a computer
system.

Execute: The process of running a program to see the results.

Integers: These are referred to as whole number or real numbers


without decimal place e.g. 100,

Interpreter: Interpreters are translators that convert high-level language


by taking one instruction at a time. They do not produce files that can
run independently.

Linking: This is the process of combining together individual object code


files to form a single executable program.

Logic error: When a program does not produce the required results due
to the incorrect logic of the program.

Machine dependent program: A program that runs only on a particular


type of computer system.

Object code: The process when compiling turns source code into
machine language instructions.

Program Maintenance: This is the process of making any modifications


that may need to be made to a developed program to make it suitable
for a particular situation.

Run time error: This occurs when the program has to terminate before
its completion.

Source code: This a program in a form understandable to humans,


written in Assembly-level language or High-level language.

String:
Syntax: These are the rules and regulations of programming language,
much like a grammar system.

Syntax error: These are errors reported by translators when the rules of
a particular programming language are not correctly followed.

Test data: These are values used in a program to determine if it


produces the required results.

Variable: Identifies a memory location in which an item of data can be


stored. The value of the data can be changed.

Variable name:
My project on Programming Language

Name: Ashley Williamson

Subject: Information Technology

Class: 11 Science

Date: November 16, 2016


Reference
Heinemann Information Technology for CSEC – K Mary Reid

Deepak Dinesen

Rayman Khan
TABLE OF CONTENT
INTRODUCTION

WHAT IS PROGRAMMING?

DEFFERENCIATE BETWEEN HIGH AND LOW –LEVEL

FUNCTIONS OF PROGRAMMING LANGUAGE

EXAMPLES OF DIFFERENT PROGRAMMING LANGUAGE

Common questions

Powered by AI

Fourth-generation languages (4GLs) offer faster program development and easier maintenance, and end users can often create their own applications. However, they execute at slower speeds and require more memory . Fifth-generation languages (5GLs), are easier to learn and program, particularly in creating GUI applications quickly. Nonetheless, they are often tied to specific platforms, like Microsoft's Visual Basic, making them less portable across different operating systems .

Visual programming environments in fourth-generation languages provide graphical interfaces for source code creation, making programming more intuitive and accessible, particularly for users with less formal training in coding. This visual aspect facilitates users in seeing the logical structure of their programs through direct manipulation rather than working with abstract, text-based code. Consequently, they enable quicker application development and make it possible for users to create applications without deep knowledge of programming languages .

Logic errors occur when a program does not produce the required results due to incorrect logic, often due to human error in structuring conditions and sequences . Debugging methodologies such as setting breakpoints, using print statements to track variable states, and employing debugging tools allow developers to inspect the flow of the program execution and reason where the logic deviates from expected behavior. Comprehensive testing with diverse test data can also help identify logic errors that may not be apparent in initial coding and help refine the underlying logic .

Interpreters execute high-level programming languages by translating the code one instruction at a time directly into machine code, allowing for immediate execution. This can be advantageous during development phases as it enables quick testing and interactive debugging, making it easier to find and fix errors incrementally . Unlike compilers, which require translating the whole program before execution, interpreters do not produce standalone executable files. This lack of pre-compiled binaries can result in slower execution speeds but offers more flexibility for rapid iterations and testing .

Variables and constants are both used to store data in a program, but they serve different purposes. Variables can be changed or updated throughout the program, providing flexibility and enabling dynamic data manipulation, which is essential for computational tasks that require varying inputs and results . Constants, on the other hand, represent fixed data values that remain unchanged during program execution, ensuring that certain important values maintain integrity and predictability throughout the software's lifecycle, which is crucial for maintaining consistency and preventing accidental changes .

The disadvantages of machine-level languages, such as their complexity, lack of readability, machine-dependence, and difficulty in modification and correction, severely limit their adaptability in modern computing environments . Today's development requires flexibility, portability across multiple hardware and software platforms, and rapid prototyping and development cycles, making machine-level languages impractical for most application developments. These languages demand significant expertise and resources, which do not align with the efficiency and agility required in modern software development .

High-level programming languages are typically used for developing software applications due to their use of English-like syntax, which is easier to learn and understand for programmers . Their machine-independent nature allows applications developed in them to be portable across different platforms, which is essential in today's diverse computing environments. They also facilitate easier debugging and maintenance, making them suitable for complex application development where these factors are crucial .

Machine-level language programs are executed very fast by computers since they don't require translation beyond their binary form, making them highly efficient . However, their complexity and machine-dependence render them difficult for human programmers to read, write, modify, or debug. This makes them unsuitable for most application development where flexibility, portability, and ease of maintenance and understanding are critical .

High-level languages use words and symbols that are familiar to humans, making them easier to read, write, and understand. They are also machine-independent, allowing the same code to run on different machines. However, they tend to perform slower than low-level languages because of the need for translation by a compiler or interpreter . Low-level languages, such as machine and assembly languages, are closer to the computer's native language, offering faster execution speed since they require minimal translation. They are also machine-dependent, which makes code less portable .

An assembler translates assembly language code, written using symbolic instructions or mnemonics, into machine language that the computer can execute directly . This translation is necessary because assembly language, although easier for humans to understand compared to machine language, still requires conversion to binary for execution. Assemblers thus serve as an essential tool in the programming process, bridging human-understandable code and machine-executable instructions .

You might also like