Course Note 2
Course Note 2
The first generation languages are low-level languages that are machine language.
The second generation languages are also low-level languages that generally consist of assembly
languages.
The third generation languages are high-level languages such as C.
The fourth generation languages are languages that consist of statements similar to statements in
a human language.
Fourth generation languages are commonly used in database programming and scripts.
The fifth generation languages are programming languages that contain visual tools to help develop a
program. A good example of a fifth generation language is Visual Basic
The relationship between high-level languages and computer architecture is that high-level
languages are translated into low-level languages by a compiler or interpreter, which then
executes the machine-level code. This translation process allows high-level languages to be
executed on a computer, even if the computer's hardware does not directly support high-level
programming.
Some reasons why high-level programming has not been more widely adopted in computer
architecture include the complexity of compilers and interpreters for high-level languages, as
well as the potential performance overhead of executing high-level language programs
directly on hardware. However, high-level languages continue to be an important aspect of
computer science and programming, as they enable developers to write more complex and
efficient programs using a more natural and expressive syntax.
C. C++
• A high-level programming language developed by Bjarne Stroustrup at Bell Labs.
• C++ adds object-oriented features to its predecessor, C.
• C++ is one of the most popular programming language for graphical applications, such as those
that run in Windows and Macintosh environments.
Example:
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
D. BASIC