WorksheetsProgramming language paradigm & translator
Total questions: 20
Worksheet time: 20mins
What is programming paradigm?
A fundamental style of computer programming, that is can be categorized according to the approach used to solve a problem.
An approach to programming a computer based on a mathematical theory or a coherent set of principles.
A way in which computer language looks at the problem to be solved.
All answer is correct!
Examples of object-oriented programming language
Phyton
C++
C
PASCAL
FORTRAN
Identify programming language paradigm based on statement below.
"The program statements that express facts and rules about problem within a formal logic system."
Procedural Programming
Logic Programming
Object-oriented programming
Identify programming language paradigm based on statement below.
"Create one thing that has its own data and set of responsibilities."
Procedural Programming
Logic Programming
Object-oriented programming
Identify programming language paradigm based on statement below.
"Break a big problem into several pieces and work on each piece separately."
Procedural Programming
Logic Programming
Object-oriented programming
Identify programming language paradigm based on statement below.
"The program consists of routines, subroutines or functions to carry out a series of computational steps."
Procedural Programming
Logic Programming
Object-oriented programming
Identify programming language paradigm based on statement below.
"A program that uses object that include both data and function."
Procedural Programming
Logic Programming
Object-oriented programming
Which of the following describe object oriented correctly?
organizes the program code into procedures (or functions or methods).
uses classes and objects to create models based on the real world environment.
uses automated reasoning to compute over a set of facts and rules.
easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.
Program code is written using logic notation
Which of the following describe programming paradigm : logic correctly?
organizes the program code into procedures (or functions or methods).
uses classes and objects to create models based on the real world environment.
uses automated reasoning to compute over a set of facts and rules.
easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.
Program code is written using logic notation
Which of the following describe procedural programming paradigm correctly?
organizes the program code into procedures (or functions or methods).
uses classes and objects to create models based on the real world environment.
uses automated reasoning to compute over a set of facts and rules.
easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.
Program code is written using logic notation
(a) Given these four programming languages – C#, FORTRAN, Java and Prolog.
Identify programming language that using procedural paradigm style?
note : if the answer is more than 1 separate it using comma ( , )
(a)
(a) Given these four programming languages – C#, FORTRAN, Java and Prolog.
Identify programming language that using logic paradigm style?
note : if the answer is more than 1 separate it using comma ( , )
(a)
(a) Given these four programming languages – C#, FORTRAN, Java and Prolog.
Identify programming language that using object oriented paradigm style?
note : if the answer is more than 1 separate it using comma ( , )
(a)
Define these terminologies "Language Translator"
program that converts instructions written in machine language to programming language.
program that converts instructions written in programming language to machine language.
There are three different program segments written using different types of programming languages.
P1 :
if (Sales > 1000)
cout<< “Bonus Paid”;
P2 :
Add R1, R2
Add R2, R3
P3 :
1100 0101
1010 1111
Name the translator used to convert P2 into executable codes.
(a)
There are three different program segments written using different types of programming languages.
P1 :
if (Sales > 1000)
cout<< “Bonus Paid”;
P2 :
Add R1, R2
Add R2, R3
P3 :
1100 0101
1010 1111
Name the translator used to convert P1 into executable codes.
(a)
There are three different program segments written using different types of programming languages.
P1 :
if (Sales > 1000)
cout<< “Bonus Paid”;
P2 :
Add R1, R2
Add R2, R3
P3 :
1100 0101
1010 1111
Name programming language for P3
(a)
Translates the entire program into object program.
Assembler
Interpreter
Compiler
Converts programs written in assembly language to machine code.
Assembler
Interpreter
Compiler
Translate one high-level program instruction at a time into machine code.
Assembler
Interpreter
Compiler
