Please enable JavaScript.
Coggle requires JavaScript to display documents.
CHAPTER 1 : INTRODUCTION TO PROGRAMMING - Coggle Diagram
CHAPTER 1 :
INTRODUCTION TO PROGRAMMING
PROGRAMMING LANGUAGE
Define :
A set of words, symbols and codes that enables programmer to give instructions to computers
Type
1. Low Level Language :
Language consist strings binary digits or English like abbreviations to represent basic instruction
1. Machine Language ( 1st generation language) :
language consists strings of binary digits (0 and 1)
Disadvantages :
Difficult to learn & understand.// Programs are lengthy
Advantages :
machine language run very fast because instructions in machine language and doesn't to translate before being executed
2. Assembly language :
language consists English-like abbreviations called Mnemonics
Disadvantages :
not readily understood by computers. // need to be translated into machine languagr before being executed.
Advantages :
easier to learn & understand
2. High Level Language :
Language consists English-like words to represent instructions
Disadvantages :
instruction created using high-level langauge are not readily to understand by computers. // need to be translated into machine language before being executed
Advantages :
Easier to learn & understand compared to low -level language.// language is machine-independent where can run on different type computer and operating system
Example :
C++ // Java // Python
PROGRAMMING PARADIGMS
Type
Procedural :
Objective Oriented
Logic
Define :
An approach to solve problem using a programming language
PROGRAMMING LANGUAGE TRANSLATOR
Define :
Program that translate programming source code into machiene code for execution
Type
1. Assembler:
translate instructions written in assembly language into machine.
Execution time :
fast
Object code :
produce
Show error :
during assembly step
2. Interpreter:
translate instructions written in high-level language into machine code, line by line
Execution time :
fast (object code already generate)
Object code :
convert source into object code before execution
Show error :
after compiling whole program
Example :
C++ // Java // C
3. Compiler:
translate entire source code high-level programming language to machine code as a whole
Execution time :
slow (translate happens during execution)
Object code :
does not produce
Show error :
as soon if line has error
Example :
Python JavaScript