Professional Documents
Culture Documents
Tutorial 7.0 (B) 2 Hours
Tutorial 7.0 (B) 2 Hours
Tutorial 7.0 (B) 2 Hours
0 : INTRODUCTION TO PROGRAMMING
L.O : b) Differentiate paradigms of Programming Language : Procedural, Object-oriented and Logic
(2 Hours)
Approach problem solving based Approach problem solving based Approach problem solving based
on module or function on the concept of an object that on the idea of answering question
combines both data and the through search for solution from a
function into a single unit knowledge base.
Emphasizes linear steps that Creates classes that are templates Based on axiom, interferences,
provide instructions to computer for creating objects rules and queries to solve a
on how to solve a problem or problem
carry out a task
3. Two programming paradigms that are usually used by programmers are Procedural Programming and Object
Oriented Programming.
Figure 4 (i)
Figure 4 (ii)
a) Identify the type of programming paradigm in Figure 4(i) and Figure 4(ii). [2 marks]
Figure 4 (i) : Object-oriented programming
Figure 4 (ii) : Procedural programming
b) State the difference of paradigm between Figure 4 (i) and Figure 4 (ii). [2 marks]
Procedural Programming Object-Oriented Programming
Emphasizes linear steps that provide the computer with Creates classes, like template for creating objects.
instructions on how to solve a problem or carry out a task
5. Identify type of programming paradigm and give one (1) example of programming language each in bellow
tables: [6 marks]
1. Identify appropriate paradigm of programming languages for the following statements. [2 marks]
Statement Programming Language Paradigm
Break a big problem into several pieces and work on Object-oriented programming
each piece separately.
Create one thing that has its own data and set of Procedural programming
responsibilities.
Compiler Interpreter
A program that translates an entire program A program that translates a program statement line
statement written in high level language into an by line at a time written in high level language
equivalent program in machine language into an equivalent program in machine language