CO-101 Lec 1 & 2 - Introduction
CO-101 Lec 1 & 2 - Introduction
UNIT 1
if average is below 50
Print “FAIL”
else
Print “PASS”
A Flowchart
Pseudocode:
Algorithm
Pseudocode
Step 2: A L x W
Step 3: Print A
As it scans the code in one go, the errors (if any) are shown Considering it scans code one line at a time, errors are
at the end together. shown line by line.
The main advantage of compilers is its execution time. Due to interpreters being slow in executing the object code,
it is preferred less.
Execution of the program takes place only after the whole Execution of the program happens after every line is
program is compiled. checked or evaluated.
Compilers more often take a large amount of time for In comparison, Interpreters take less time for analyzing the
analyzing the source code. source code.
C, C++, C#, etc are programming languages that are Python, Ruby, Perl, SNOBOL, MATLAB, etc are
compiler-based. programming languages that are interpreter-based.
● Object orientation