Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

A Level Computing 1.2.4a Programming Paradigms

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which paradigm dictates WHAT should be done but not HOW it should be done?

a)

Declarative

b)

Imperative

c)

Object Oriented

d)

Low level

2.

Which paradigm dictates HOW the program solves a problem?

a)

Declarative

b)

Imperative

c)

Object Oriented

d)

Low level

3.

Which paradigm makes use of methods and attributes to encapsulate data in classes.

a)

Declarative

b)

Imperative

c)

Object oriented

d)

Low level

4.

Which paradigm offers the least amount of abstraction and is machine dependent?

a)

Declarative

b)

Imperative

c)

Object oriented

d)

Low level

5.

Decalarative languages make use of sequence, selection and iteration.

a)

True

b)

False

6.

Regular expressions and SQL belong to which paradigm?

a)

Imperative

b)

Object oriented

c)

Declarative

d)

Low level

7.

What is a programming paradigm?

a)

Steps of solving a problem

b)

Steps to programming

c)

Steps to a programming language

d)

Both a method of problem solving and an approach to programming language design

8.

Which is NOT a programming paradigm:

a)

Imperative

b)

Declarative

c)

Object Oriented

d)

Functional

e)

Java

9.

Prolog is an example of what type of programming paradigm?

a)

Declarative

b)

Imperative

c)

Object oriented

d)

Procedural

10.

State the advantages of procedural programming (choose 1-4 answers)

a)
Can be applied to a wide range of problems.
b)
Relatively easy to write and interpret.
c)
Reuse of code through inheritance
d)
Flexibility through polymorphism
11.

State a use of declarative programming (choose 1 - 4 answers)

a)
Expert Systems/ Knowledge-based Systems.
b)
Artificial Intelligence
c)
Sequential Execution
d)
Machine Architecture
12.

Identify the main programming structures used in structured programming (choose 1 -5 answers)

a)
Sequence
b)
Selection
c)
Iteration
d)
Recursion
e)
Encapsulation
13.

Identify disadvantages of Object Oriented Languages (Choose 1 - 4 answers)

a)
Requires a different style of thinking which can be difficult for programmers accustomed to other paradigms to pick up.
b)
OOP may not be suited to all types of problems.
c)
Generally unsuitable for smaller problems
d)
inability to reuse code
14.

Which one of the followoing statements about FUNCTIONAL PROGRAMMING is NOT correct?

a)

Functional programming reuses sets of functions

b)

C# is an example of a functional programming language

c)

Programs are made of lines of code made up of functional calls

d)

Functional programming involves the use of encapsulation

15.

A function expressed in terms of itself is known as a (a)   function