









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Year 2025 programming language lecture notes
Typology: Lecture notes
1 / 17
This page cannot be seen from the preview
Don't miss anything!










What is a Program A program is a list of instructions that the computer must follow in order to process data into information What is Instruction An Instruction consist of statements used in a programming language What is Programming It is a multistep process for creating that list of instructions
Types of Programming Languages Low Level Computer Languages or Machine Language Assembly Language High Level Computer Languages
Cont…Types of Programming Languages
This kind of Programming is considered fast To program in machine language requires high knowledge of the CPU and machine instruction set This also meant high hardware dependency and lack of portability Assembly or machine code could not run on different machines as they have a unique instruction set for each type of computer
Cont… Types of Programming Languages
Lying between low level languages and high level languages Similar to low level/machine languages but much easier to program in because they allows user to substitute names for numbers
Cont… Types of Programming Languages
Machine Independent The comparative ease of use and learning, improved portability and simplified debugging , modifications led to the reliability and lower software costs
Generations of Programming Languages First Generation Languages Second Generation Languages Third Generation Languages Fourth Generation Languages Fifth Generation Languages
Second Generation Languages
Symbolic operation codes replaced binary operation codes. Assembly language programs needed to be “assembled” for execution by the computer. Each assembly language instruction is translated into one machine language instruction. Very efficient code and easier to write.
Third Generation Languages
Programs written in source code which must be translated into machine language programs called object code The translation of source code to object code is accomplished by a machine language system program called a compiler and an interpreter
Fifth Generation Languages Fifth generation (programming) language ( 5 GL) is a grouping of programming languages build on the premise that a problem can be solved, and an application built to solve it, by providing constraints to the program (constraint-based programming), rather than specifying algorithmically how the problem is to be solved (imperative programming).
Compilation & Interpretation
Translate the program before executing any instruction
Translate and execute a single instruction or a group of instructions