wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GAMMASTACK SCREENING TEST SET A

Total questions: 40

Worksheet time: 45mins

Name
Class
Date
1.

Consider a relation R(A,B,C,D,E) with the following functional dependencies:

ABC -> DE and

D -> AB

The number of superkeys of R is:

a)

2

b)

7

c)

10

d)

12

2.

If there is no transitive dependency for non-prime attributes, then the relation must be in

a)

Second Normal Form.

b)

Third Normal Form.

c)

First Normal Form

d)

Fourth Normal Form.

3.

In a university database, student records are stored. Each student is assigned a unique student ID, and they also have a unique email address. However, email addresses can change over time.

What is the candidate key for the "Students" table in this scenario?

a)

Student ID

b)

Email Address

c)

Both Student ID and Email Address

d)

Neither Student ID nor Email Address

4.

You are designing an ER diagram for a university database. There are two main entities: "Student" and "Course." Students can enroll in multiple courses, and each course can have multiple students.

What type of relationship exists between Student and Course?

a)

Many-to-Many relationship.

b)

One-to-Many relationship.

c)

Many-to-One relationship.

d)

One-to-One relationship.

5.

Write the relational algebra to list student's number and student'a name whose age is 20 years old or state in Terengganu.

a)

π\pi StudentID, Name ( σ\sigma Age=20 AND State = "Terengganu" (STUDENT)

b)

undefined StudentID, Name (undefined Age=20 OR State = "Terengganu" (STUDENT)

c)

σ\sigma StudentID, Name ( π\pi Age=20 AND State = "Terengganu" (STUDENT)

d)

undefined StudentID, Name (undefined Age=20 OR State = "Terengganu" (STUDENT)

6.

Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.

a)

Relational

b)

Structural

c)

Procedural

d)

Fundamental

7.

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

8.
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"
9.

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

10.

The Agile Development model __________

a)

Completes each phase fully before advancing to the next phase

b)

Iterates through the phases to develop prototypes with increasing functionality

c)

Focuses on best practices and is informally structured

d)

Begins the next phase before the current phase is completed

e)

Responds quickly to change and has short, daily status meetings

11.

The OSI transport layer...

a)

Segments and delivers data, correcting transmission errors

b)

Opens and maintains comm's channels, authenticating data comm's.

c)

Converts data, encrypts data, and translates data

d)

Manages the user interface and processes data before handing it off to the user

12.
Start
Put your hand on the doorknob
Turn the doorknob to the side until it unlocks the door
Push or pull  the door to open it
End
..................................................
What would be an appropiate title for this algorithm?
a)
How to push a door
b)
Steps to stand infront of a door
c)
Steps to touch a doorknob
d)
How to open a door
13.
A binary search is to be performed on the list:
3  5  9  10  23
How many comparisons would it take to find number 9?
a)
0-1
b)
2-3
c)
4-5
d)
I can't find the number 9
14.

In Greedy method we get ________ Feasible solutions

a)

one

b)

more than one

c)

zero

d)

hundred

15.

Dynamic Programming is often used for (choose all that apply):

a)

Optimization problems that involve making a choice that leave one or more subproblems to be solved.

b)

Problems previously solved using divide and conquer that have over lapping subproblems

c)

Non polynomial solution problems

d)

Subproblems where resources are shared

16.

You are given a knapsack that can carry a maximum weight of 60. There are 4 items with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items you can carry using the knapsack?

a)

170

b)

200

c)

160

d)

90

17.

The following paradigm can be used to find the solution of the problem in minimum time: Given a set of non-negative integer, and a value K, determine if there is a subset of the given set with sum equal to K:

a)

Divide and Conquer

b)

Dynamic Programming

c)

Greedy Algorithm

d)

Branch and Bound

18.

What happens when a top-down approach of dynamic programming is applied to any problem?

a)

It increases both, the time complexity and the space complexity

b)

It increases the space complexity and decreases the time complexity.

c)

It increases the time complexity and decreases the space complexity

d)

It decreases both, the time complexity and the space complexity

19.

In travelling salesman problem, we are interested in finding

a)

shortest path from one source to multiple destinations

b)

A salesman is expected to start from one source and by visiting all locations he/she should come back to the source in minimum time

c)

longest available path in the graph

d)

A Salesman is expected to complete the task in given deadline

20.

Allows us to focus on what something does without considering the complexities of how it works.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

21.

Allows computer system to be extended, with new specialized objects being created, while allowing current parts of the system to interact with new object without concern for the specific properties of the new objects.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

22.

As a Vehicle user, we know how to use it but its internal working are not known. In OOPs Concept, this principle is known as

a)

Encapsulation

b)

Inheritance

c)

Abstraction

d)

Polymorphism

23.

Choose the behaviour of Class: time

a)

Hour

b)

Second

c)

PrintTime

d)

getHour

24.

Choose the attributes of Class: time

a)

Hours

b)

second

c)

get Hour

d)

Print Time

25.

The subset of a super key is a candidate key under what condition?

a)

No proper subset is a super key

b)

All subsets are super keys

c)

Subset is a super key

d)

Each subset is a super key

26.

The relation with the attribute which is the primary key is referenced in another relation. The relation which has the attribute as a primary key is called

a)

Referential relation

b)

Referencing relation

c)

Referenced relation

d)

Referred relation

27.

Which of the following in true regarding Referential Integrity?

a)

Every primary-key value must match a primary-key value in an associated table

b)

Every primary-key value must match a foreign-key value in an associated table

c)

Every foreign-key value must match a primary-key value in an associated table

d)

Every foreign-key value must match a foreign-key value in an associated table

28.

Ready the Query carefully:


SELECT emp_name FROM department WHERE dept_name LIKE ' _____ Computer Science';

In the above-given Query, which of the following can be placed in the Query's blank portion to select the "dept_name" that also contains Computer Science as its ending string?

a)

&

b)

_

c)

%

d)

$

29.

Which one of the following terms refer to the most popular LAN technology

a)

Ethernet

b)

WAN

c)

Internet

d)

Intranet

30.
In a star network
a)
Each device is connected to a switch or hub
b)
Each device connects to each other
c)
Each device is connected in a line
d)
Each device is connected to a terminal
31.
A router can
a)
Forward data packets
b)
Absorb signals
c)
Repeat signals
d)
absorb data packets
32.

Which of the following network diagrams represents star topology?

a)
b)
c)
d)
33.

An Operating system help us to __________ with computer even without knowing computer Language.

a)

Translate

b)

Trade

c)

Communicate

d)

none of these

34.
What is the purpose of an operating system?
a)
Manage software on computer
b)
Manage hardware on computer
c)
Manage all hardware & software on computer
35.
Keeping track of the location of processes in memory and allocating space to new processes is known as...
a)
Memory Management
b)
Process Management
c)
Memory Scheduling
d)
Process Scheduling
36.
Acquire hardware and software is done in which phase?
a)
Planning
b)
Analysis
c)
Design
d)
Implementation
37.
Install and test new system is done in which phase?
a)
Planning
b)
Analysis
c)
Design
d)
Implementation
38.

It is a process that consists of a series of planned activities to develop or alter the Software Products

a)

Software Development Life Cycle

b)

Life Cycle

c)

Development Process

d)

Graphical Representation

39.

Give at least 3 stages of SDLC

a)

Planning

b)

Deployment

c)

Building

d)

Scanning

e)

Arrangement

40.

It is an extension of waterfall model and is based on the association of a testing phase for each corresponding development stage.

a)

Verification and Validation Model

b)

Incremetal Model

c)

Big Bang Model

d)

Iterative Model