Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SU2 QUIZ 22/12/2025

Total questions: 30

Worksheet time: 26mins

Name
Class
Date
1.
A foreign key
a)
Links to a primary key in another table. 
b)
Links to another foreign key. 
c)
Links to another database system. 
d)
Should always reference a unique value in the same table. 
2.
An ER diagram shows relationships between:
a)
Tables in a relational database. 
b)
Rows in a relational database. 
c)
Records with foreign keys. 
d)
Two items about which there is data kept. 
3.

Which is the best example of a Primary Key?

a)

Price

b)

Name

c)

Address

d)

IC No

4.

Which of the following is NOT an example of a database?

a)

telephone book

b)

real estate listing

c)

online library catalog

d)

DVD

5.

GRANT & REVOKE IS THE

a)

DDL

b)

DML

c)

DCL

d)

TCL

6.

OPERATIONS OF DATABASE

a)

INSERT

b)

DELETE

c)

RECORD

d)

SAVE

7.

------------------- is software package for creating and managing databases.

(a)  

8.

In preorder traversal of a binary tree the second step is ____________

a)

traverse the right subtree

b)

traverse the left subtree

c)

traverse right subtree and visit the root

d)

visit the root

9.

The decision tree structure begins at a node called the _____.

a)

span

b)

top

c)

root

d)

branch

10.

How many leaf are there in the tree?

a)

1

b)

3

c)

4

d)

7

11.
In this tree, where would the new value "7" be placed?
a)
On the left "leaf" of "4"
b)
On the right "leaf" of "6"
c)
On the left "leaf" of "15"
d)
Over the top of the current number "5"
12.

Which of these tree traversal methods is used to output the contents of a binary tree in ascending order?

a)

Pre-Order

b)

In-Order

c)

Post-Order

d)

Monastic Orders

13.

When traversing a binary tree, which diagram is post-order?

a)
b)
c)
14.

A Data Structure is:

a)

A C++ vector

b)

A way of organizing, storing and performing operations on data.

c)

A function in any programming language

d)

A sequence of steps to solve a problem.

15.

Given a sequence of number below:

50,60,40,70,45,55,30,80,65,35,25,75,85


When creating a binary search tree, what is the height of the tree?

a)

3

b)

4

c)

5

d)

6

16.

Given a binary search tree, insert 27, 15, 63, 99, 70 and 85 (in this order) into the binary search tree. What is the post-order traversal?

a)

5,15,27,34,47,54,63,70,72,75,83,85,88,94,99,101

b)

72,54,34,5,27,15,47,63,70,83,75,88,85,101,94,99

c)

15,27,5,47,34,70,63,54,75,85,99,94,101,88,83,72

d)

15,27,5,47,34,63,54,70,75,85,99,94,101,88,83,72

e)

none of the above

17.

Choose the correct statement

a)

A data structure is a specialised format for organising and storing data

b)

A data structure is a specialised format for organising and storing information

c)

A data structure is a format for organising and storing only one data type

d)

A data structure is too complicated to truly understand or use

18.
Root has more left descendants than the right descendants or vice versa.
a)
Balanced Tree
b)
Perfect Tree
c)
Right Tree
d)
Unbalanced Tree
19.

What is a characteristic of a multi-processor system?

a)

It cannot increase overall system performance.

b)

It allows multiple processors to work together concurrently.

c)

It contains only one CPU.

d)

It is limited to single-threaded applications.

20.

What defines a distributed system?

a)

A system that only serves one user at a time.

b)

A system that operates without any network connection.

c)

A collection of autonomous computers linked by a network.

d)

A single computer with multiple CPUs.

21.

Which architecture organizes the system into hierarchical layers?

a)

Event Based Architecture

b)

Layered Architecture

c)

Data Centred Architecture

d)

Object Based Architecture

22.

In Object Based Architecture, how do objects communicate?

a)

Through method calls.

b)

By using shared global variables.

c)

By sending emails to each other.

d)

Through direct memory access.

23.

What is the focus of Data Centred Architecture?

a)

Central management of application logic.

b)

Central management and utilization of data.

c)

Event-driven interactions.

d)

Decoupling of components.

24.

What are Event Producers in Event Based Architecture?

a)

Components that store data.

b)

Components that manage resources.

c)

Components that consume events.

d)

Components that generate events.

25.

What is a key feature of Loose Coupling in Event Based Architecture?

a)

Direct calls are preferred over events.

b)

All components must be on the same server.

c)

Producers and consumers interact through events.

d)

Producers and consumers are tightly integrated.

26.

Which mechanism is used for object interaction in Object Based Architecture?

a)

Remote Procedure Call (RPC)

b)

Shared Memory Access

c)

Synchronous Data Transfer

d)

Direct Memory Access (DMA)

27.

What is the role of Event Channels in Event Based Architecture?

a)

To store data permanently.

b)

To transmit events between producers and consumers.

c)

To create user interfaces.

d)

To manage CPU resources.

28.

What does Layered Architecture promote?

a)

Single-layered systems.

b)

Direct interaction between all layers.

c)

Complexity in system design.

d)

Separation of concerns.

29.

What is marshaling in the context of RPC?

a)

Assigning a unique identifier to each remote procedure

b)

Encrypting messages exchanged between client and server

c)

Converting procedure parameters into a format suitable for transmission

d)

Establishing a secure communication channel

30.

What is the primary purpose of RPC in distributed systems?

a)

To enable file sharing across networks

b)

To invoke procedures on remote machines as if they were local

c)

To ensure fault tolerance in distributed databases

d)

To manage concurrency in multi-threaded applications