Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GAMMASTACK SCREENING TEST SET D

Total questions: 40

Worksheet time: 42mins

Name
Class
Date
1.

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

2.

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.

3.

A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (n refers to the number of items in the queue)?

a)

At most one operation can be performed on O(1) time but the worst-case time for the other operation will be Ω(n)

b)

Both operations can be performed in O(1) time

c)

The worst-case time complexity for both operations will be Ω(n)

d)

Worst case time complexity for both operations will be Ω(log n)

4.

The result evaluating the postfix expression 10 5 + 60 6/ * 8 – is

a)

284

b)

213

c)

142

d)

71

5.

What are the sequence of popped out values if the sequence of operations - push(1), push(2), pop, push(1), push(2), pop, pop, pop, push(2), pop are performed on a stack.

a)

2, 2, 1, 1, 2

b)

2, 2, 1, 2, 2

c)

2, 1, 2, 2, 1

d)

2, 1, 2, 2, 2

6.
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
7.
Quick sort running time depends on the selection of ____________.
a)
Size of array
b)
Pivot element
c)
Sequence of values
d)
None of the above
8.

How do you determine the cost of a spanning tree?

a)

By the sum of costs of the edges of the tree

b)

By the sum of the costs of the edges and vertices of the tree

c)

By the sum of the costs of the vertices of the tree

d)

By the sum of costs of the edges of the graph

9.

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

10.

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

11.
  1. Consider the following statements:

  2. (i) First-in-first out types of computations are efficiently supported by STACKS.

    (ii) Implementing LISTS on linked lists is more efficient than implementing LISTS on an array for almost all the basic LIST operations.

    (iii) Implementing QUEUES on a circular array is more efficient than implementing QUEUES on a linear array with two indices.

    (iv) Last-in-first-out type of computations are efficiently supported by QUEUES.

a)
  1. ii and iii are true

b)
  1. i and ii are true

c)
  1. iii and iv are true

d)
  1. ii and iv are true

12.

You have to sort 1 GB of data with only 100 MB of available main memory. Which sorting technique will be most appropriate?

a)

Heap Sort

b)

Merge Sort

c)

Quick Sort

d)

All of the above

13.

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

14.
  1. onsider the following two statements:

  2. i. A hash function (these are often used for computing digital signatures) is an injective function.

    ii. encryption technique such as DES performs a permutation on the elements of its input alphabet.

    Which one of the following options is valid for the above two statements?

a)
  1. Both are false

b)
  1. Statement i is true and statement ii is false

c)
  1. Statement ii is true and statement i is false

d)
  1. Both are true

15.
Which of the following concepts of OOPS means exposing only necessary information to client?
a)
Encapsulation
b)
Abstraction
c)
Data hiding
d)
Data binding
16.

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

17.

Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record?

a)

Candidate key

b)

Sub key

c)

Super key

d)

Foreign key

18.

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

19.

Which of the following refers to the level of data abstraction that describes exactly how the data actually stored?

a)

Conceptual Level

b)

Physical Level

c)

File Level

d)

Logical Level

20.

Consider the following statements about process state transitions for a system using preemptive scheduling. 

I. A running process can move to a ready state
II. A ready process can move to a ready state
III. A blocked process can move to a running state
IV. A blocked process can move to a ready state

Which of the above statements is TRUE?

a)

I, II, and III only

b)

II and III only

c)

I, II, and IV only

d)

I, II, III, and IV

21.

The essential content(s) in each entry of a page table is/are:

a)

Page frame number

b)

Virtual page number

c)

Both virtual page number and page frame number

d)

Access the right information

22.

Let m[0]…m[4] be mutexes (binary semaphores) and P[0] …. P[4] be processes. Suppose each process P[i] executes the following:

wait (m[i]); wait(m[(i+1) mode 4]);
------
release (m[i]); release (m[(i+1)mod 4]);

This could cause

a)

Thrashing

b)

Deadlock 

c)

Starvation, but not deadlock 

d)

None of the above 

23.

The prefix form of an infix expression p + q − r * t is:

a)

+ pq − *rt

b)

− +pqr * t

c)

− +pq * rt

d)

− + * pqrt

24.

In a software project, COCOMO (Constructive Cost Model) is used to estimate

a)

effort and duration based on the size of the software

b)


size and duration based on the effort of the software

c)


effort and cost based on the duration of the software

d)


size, effort and duration based on the cost of the software

25.

Match the following

a)

P-2, Q-1. R-3, S-5

b)

P-1, Q-4, R-2, S-5

c)

P-2, Q-4, R-1, S-3

d)

P-1, Q-4, R-2, S-3

26.

Which of the following statements are TRUE about an SQL query?

P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause

Q : An SQL query can contain a HAVING clause only if it has a GROUP BY clause

R : All attributes used in the GROUP BY clause must appear in the SELECT clause

S : Not all attributes used in the GROUP BY clause need to appear in the SELECT clause

a)

Q and S

b)

R and S

c)

P and R

d)

P and S

27.

In the deletion operation of max heap, the root is replaced by:

a)

next available value in the left sub-tree.

b)

next available value in the right sub-tree.

c)

first element of the last level

d)

last element of the last level

28.

Which of the following statements is FALSE about weak entity set?

a)

Tuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set.

b)


A weak entity set has no primary keys unless attributes of the strong entity set on which it depends are included

c)


Weak entity set avoids the data duplication and consequent possible inconsistencies caused by duplicating the key of the strong entity.

d)

Weak entities can be deleted automatically when their strong entity is deleted

29.

Relations produced from E - R Model will always be in ________.

a)

2 NF

b)

1 NF

c)

3 NF

d)

BCNF

30.

A common approach to normalization is to ___ the larger table into smaller tables and link them together by using relationships.

a)

Add

b)

Divide

c)

Subtract

d)

Multiply

31.

When a relation is in 2NF and there is ___, it is in 3NF.

a)
  1. Transition Dependency

b)
  1. No Transitive Dependency

c)
  1. Functional Dependency

d)
  1. No Functional Dependency

32.

What is TRUE about Left Outer Join?

a)
  1. It contains all tuples that have the same common attribute names in A and B.

b)
  1. Tuples in A do not match tuples in B in the left outer join.

c)
  1. It is denoted by ⟕.

d)
  1. All of the above

33.

What is the value of the postfix expression 6 3 2 4 + – *?

a)

a) 74

b)

b) -18

c)

c) 22

d)

d) 40

34.

In a stack, if a user tries to remove an element from empty stack it is called _________

a)

Underflow

b)

Stack is Empty

c)

Overflow

d)

None of the above

35.

Can We Implement Stack Using Queue Data structure

a)

Yes

b)

No

36.

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

37.

The spiral model combines which two SDLC models?

a)

waterfall & agile

b)

agile & v-model

c)

waterfall & iterative

38.

Agile Software Development Process is:

a)

Sequential

b)

Iterative

c)

Incremental

d)

Iterative & Incremental both

39.

What is Software?

a)

Set of computer programs, procedures and possibly is a collection of instructions that enable the user to interact with a computer

b)

A set of compiler instructions

c)

A mathematical formula

d)

Things which we can touch

40.

During software development, which factor is most crucial ?

a)

People

b)

Product

c)

Process

d)

Project