Distance between two stations A and B is 842 km. A train covers the journey from A to B at 74 km per hour and returns back to A with a uniform speed of 46 km per hour. Find the average speed of the train during the whole journey.

48.12 kmph

56.73 kmph

67.42 kmph

58.42 kmph

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Three numbers are in ratio 1:2:3 and their H.C.F is 12. The numbers are:
6; 12; 18
12; 24; 32
11; 22; 33
12; 24; 36
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
16, 36, 72, 144, 196, 225

From these series find the odd number:

16
36
72
196
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The ratio of the circumferences of two circles is 4:5. What is the ratio of their areas?

2:3

5:6

4:5

2:5

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Two vessels A and B contain 57.5% and 72.5% of alcohol respectively. If 2 litres from vessel A is mixed with 4 litres from vessel B, the ratio of alcohol and water in the resulting mixture is
27:13
39:14
12:13
1:2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A person buys an article at Rs. 750. At what price should he sell the article so as to make a profit of 20%?
300
150
450
900
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
_______ is the action of asking something humbly.
Application
Supplication
Germination
Segregation
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the idiom for ' not speaking precisely or to the point'?
Beating around the bush
Over the moon
Bite the bullet
Break a leg
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The house upon the rock ______ firm.
stand
stood
standing
stands
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
When all shapes given are connected in the corresponding edges (X to X, Y to Y and etc.)

The complete shape looks like shape:

1
2
3
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What will be output if you will compile and execute the following c code? (1 mark)

#include<stdio.h>

int main(){

const int x=25;

int * const p=&x;

*p=2*x;

printf("%d",x);

return 0;

}

25
50
0
Compiler error
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a snippet of the executing C program:

for(i = 100; i > 0; i /= 3)

3rd value of i printed by above for loop are?

33
11
3
66
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Insert 5,4,10,3,9,2,12 in an empty binary search tree (BST) in the sequence,

Which element will be in the lowest level ?

2
5
12
3
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

What will be the output of the following C program? (1 marks)

#include<stdio.h>

int function(unsigned x)

{

int b;

for (b = 0; x != 0; x &= (x-1))

b++;

return b;

}

void main()

{

if( function(3)==function(10))

printf("Vaccine\n");

else

printf("Injection\n");

}

Vaccine
Injection
Nothing will print
Compiler error
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Correct choice of data structures can improve the performance of algorithms. (2 marks)

Match the following algorithms with appropriate data structures:

i. Breadth first search a. Heap

ii. Depth first search b. Stack

iii. Sorting c. Queue

i­-a ii-­b iii-­c
i­-b ii­-a iii­-c
i­-c ii­-b iii­-a
i­-b ii­-c iii­-a
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

If the function lower() returns the lower case of character passed in an argument then what will be correct the expression EXPR? (2 marks)

#include <stdio.h>

int lower(int c) {

return (c >= 'A' && c <= 'Z') ? EXPR : c;

}

int main() {

printf("%c\n", lower('A'));

return 0;

}

c - 'a' + 'A'
c + 'a' - 'A'
c + 'A' - 'a'
c - 'A' - 'a'
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
char *a = "";

char b[1] = {0};

char c = 0;

Which among the following statements is correct about the above 3 snippets of code? [MSQ]

a points to an empty string
b is an array of 1 char, containing an empty string
&c points to an empty string
The three lines each define a string containing only a null character
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following is not a topological ordering of the following graph ?

123456
132456
132645
324165
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statement(s) is/are TRUE?

P: Adding an edge to a tree will form a loop. Removing an edge of a tree will result in two disconnected subtrees.

Q: Given Graph G, contains distinct edges, and a cycle C in G. The heaviest edge on C is not in the MST of G.

Only P
Only Q
Both P and Q
Neither P and Nor Q
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the total number of strongly connected components for a given graph is ____?

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following array A[ ] with 10 elements

A[ 21, 7, 41, 22, 15, 18, 25, 58, 103 , 203 ]

Find the total number of inversions possible for the given array.

[ Hint: Inversion formal definition is two elements A[i] and A[j] form an inversion if A[i] > A[j] and i < j ]

9
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Let A, B, C, D be four matrices of dimensions 10x5, 5x6, 6x7, 7x9 respectively. Find the maximum number of scalar multiplications required to find the product A B C D using the Matrix Chain Multiplication method is_____?
1350
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Bob has wanted to send a message to Alice. Bob uses the encrypted message by using given letters along with probabilities of their occurrence.

Letter

A

L

G

O

R

I

T

H

M

Probability

20

18

16

12

10

6

5

2

1

Alice got a message in combination of 1’s and 0’s. Alice needs to apply a hamming code algorithm to understand the given message.

110100110011011110101

Find the decrypted message sent by Bob which considers two consecutive ‘1’ and ‘0’. The consecutive numbers may or may not be in continuous order ____? [ Hint: consider left node as 0 ] [MSQ]

M
I
T
H
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Let P be a Quicksort algorithm to sort numbers in descending order. The quick sort using the last element as pivot. Let t1 and t2 be the number of comparisons made by P for the inputs {10, 15, 3, 9, 30} and {50, 40, 30, 20, 10} respectively. Which one of the following is not the correct relation by using quick sort in the context of time complexities ? [ MSQ ]
t1 = t2
t1< t2
t1 > t2
t1 ⊃ t2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a relation R(A,B,C,D,E) and the following functional dependencies:

AB → C

C → D

BD → E

Which of the following is/are super key(s) of R? [MSQ]

AB
ABD
BCD
ACD
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
This Query can be replaced by which one of the following?

SELECT name, course_id

FROM instructor, teaches

WHERE instructor_ID= teaches_ID;

Select name,course_id from teaches,instructor where instructor_id=course_id;
Select name, course_id from instructor natural join teaches;
Select name, course_id from instructor;
Select course_id from instructor join teaches;
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following log sequence:

< T0, start >

< T0, A, 2000, 1950 >

< T0, B, 3000, 3050 >

< T0, commit >

< T1, start >

< T1, C, 1700, 1600 >

What will be the recovery action by immediate modification recovery?

undo T0, redo T1
redo T0, redo T1
redo T0, undo T1
undo T0, undo T1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
There are five records in a database.

Name

Age

Occupation

Category

Shiva

Abdul

Dev

Anil

Anand

29

26

28

27

25

Professor 1

Engineer2

Teacher3

Business4

Doctor5

A

A

B

D

C

There is an index file associated with this and it contains the values 4, 5, 2, 1 and 3. Which one of the fields is the index built from?

Age
Name
Occupation
Category
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a language L over ∑={a} such that every string in L contains even number (greater than zero) of a’s. The min DFA which accept (L*)* has ________number of states.
2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following Finite Automata with S as the initial state. Select the correct option.[MSQ]

If S is the only final state then given FA accepts (0+1)*
If F is the only final state then language accepted by FA and language accepted by reversal of FA will be equal.
If S is the only final state then the corresponding minimal DFA equivalent to the given NFA will have two states.
If F is the only final state then the corresponding minimal DFA equivalent to the given NFA will have exactly one state.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following context free grammar and select the correct option with reference to the given CFG. [MSQ]

S ⟶ aSA | a

A⟶ bB

B⟶b

The given grammar is in GNF form
The language generated by the grammar is DCFL.
The grammar generates the language L={a^(n+1) b^2n | n>0}
The grammar is in CNF form
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Let A= (a, aab, baaa) and B = (aaa, bba, aa) and the alphabet ∑= {a,b} . Then the solution for PCP is _____.
(2,3,1)
(2,1,3)
(1,2,3)
None of these
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A is decidable (recursive).
A cannot be recursive
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following regular expressions.

R1: (a*b*b*)*

R2: (a*b*+b*)*

Select the correct option:

R1=R2 but both R1 and R2 ≠(a+b)*
R1≠R2 but R1=(a+b)*
R1=R2=(a+b)*
None of these

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following grammars, where {@, id, #} are terminal symbols.

G1:

S→A+A*id

A→ id*A | id

G2:

S→A+id*A

A→idB

B→*idB | ϵ

Select the correct option.

Both are LL(1) grammar.
G2 is LL(1) but G(1) is not LL(1)
Both G1 and G2 are ambiguous
G1 has left factoring and G2 is ambiguous
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following Grammar G, whose productions are:

S→P | R

P→ a | t

R→ b | t

where {S, P, R} are set of non-terminals and {a,b,t} are set of terminals. Select the correct option. [MSQ]

Grammar G is LL(1).
Grammar G has two parse trees for a string of length one.
Grammar G is ambiguous
Grammar G is not LR(1)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following three address code:

1). t1= i*4

2). t2=a[t1]

3). param t2

4). t3 = call f, 1

5). t4 = t3 *2

6). n=t3

Select the correct expression for which this three address code belongs to:

a[i] = f(n)*2
n=f(a[i])*2
i[a] =f(n)*2
a=f(n[i])*2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider the following grammar, where set {a,b,d} are terminals and set {S,A,B} are non-terminals. [MSQ]

S → Aa

A → d | SB

B → ϵ | b

Select the correct option / options.

Given grammar is LL(1).

Given grammar is LR(0) but not LL(1)

Given grammar is SLR(1) but not LR(0).

Given grammar has indirect left recursion.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a computer system with a 32 bit logical address and 4KB page size. The system supports up to 512MB of physical memory. What is the page table size using a one level conventional page table?
4MB
3MB
2.725MB
2.125MB
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In a TLB, if 75% of all page-table references are found in the TLBs, what is the effective memory reference time? (Assume that finding a page-table entry in the TLBs takes 2 nanoseconds, if the entry is present, and a memory reference takes 50 nanoseconds)
60.5 ns
64.5ns
68.5ns
70.5 ns
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A system is having 3 user processes each requiring 2 units of resource R. The minimum number of units of R such that no deadlock will occur is
3
4
5
6
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a process with 4 pages 0,1, 2 and 3. The process accesses pages in the following sequence: 0, 1, 0, 2, 3, 3, 0, 2. Assume that the main memory can hold only 3 out of these 4 pages, is initially empty, and there is no other process executing on the system. Assuming the demand paging system is using an optimal page replacement policy, how many page faults do page accesses above generate?
3
4
5
6
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the information about the following processes :

Process

Arrival

Burst1

IO

Burst2

P1

0

10

0

0

P2

6

3

3

5

P3

9

2

0

0

The CPU utilization using the Shortest Remaining time First (SRTF) Scheduling policy is :

100%
86.95%
95.65%
85.71%
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Binary exponential backoff is a mechanism used in some MAC protocols. Which of the following is true?
It ensures that two nodes that experience a collision in a time slot will never collide with each other when they each retry that packet.
It can be used with slotted aloha but not with carrier sense multiple access.
Over short time scales, it improves the fairness of the throughput achieved by different nodes compared to not using the mechanism.
It ensures that two or more nodes that experience a collision in a time slot will experience a lower probability of colliding with each other when they each retry that packet.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following is incorrect?
In a circuit-switched network, switches require connection establishment and teardown phases, whereas in the packet-switched network doesn’t.
Unlike packet switching, circuit-switched networks do not need any information about the network topology for correct functionality.
Once a connection is correctly established, a switch in the circuit-switched network can forward data directly without requiring data frames to conclude a destination address.
Under some circumstance, a circuit-switched network may prevent some sender from starting a new conversation.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements, when a distance vector routing protocol finding minimum cost paths suffers from count to infinity problem:


S1: The count-to-infinity problem may arise in the distance vector routing protocol when the network gets disconnected.

S2: The count to infinity problem may arise in a distance vector routing protocol even when the network never gets disconnected.

S3: The “path-vector” enhancement to a distance vector routing protocol always enables the protocol to converge without count to infinity.

Which of the following is correct?

Only S1 and S3 are true
Only S2 and S3 are true
Only S2 is true
S1, S2 and S2 are true
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the sliding window protocol used at the transport layer to transfer the segments, the receiver sends “ACK K + 1” when it receives a packet with sequence number “K” and window size is denoted by “W”. Assume the sender’s packets start with sequence number 1. Which of the following is correct about sliding window protocol?
Between two ACK packets, the sender will never send more than one packet.
The sender must retransmit any packets for every single duplicate ACK it receives.
Any new (previously unsent) packet with a sequence number greater than “W” is sent by sender iff a new (previously unseen) ACK arrives.
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The number of integers between 100 to 1000 that have distinct digits
648
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
0
1
1/2
Not finite
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The number of ways of selecting three non negative integers such that their sum is 27 is __
406
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
The chromatic number of the following graph is ___

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
The number of ways in which 7 people can be grouped into 3 identical groups is_
365
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
The number of asymmetric relations with a set of 3 elements is __
27
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
p=⅓, q=⅙
p=⅙ , q=⅙
p=⅓,q=⅓
p=⅓,q=1/9
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Choose the correctly matched logically equivalent statements [MSQ]
p v ( p ∧ q)≡ p
~( p∧ q)≡ ~p v~q
P v ( q ∧ r) ≡ ( p v q )∧ ( p v r )
( p v q ) v r ≡ p v ( q v r )
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
A 4-way set associative cache consists of a total of 256 blocks. The main memory contains 8192 blocks each with 128 words. How is the address divided as TAG, SET, OFFSET?
7,5,6
7,6,5
5,6,7
7,6,7
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A program is running on a machine which has a total of 500 instructions, average cycles per instruction for the program is 1.8, and CPU clock rate is 2 GHz. The execution time of the program in nanoseconds is___________.
450
400
600
800
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a 4-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 4-stage pipeline, the speedup achieved with respect to non-pipelined execution if 40% of the instructions incur 2 pipeline stall cycles is ______________________.
1.82
2.82
2.22
3.22
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A hard disk is connected to a 20 MHz processor through a DMA controller. Assume that the initial set-up of a DMA transfer takes 500 clock cycles for the processor, and assume that the handling of the interrupt at DMA completion requires 200 clock cycles for the processor. The hard disk has a transfer rate of 1000 Kbytes/sec and the average block transferred is 2K bytes. What percentage of the processor time is consumed by the disk?
1.72
2.46
3.38
4.23
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
In a 4-way set associative cache, the cache is divided into 16 sets. The lines of a set are placed in sequence one after another. The lines in set s are sequenced before the lines in set (s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered 250 must be mapped to any one of the cache lines from
32 to 47
40 to 43
2 to 17
10 to 13
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
If (212)x = (153)8 then the base x is
5
6
7
8
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What does the following circuit yield to?

0
1
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the function f(a,b,c) = ab’ + c’. Which of the following statements is true?
f is not functionally complete
f is partially functionally complete by using ‘1’
f is partially functionally complete by using ‘0’
f is functionally complete
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following circuit:

Which of the below state transitions is not possible with the above circuit?

0 -> 3
1 -> 2
3 -> 1
2 -> 2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
If the receiver received 1011101 with hamming code incorporated with even parity, what did the sender send?
1001101
1011100
1010101
1011001
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66