Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming language paradigm & translator

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

What is programming paradigm?

a)

A fundamental style of computer programming, that is can be categorized according to the approach used to solve a problem.

b)

An approach to programming a computer based on a mathematical theory or a coherent set of principles.

c)

A way in which computer language looks at the problem to be solved.

d)

All answer is correct!

2.

Examples of object-oriented programming language

a)

Phyton

b)

C++

c)

C

d)

PASCAL

e)

FORTRAN

3.

Identify programming language paradigm based on statement below.

"The program statements that express facts and rules about problem within a formal logic system."

a)

Procedural Programming

b)

Logic Programming

c)

Object-oriented programming

4.

Identify programming language paradigm based on statement below.

"Create one thing that has its own data and set of responsibilities."

a)

Procedural Programming

b)

Logic Programming

c)

Object-oriented programming

5.

Identify programming language paradigm based on statement below.

"Break a big problem into several pieces and work on each piece separately."

a)

Procedural Programming

b)

Logic Programming

c)

Object-oriented programming

6.

Identify programming language paradigm based on statement below.

"The program consists of routines, subroutines or functions to carry out a series of computational steps."

a)

Procedural Programming

b)

Logic Programming

c)

Object-oriented programming

7.

Identify programming language paradigm based on statement below.

"A program that uses object that include both data and function."

a)

Procedural Programming

b)

Logic Programming

c)

Object-oriented programming

8.

Which of the following describe object oriented correctly?

a)

organizes the program code into procedures (or functions or methods).

b)

uses classes and objects to create models based on the real world environment.

c)

uses automated reasoning to compute over a set of facts and rules.

d)

easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.

e)

Program code is written using logic notation

9.

Which of the following describe programming paradigm : logic correctly?

a)

organizes the program code into procedures (or functions or methods).

b)

uses classes and objects to create models based on the real world environment.

c)

uses automated reasoning to compute over a set of facts and rules.

d)

easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.

e)

Program code is written using logic notation

10.

Which of the following describe procedural programming paradigm correctly?

a)

organizes the program code into procedures (or functions or methods).

b)

uses classes and objects to create models based on the real world environment.

c)

uses automated reasoning to compute over a set of facts and rules.

d)

easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.

e)

Program code is written using logic notation

11.

(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)  

12.

(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)  

13.

(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)  

14.

Define these terminologies "Language Translator"

a)

program that converts instructions written in machine language to programming language.

b)

program that converts instructions written in programming language to machine language.

15.

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)  

16.

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)  

17.

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)  

18.

Translates the entire program into object program.

a)

Assembler

b)

Interpreter

c)

Compiler

19.

Converts programs written in assembly language to machine code.

a)

Assembler

b)

Interpreter

c)

Compiler

20.

Translate one high-level program instruction at a time into machine code.

a)

Assembler

b)

Interpreter

c)

Compiler