Sen415 Assignment
Sen415 Assignment
Sen415 Assignment
ON
WRITTEN BY:
SALMAN-YUSUF KHALID OLANIYI
21/03SEN056
COURSE TITLE:
CONCEPT OF PROGRAMMING LANGUAGE
ANSWER
Key Differences
1. Focus
a) Procedural: Focuses on specifying “What” and “How” to do something.
b) Non-Procedural: Focuses on specifying only “What” needs to be done.
2. Abstraction level
a) Procedural languages operate on at a lower level of abstraction.
b) Non-procedural languages works on a more higher level of abstraction.
3. Programmer Control
a) Procedural languages gives programmer detailed control of implementaion
and system resources. Hence more flexibility.
b) Non-procedural languages limits programmer control over low-level detail.
Less flexible but can be easier to code.
2. ATLEAST 5 EXAMPLES OF EACH OF THE PROCEDURAL AND NON-
PROCEDURAL LANGUAGES
Procedural Languages
C - Imperative structured language ideal for system/hardware access.
Pascal - Heavily structured for teaching procedural programming.
Fortran - One of the oldest procedural languages, popular in
science/engineering.
BASIC - Designed as easy beginner language with a procedural approach.
C# - Robust OOP language on .NET framework, similar to java.
JAVA - OOP language supporting portability across platforms
Non-procedural languages
SQL - Declarative language for relational database across and mangement
PROLOG - A logic programming language where programs are structured
around facts and rules rather than step by step instructions.
TensorFlow - Neural network library uses a declarative style to constuct
models
XSLT - XML document transformation declaratively defines rules
Jquery - Javascript library with non-procedural style event handling
Functional Programming languages (Haskell, LISP)
3. MENTION FOUR EXAMPLES OF THE DIFFERENT GENERATION OF
PROGRAMMING LANGUAGES
A. First Generation Language (1GL): Machine Language - The first generation of
programming languages, also known as machine language (1GL), programming
wasn't conducted using traditional programming languages as we understand them
today. So there were no distinct programming languages per se in the first generation.