wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ICTC0613 - Midterms Exam

Total questions: 30

Worksheet time: 44mins

Name
Class
Date
1.

In creating objects, what would be the first step?

a)

Termination

b)

Initialization

c)

Declaration

d)

Instantiation

2.

A finite set of instructions to be carried out in order to solve a specific problem

a)

Algorithm

b)

Abstract Data Type

c)

Data Type

d)

Data Structure

3.

Algorithm can be written in a form of pseudocode

a)

True

b)

False

4.

The elements of an array are stored in an _______.

a)

item

b)

index

c)

value

d)

appendix

5.

Abstract data types cannot be implemented in different programming languages

a)

True

b)

False

6.

An object is not described as the basic unit of OOP

a)

True

b)

False

7.

When data is manipulated by operations, information is formed as a result.

a)

True

b)

False

8.

ADT is composed of data structures and operations.

a)

True

b)

False

9.

Type of variable that is declared inside methods, constructors, or blocks.

a)

Local Variable

b)

Instance Variable

c)

Data Variable

d)

Class Variable

10.

A property of algorithm which states that, each instruction must be clear

a)

Scope of definition

b)

Finiteness

c)

Input and Output Definition

d)

Absence of ambiguity

11.

In order to interact with one another, the methods pass arguments.

a)

True

b)

False

12.

(a)   refers to the data properties of an object.

13.

A loop repeats a block of codes until it meets a certain condition. Each execution of a loop’s body is called (a)   .

14.

A feature of OOP in which it hides the complexities of a software, and shows only the necessary functions to the user.

a)

Behavior

b)

Encapsulation

c)

Abstraction

d)

Polymorphism

15.

To create or form programs, data structure and algorithm must be used

a)

True

b)

False

16.

A programming technique that binds the class members together and prevents them from being accessed by other classes.

a)

Attributes

b)

Encapsulation

c)

Abstraction

d)

Initialization

17.

In the essence of OOP, what are the behaviors of a car

a)

drive(), submerge(), park(), reverse(), neutral

b)

park(), reverse(), neutral(), drive(), low()

c)

high(), low(), drive(), park()

d)

drive(), reverse(), walk(), park()

18.

Two elements of recursion.

a)

basis, iteration

b)

basis, recursive step

c)

recursive step, method call

d)

recursive call, method call

19.

(a)   refers to a set of statements group together to do a specific task.

20.

If the factorial of n is the product of all positive non-zero numbers less than or equl to n, then the value of n should be?

a)

n0n\ne0  

b)

n0n\ge0  

c)

n2=0n^2=0  

d)

n !=0n\ !=0  

21.

It refers to the step or call which solves the problem using the smaller version of itself.

a)

method call

b)

recursive call

c)

iterative call

d)

loop

22.

Three types of linked list.

a)

doubly, multiply, circularly

b)

singly, doubly, circularly

c)

singly, doubly, circular

d)

singly, doubly, looply

23.

Complete the code based on the given image. Write the missing piece of code or character.

(a)  

24.

The elements in a linked list are called _____.

a)

index

b)

values

c)

base

d)

nodes

25.

The structure of a node in a linked list consist of:

a)

data, node

b)

link, node

c)

data, link

d)

node, code

26.

A data type reference under one name which can contain multiple values.

a)

index

b)

element

c)

array

d)

length

27.

What is the length of the array names?

a)

5

b)

6

c)

7

d)

8

28.

What would be the output of this code?

a)

6

b)

8

c)

9

d)

12

29.

To select "Thoma" from the array surname, what should be the index in the print code?

a)

surname[2]

b)

surname[0][2]

c)

surname[2][1]

d)

surname[2][0]

30.

What would be the output of the code if the product code is 2?

a)

tofu, 11.50

b)

pork chop, 40.59

c)

donut, 10.20

d)

sardines, 12.56