Consider two sets A = {2,4,5,6,7} and B = {10,11,12,13,14}. Two numbers are selected randomly, one from each set. What is the probability that the difference of two numbers will be 9?
0.20
0.12
0.18
0.16
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the missing number.

54

63

76

12

?

30

42

12

46

51
48
24
54
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The total revenue of a company during 2015-2019 is shown in the below bar graph. If the total expenditure of the company in each year is 400 million rupees, then the aggregate profit of loss (in percentage) on the total expenditure of the company during 2015-2019 is (2MARKS)

25% loss
50% profit
50% loss
16.67% profit
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Two trains start from the station A and B and travel towards each other at speeds of 36 km/hr and 48 km/hr respectively. At the time of their meeting, the second train had travelled 72 km more than the first. The distance between A and B is:

620 km

550 km

600 km

504 km

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The given question consists followed by three statements. Read the question and decide which of the statements necessary to answer the question.

Question: What is M’s share of profit in a joint venture?

Statements:

(I) L started a business investing Rs 80,000.

(II) M joined him after 3 months.

(III) K joined after 4 months with a capital of Rs.1,20,000 and got Rs.6000 as his share profit.

All I, II, III
I and III only
II and III only
Data inadequate
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the missing term in the sequence

5, 11, 17, ?, 31, 41

19
21
23
25
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Fill in the blanks with the suitable word.

Moses was watching the rain rattle the window ____

plane
pane
plain
pain
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Tyrant: Ruler :: Disciplinarian : ?
Teacher
Driver
Policy maker
Servant
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Find the odd one out.

Banquet, Carnival, Ravenous, Merry -making.

Merry -making

Ravenous

Carnival

Banquet

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Read the passage and answer the question below.

PASSAGE

Serotonin is a neurotransmitter that gets the most attention. It is derived from the protein that is amino acid tryptophan and belongs to the inhibitor group of relaxing neurotransmitters that gives in a sense of happiness and stabilizes one’s mood. In case you feel irritated, reprieved, depression, have insomnia or low-self esteem, you might want to give your serotonin levels a boost to improve your overall well being. Serotonin also works as a natural appetite suppressant and its deficiency is closely related to obesity or weight gain. Also, when we have low serotonin levels, we start getting carbohydrate or sugar cravings because tryptophan - the building block from which serotonin is derived, can only get into our brain after we eat sweet or starchy foods. So, the next time you get a sugar or carb craving, observe how you are feeling, as any cravings are closely related to mood.

Let’s look at things that we can do to improve serotonin levels in our brain.

Question:

Name the feel-good hormone.

Tryptophan
Serotonin
Oxytocin
Endorphin
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following tree

If the post order traversal gives pq-rs*+ then the label of the nodes 1,2,3,… will be?

+,-,*,p,q,r,s
p,-,q,+,r,*,s
p,q,r,s,-,*,+
-,p,q,+,*,r,s
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the output of the following program?

#include <stdio.h>

#define x 3+2

int main()

{

int i;

i = x*x*x;

printf("%d",i);

return 0;

}

125
11
17
27
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

What is the maximum height of an AVL tree with 9 nodes ? Assume the height of the tree with a single node is 0.

4

5

3

6

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Let G be a graph with n vertices and m edges. What is the tightest upper bound on the running time on Depth First Search of G? Assume that the graph is represented using an adjacency matrix. n is number of nodes m is number of edges.

O(n)

O(n + m)

O(n^2 )

O(nm)

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
If the DFS finishing time f[u] < f[v] for two vertices u and v in a directed graph G, and u and v are in the same DFS tree in the DFS forest, then u is an ancestor of v in the depth first tree
True
False
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The in-order traversal of some binary tree produced the sequence HFIEJGZ, and the post-order traversal of the same tree produced the sequence HIFJZGE. What will be the total number of nodes in the left subtree of the given tree?
2
3
4
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
(A) Every graph has a unique minimum spanning tree .

(B) A graph may have more than one minimum spanning tree .

(C) A graph with distinct weights has a unique minimum spanning tree .

(D) A graph with distinct weights may have more than one minimum span-

ning tree .

The correct answers among the above are

A,C
B,C
A,B
B,D
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What us the output of following C program? (1 mark)

#include <stdio.h>

int main() {

int a=10;

int b=5;

a=a^b;

b=a^b;

a=a^b;

printf("%d %d",a,b);

return 0;

}

5 10
15 5
50 2
10 5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the total profit in the following 0/1 knapsack problem. Weight of the knapsack is 5 units.

[ Note: Assume unlimited number of items is allowed ]

Weights

2

3

1

5

Profits

64

81

30

25

158
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following is/are FALSE [ MSQ ]
Multiplying all edge weights by a positive number might change the graph’s minimum spanning tree
A graph can have more than one shortest path between two vertices
A graph where all edge weights are distinct can have more than one shortest path between two vertices is unique
Inserting an element into a binary search tree of size n always takes O(log n) time.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Let T(n)=T(n-1)+2n for n > 1 and T(1)=1. Then T(n) is ________?
O(n*2^n)
O(2^n)
O(3^n * n^2)
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
List of keys (K) = 6, 17, 23, 34, 48, 99 are inserted into the hash table by using hash function H=Kmod10. For resolving collisions linear probing is used. Number of collisions occurred when we insert new elements ‘103’ and ’33’ respectively.
2 and 7
3 and 6
4 and 5
1 and 6
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a modification of the insertion sort algorithm, which performs a binary search instead of sequential to find the position where the element to be inserted in each pass of the algorithm. What is the worst case running time of this algorithm?
O(n)
O(nlogn)
O(n^2)
None of these
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following sort function

Bob(Array[1...n], n)

{

for(i=1; i<n; i++)

{

k=i;

for(j=i+1; j<=n; j++)

{

if(Array[j] < Array[k])

k=j;

}

if(k! = i)

swap(Array[i], Array[k]);

}

}

How many minimum numbers of swaps are possible for best case using the above Bob() function with an array of n elements?

O(1)
O(logn)
O(n)
O(n^2)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Select the correct option. [MSQ]
Finite automata has infinite memory.
Finite automata has finite memory.
Any Moore machine has an equivalent Mealy machine.
We can also convert regular grammar into chomsky normal form.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider a Language L over ∑={a,b} such that every strings either start with “a” or end with “b”. The minimum number of states in DFA of L are ___
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following statements

S1: The equivalence of a regular grammar and a DCFL is decidable.

S2: The equivalence of a NFA and a NPDA is decidable.

Select the correct option.

Both S1 and S2 are correct
Both S1 and S2 are false.
S1 is correct while S2 is false
S1 is false while S2 is correct.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following FA over ∑={a,b}

Select the correct regular expression which is equivalent to corresponding to the given FA.

(aa+ab+ba+bb)*
a((a+b)(b+a))* a+ b((a+b)(b+a))*b + ϵ
(aa+bb)* + (ab+ba)*
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following Turing machine, (β means Blank Symbol)

Select correct value of P and Q , if the language recognized by TM is

L={a^n b^n | n > 0}

P=(x,x,L) Q= (y,y,R)
P=(x,x,L) Q= (y,y,L)
P=(x,x,R) Q= (y,y,L)
P=(x,x,R) Q= (y,y,R)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following grammar.

S-> S1 | 1S1 | ϵ

Numbers of parse tree for string “1111” are ____

5
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

Consider the following grammar:

X→XY | 1

Y-> Y1 | 1

Select the correct option:

The grammar is LL(1) as well as SLR(1)

The grammar is CLR(1) but not LL(1)

The grammar is CLR(1) but not LALR(1)

The grammar is ambiguous

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Select the correct statement from the given option. [MSQ]

In S-attributed SDT , semantic action can be written anywhere in the production body at RHS.

For S-attributed SDT it is favourable to use Top down parser.

S-attributed SDT is also known as postfix SDT.

L-attributed SDT has both synthesized as well as inherited attributes, but inherited attribute is allowed to take value from parent or left siblings only.

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

Consider the following SDD having two productions.

B→AB1 { A.val = B1.val } /*Production 1*/

B2 →*AB3 { B2 .val=B3 .val×A.val} /*Production 2*/

Select the correct option.

Production 2 follows S-attributed definition but not L-attributed definition.

This SDD follows only the L-attributed definition but not S-attributed definition.

Production 1 has only inherited attributes.

None of the above.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the given below regular expressions over ∑={a,b}

r1: (a*b+ b*a)*

r2: (aa*+bb*)*

The regular expression for L(r1) ∩ L(r2) is:

Φ
{ϵ}
(a*+b*)*
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Identify the correct statement(s).

Responsibilities of Transaction-management component: [MSQ]

Ensures that the database remains in a consistent state despite Power failures

Ensures that the database remains in a consistent state despite Operating system crashes

Ensure the consistency of the database during interaction among the concurrent transactions

Ensure consistency of database by orchestrating all access requests issued by the transactions

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Which of the following statements is/are CORRECT?

S1: CHECK constraints enforce domain integrity

S2: UNIQUE constraints enforce the uniqueness of the values in a set of columns

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Consider following two relations r1 and r2:

Identify the number of tuples in r1 ⨝ r2?

5

6

7

20

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find names of employees with years of experience greater than at least one employee in the Accounts department. Identify the correct, "SQL Query" for this statement. [MSQ]
SELECT name FROM employee WHERE years_exp IS GREATER THAN (SELECT DISTINCT years_exp FROM employee WHERE dept_name = 'Accounts');
SELECT distinct E.name FROM employee AS E, employee AS F WHERE E.years_exp > F.years_exp AND F.dept_name& = 'Accounts';
SELECT name FROM employee WHERE years_exp > GREATER ( SELECT years_exp FROM employee WHERE dept_name = 'Accounts');
SELECT name FROM employee WHERE years_exp > SOME ( SELECT years_exp FROM employee WHERE dept_name = 'Accounts');
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following implementations of C library functions are NOT straight-forward invocations of the underlying system calls?
exit ();
fork ();
strlen();
None of these
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following actions by a running process will always result in a context switch
A system call.
Servicing a timer interrupt.
Servicing a disk interrupt.
None of these.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Consider a parent process that has forked a child process in the program below:

int a = 50;

int fd = fopen(...); //opening a file

int ret = fork();

if(ret >0) {

fclose(fd);

a = 60;

} else if(ret==0) {

printf("a=%d\n", a);

read(fd, something);

}

After the child process is forked, suppose that the parent process is scheduled first, before the child process. Assume that the child process is scheduled for the first time only after the parent completes its execution. Now which of the following statement(s) is/are TRUE ? (Assume that the OS implements a regular fork, with no virtual memory) [MSQ]

The value of the variable a as printed in the child process is 50.

The value of the variable a as printed in the child process is 60

The attempt to read from the file descriptor (fd) succeeds in the child.

The attempt to read from the file descriptor (fd) fails in the child.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the information about the following processes :

The CPU utilization using the First Come First Serve (FCFS) Scheduling policy is :

100%
95.2%
90.47%
85.71%
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A certain page table entry in the page table of a process has both the valid and present bits set, now which of the following is TRUE in the context of TLB and memory access ?

A TLB hit occurs, always.
A page fault will occur.
A TLB hit or miss may occur, cannot say.
None of these
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider an IP router with Maximum Transferable Unit (MTU) of 500 B has received an IP datagram of size 3000 B with an IP header of length 15 B. Which of the following is true about IP fragments generated by routers for this packet?
Number of fragments = 6, last fragment offset and datagram length 306 and 120
Number of fragments = 7, last fragment offset and datagram length 300 and 120
Number of fragments = 7, last fragment offset and datagram length 360 and 120
Number of fragments = 6, last fragment offset and datagram length 300 and 120
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider an instance of TCP’s Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of slow start phase is 1 MSS and the threshold at the start of 1st transmission is 16 MSS. Assume TCP use over a lossy link i.e., timeout occurs after transmission of the 7th packet . What is the congestion window size at the end of 14 RTT (in MSS)?
9
11
12
14
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider Three-way Handshaking for TCP connection termination is shown below:

Which of the following is false?

S1 : Loss of ACK from client doesn’t affect termination of connection.

S2 : The client moves FIN-Wait-1 → FIN-Wait-2 → closed in the state machine on no packet loss.

S3 : Loss of ACK from server restricts termination of connection.

S1 and S2 only
S2 and S3 only
S1and S3 only
S2 only
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider an IPv4 network, each host can generate packets with a rate of 500 packets per second. If each Packet host in the network is identified by a unique identification number 48 bits, then the host wrap around time for generating packets will be ________ (in sec). [Closest integer value]
131
120
141
102
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
In a casino, the table person selects a card at random and announces that it's a black card.

What is the probability that its a club

1/2
1/4
12/52
1/8
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Schumacher, Vettel, Rossy, Hamilton, Juan, Prost are attending a party. There are four women Mirja, Sharapova, Joli and Kate joined the party. The max number of ways the couple dance can be performed such that each women must be joined by a man is ____
360
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
If determinant of a matrix is -162, then which of the following can be the eigenvalues of that matrix

[MSQ]

{ 18,1, -9}
{ 9,-9,-2}
{ -81, -1,-2 }
{9,-9, 27}
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

12
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

The number of teas sold in a shop per minute are 4. What is the probability that 62 teas are sold in 15 minutes?

0.0066

0.0619

0.6116

0.6993

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The inclusion of which of the following sets into

A = {{a,b,d}, {a,b,x}, {a,b,z}, {a,b,x,z}, {a,b,d,x,z}}

is necessary and sufficient to make ‘A’ a complete lattice under the partial order defined by set containment?

{a}
{b}
{a,b}
{a,b,x,z}
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Round of to one decimal only.

0.5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

The number of ways a five letter word with district letters be formed with {w, x,y,z,a,b,c,d}


_______________

6720
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
An interrupt in which the external device supplies the interrupt requests as well as the starting address of the interrupt service routine is called as:
Vectored interrupt
Non-vectored interrupt
Designated interrupt
Maskable interrupt
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A non-pipelined system takes 72ns to execute a task, the same task is run on a six-staged pipeline with clock cycle time of 12ns. What is the speedup achieved with the pipelined execution over the non-pipelined system if a program with 100 tasks is executed on both?
6.28
5.45
5.92
5.71
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of following addressing modes requires more number of memory accesses
Immediate
Direct
Indirect
Implied
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Choose the correct statement/s from the below: [MSQ]

Memory mapped I/O has separate memory and I/O address spaces.

Memory-mapped I/O uses the same set of read,write control lines for both memory and I/O transfers.

Isolated I/O has distinct input and output instructions.

Memory mapped I/O has distinct input and output instructions.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a 2-way set associative mapping where there are 8 cache blocks (0 – 7). Given the following main memory block access pattern (0, 4, 9, 5, 16, 13, 15, 19, 25, 63, 24, 57, 30), if LRU cache replacement is used choose the main memory block number which is not present in the cache at the end of the access________
15
63
19
30
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

  1. A function f(A,B,C) is implemented by the following 4x1 multiplexer.

Which of the following is NOT a minterm of the function f(a,b,c)?

5
4
6
7
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following statements is true?
XOR is a neutral function
XNOR is not a neutral function
Both
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let A= 1101 and B= 0111 are the two signed binary numbers represented in 2’s complement form. Which of the following statements is true if A and B are added? [MSQ]
Overflow doesn’t occur
Result is a positive number
Overflow occurs
Result is a negative number
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
let f1 = a’b’+b’c, and f2= ac+bc’. Which of the following expressions represent f1+f2?
a’b’ + ac + bc’
a’c’ + b’c + ab
a’c’ + b’c + ac
a’b’ + ac + a’c’
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Let A and B are bit strings of length k. If An is A XORed with itself n times and Bn is B XNORed with itself n times, AnBn=______? (⊕ represents XOR)
1111...k times if n is odd.
0000…. k times if n is odd.
A if n is even
B if n is even
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.66