Q1 · General Aptitude · MCQ · 1 mark
In a quadratic function, the value of the product of the roots is 4.
Find the value of
- (A)
- (B)
- (C)
- (D)
Answer (official key): B
Worked solution: in your report after you take this paper.
Question text and figures as in the official paper, with the answer from the official key. Worked solutions for every question are in your report after you take the paper as a 3-hour test.
In a quadratic function, the value of the product of the roots is 4.
Find the value of
Answer (official key): B
Worked solution: in your report after you take this paper.
The man who is now Municipal Commissioner worked as ____________________.
Answer (official key): B
Worked solution: in your report after you take this paper.
Nobody knows how the Indian cricket team is going to cope with the difficult and seamer-friendly wickets in Australia.
Choose the option which is closest in meaning to the underlined phrase cope with in the above sentence.
Answer (official key): A
Worked solution: in your report after you take this paper.
Find the odd one in the following group of words.
mock, deride, praise, jeer
Answer (official key): C
Worked solution: in your report after you take this paper.
Pick the odd one from the following options.
Answer (official key): D
Worked solution: in your report after you take this paper.
Among 150 faculty members in an institute, 55 are connected with each other through Facebook and 85 are connected through WhatsApp. 30 faculty members do not have Facebook or WhatsApp accounts.
The number of faculty members connected only through Facebook accounts is ______________.
Answer (official key): A
Computers were invented for performing only high-end useful computations. However, it is no understatement that they have taken over our world today. The internet, for example, is ubiquitous. Many believe that the internet itself is an unintended consequence of the original invention. With the advent of mobile computing on our phones, a whole new dimension is now enabled. One is left wondering if all these developments are good or, more importantly, required.
Which of the statement(s) below is/are logically valid and can be inferred from the above paragraph?
(i) The author believes that computers are not good for us.
(ii) Mobile computers and the internet are both intended inventions.
Answer (official key): D
In a rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?

Answer (official key): C
Worked solution: in your report after you take this paper.
Choose the correct expression for given in the graph.

Answer (official key): C
Worked solution: in your report after you take this paper.
All hill-stations have a lake. Ooty has two lakes.
Which of the statement(s) below is/are logically valid and can be inferred from the above sentences?
(i) Ooty is not a hill-station.
(ii) No hill-station can have more than one lake.
Answer (official key): D
Worked solution: in your report after you take this paper.
Consider the following types of languages:
: Regular
: Context-free
: Recursive
: Recursively enumerable
Which of the following is/are TRUE?
I. is recursively enumerable.
II. is recursive.
III. is context-free.
IV. is context-free.
Answer (official key): D
Worked solution: in your report after you take this paper.
Suppose that the eigenvalues of matrix are 1, 2, and 4.
The determinant of
is __________.
Answer (official key): 0.124 to 0.126
Worked solution: in your report after you take this paper.
Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.
Answer (official key): C
Worked solution: in your report after you take this paper.
Suppose a database schedule involves transactions .
Construct the precedence graph of with vertices representing the transactions and edges representing the conflicts.
If is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Answer (official key): A
Worked solution: in your report after you take this paper.
items are stored in a sorted doubly linked list.
For a delete operation, a pointer is provided to the record to be deleted.
For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed.
An algorithm performs the following operations on the list in this order:
What is the time complexity of all these operations put together?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider an eight-bit ripple-carry adder for computing the sum of and , where and are integers represented in 2's complement form.
If the decimal value of is one, the decimal value of that leads to the longest latency for the sum to stabilize is __________.
Answer (official key): -1
Worked solution: in your report after you take this paper.
In an Ethernet local area network, which one of the following statements is TRUE?
Answer (official key): D
Worked solution: in your report after you take this paper.
Let be a polynomial and
be its derivative.
If the degree of
is 10, then the degree of
is __________.
Answer (official key): 9
Worked solution: in your report after you take this paper.
Breadth First Search (BFS) is started on a binary tree beginning from the root vertex.
There is a vertex at a distance four from the root.
If is the -th vertex in this BFS traversal, then the maximum possible value of is __________.
Answer (official key): 31
Worked solution: in your report after you take this paper.
Let
where are Boolean variables and is the XOR operator.
Which one of the following must always be TRUE?
Answer (official key): C
Worked solution: in your report after you take this paper.
Language is defined by the grammar:
Language is defined by the grammar:
Consider the following statements:
P: is regular.
Q: is regular.
Which one of the following is TRUE?
Answer (official key): C
Worked solution: in your report after you take this paper.
The Floyd-Warshall algorithm for all-pair shortest paths computation is based on:
Answer (official key): C
Worked solution: in your report after you take this paper.
A processor has 40 distinct instructions and 24 general purpose registers.
A 32-bit instruction word has an opcode, two register operands, and an immediate operand.
The number of bits available for the immediate operand field is __________.
Answer (official key): 16
Worked solution: in your report after you take this paper.
Anarkali digitally signs a message and sends it to Salim.
Verification of the signature by Salim requires:
Answer (official key): A
Worked solution: in your report after you take this paper.
B+ Trees are considered balanced because:
Answer (official key): A
Worked solution: in your report after you take this paper.
Let be the number of distinct 16-bit integers in 2's complement representation.
Let be the number of distinct 16-bit integers in sign-magnitude representation.
Then is __________.
Answer (official key): 1
Worked solution: in your report after you take this paper.
Consider the systems, each consisting of linear equations in variables.
I. If , then all such systems have a solution.
II. If , then none of these systems has a solution.
III. If , then there exists a system which has a solution.
Which one of the following is CORRECT?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider the following expressions:
(i) false
(ii)
(iii) true
(iv)
(v)
The number of expressions given above that are logically implied by
is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
The minimum number of colours that is sufficient to vertex-colour any planar graph is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
The value printed by the following program is __________.
void f(int* p, int m) { m = m + 5; *p = *p + m; return; } void main() { int i = 5, j = 10; f(&i, j); printf("%d", i + j); }
Answer (official key): 30
Worked solution: in your report after you take this paper.
The number of states in the minimum sized DFA that accepts the language defined by the regular expression
is __________.
Answer (official key): 2
Worked solution: in your report after you take this paper.
Assume that the algorithms considered here sort the input sequences in ascending order.
If the input is already in ascending order, which of the following are TRUE?
I. Quicksort runs in time.
II. Bubblesort runs in time.
III. Mergesort runs in time.
IV. Insertion sort runs in time.
Answer (official key): D
Worked solution: in your report after you take this paper.
Suppose that a shop has an equal number of LED bulbs of two different types.
The probability of an LED bulb lasting more than 100 hours given that it is of Type 1 is 0.7, and given that it is of Type 2 is 0.4.
The probability that an LED bulb chosen uniformly at random lasts more than 100 hours is __________.
Answer (official key): 0.55
Worked solution: in your report after you take this paper.
In which one of the following page replacement algorithms is it possible for the page fault rate to increase even when the number of allocated frames increases?
Answer (official key): D
Worked solution: in your report after you take this paper.
Match the following:
| Item | Description |
|---|---|
| (P) Lexical analysis | (i) Leftmost derivation |
| (Q) Top down parsing | (ii) Type checking |
| (R) Semantic analysis | (iii) Regular expressions |
| (S) Runtime environments | (iv) Activation records |
Answer (official key): B
Worked solution: in your report after you take this paper.
Consider a processor with 64 registers and an instruction set of size twelve.
Each instruction has five distinct fields, namely:
Each instruction must be stored in memory in a byte-aligned fashion.
If a program has 100 instructions, the amount of memory consumed by the program text is __________ bytes.
Answer (official key): 500
Worked solution: in your report after you take this paper.
A binary relation on is defined as follows:
Consider the following propositions:
P: is reflexive.
Q: is transitive.
Which one of the following statements is TRUE?
Answer (official key): B
Worked solution: in your report after you take this paper.
In an adjacency list representation of an undirected simple graph , each edge has two adjacency list entries: in the adjacency list of , and in the adjacency list of .
These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin.
If and , and the memory size is not a constraint, what is the time complexity of the most efficient algorithm to set the twin pointer in each entry in each adjacency list?
Answer (official key): B
Worked solution: in your report after you take this paper.
Consider the following program:
int f(int *p, int n) { if (n <= 1) return 0; else return max(f(p+1,n-1), p[0]-p[1]); } int main() { int a[] = {3,5,2,6,4}; printf("%d", f(a,5)); }
Note: max(x,y) returns the maximum of and .
The value printed by this program is __________.
Answer (official key): 3
Worked solution: in your report after you take this paper.
Consider the following New-order strategy for traversing a binary tree:
The New-order traversal of the expression tree corresponding to the reverse polish expression
3 4 * 5 - 2 ^ 6 7 * 1 + -
is given by:
+ - 1 6 7 * 2 ^ 5 - 3 4 *- + 1 * 6 7 ^ 2 - 5 * 3 4- + 1 * 7 6 ^ 2 - 5 * 4 31 7 6 * + 2 5 4 3 * - ^ -Answer (official key): C
Worked solution: in your report after you take this paper.
A complete binary min-heap is made by including each integer in exactly once.
The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 0.
The maximum depth at which integer 9 can appear is __________.
Answer (official key): 8
Worked solution: in your report after you take this paper.
Consider the following two statements:
I. If all states of an NFA are accepting states, then the language accepted by the NFA is .
II. There exists a regular language such that for all languages , is regular.
Which one of the following is CORRECT?
Answer (official key): B
Worked solution: in your report after you take this paper.
Suppose the functions and can be computed in 5 and 3 nanoseconds by functional units and , respectively.
Given two instances of and two instances of , it is required to implement the computation
Ignoring all other delays, the minimum time required to complete this computation is __________ nanoseconds.
Answer (official key): 28
Worked solution: in your report after you take this paper.
Consider a set of 23 different compounds in a Chemistry lab. There is a subset of of 9 compounds, each of which reacts with exactly 3 compounds of .
Consider the following statements:
I. Each compound in reacts with an odd number of compounds.
II. At least one compound in reacts with an odd number of compounds.
III. Each compound in reacts with an even number of compounds.
Which one of the above statements is ALWAYS TRUE?
Answer (official key): B
Worked solution: in your report after you take this paper.
Which one of the following well-formed formulae in predicate calculus is NOT valid?
Answer (official key): D
Worked solution: in your report after you take this paper.
The width of the physical address on a machine is 40 bits.
The width of the tag field in a 512 KB, 8-way set associative cache is __________ bits.
Answer (official key): 24
Worked solution: in your report after you take this paper.
The following function computes for positive integers and .
int exp(int X, int Y) { int res = 1, a = X, b = Y; while (b != 0) { if (b % 2 == 0) { a = a * a; b = b / 2; } else { res = res * a; b = b - 1; } } return res; }
Which one of the following conditions is TRUE before every iteration of the loop?
Answer (official key): C
Worked solution: in your report after you take this paper.
The number of ways in which the numbers
can be inserted in an empty binary search tree, such that the resulting tree has height 6, is __________.
Note: The height of a tree with a single node is 0.
Answer (official key): 64
Worked solution: in your report after you take this paper.
Let , and be four matrices of dimensions
respectively.
The minimum number of scalar multiplications required to find the product
using the basic matrix multiplication method is __________.
Answer (official key): 1500
Worked solution: in your report after you take this paper.
The given diagram shows the flowchart for a recursive function .
Assume that all statements, except for the recursive calls, have time complexity.

If the worst-case time complexity of this function is , then the least possible value of , accurate up to two decimal places, is __________.
Answer (official key): 2.2 to 2.4
The value of the expression
in the range 0 to 16 is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
Consider a 3 GHz processor with a three-stage pipeline and stage latencies such that
If the longest pipeline stage is split into two pipeline stages of equal latency, the new frequency is __________ GHz, ignoring delays in the pipeline registers.
Answer (official key): 3.9 to 4.1
Worked solution: in your report after you take this paper.
Consider the following two-process synchronization solution.
Process 0:
Entry: loop while (turn == 1); critical section Exit: turn = 1;
Process 1:
Entry: loop while (turn == 0); critical section Exit: turn = 0;
The shared variable turn is initialized to zero.
Which one of the following is TRUE?
Answer (official key): C
Worked solution: in your report after you take this paper.
A file system uses an in-memory cache to cache disk blocks.
The miss rate of the cache is shown in the figure below. The latency to read a block from the cache is 1 ms and to read a block from the disk is 10 ms.
Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 10 MB.

The smallest cache size required to ensure an average read latency of less than 6 ms is __________ MB.
Answer (official key): 30
Worked solution: in your report after you take this paper.
A network has a data transmission bandwidth of
bits per second.
It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is 40 microseconds.
The minimum size of a frame in the network is __________ bytes.
Answer (official key): 200
Worked solution: in your report after you take this paper.
Consider the following languages.
where for each Turing machine , denotes a specific encoding of .
Which one of the following is TRUE?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider a
bits/second satellite communication link with one-way propagation delay of 150 milliseconds.
Selective retransmission/repeat protocol is used on this link to send data with a frame size of 1 kilobyte.
Neglect the transmission time of acknowledgement.
The minimum number of bits required for the sequence number field to achieve 100% utilization is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
A student wrote two context-free grammars and for generating a single C-like array declaration. The dimension of the array is at least one. For example,
int a[10][3];
The grammars use as the start symbol and use six terminal symbols:
int ; id [ ] num
Grammar :
Grammar :
Which of the grammars correctly generate the declaration mentioned above?
Answer (official key): A
Worked solution: in your report after you take this paper.
For the IEEE 802.11 MAC protocol for wireless communication, which of the following statements is/are TRUE?
I. At least three non-overlapping channels are available for transmissions.
II. The RTS-CTS mechanism is used for collision detection.
III. Unicast frames are ACKed.
Answer (official key): B
Worked solution: in your report after you take this paper.
Consider the following database schedule with two transactions, and .
where denotes a read operation by transaction on a variable , denotes a write operation by transaction on a variable , and denotes an abort by transaction .
Which one of the following statements about the above schedule is TRUE?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider a non-negative counting semaphore .
The operation decrements , and increments .
During an execution, 20 operations and 12 operations are issued in some order.
The largest initial value of for which at least one operation will remain blocked is __________.
Answer (official key): 7
Consider the following database table named water_schemes.
| scheme_no | district_name | capacity |
|---|---|---|
| 1 | Ajmer | 20 |
| 1 | Bikaner | 10 |
| 2 | Bikaner | 10 |
| 3 | Bikaner | 20 |
| 1 | Churu | 10 |
| 2 | Churu | 20 |
| 1 | Dungargarh | 10 |
The number of tuples returned by the following SQL query is __________.
WITH total(name, capacity) AS ( SELECT district_name, SUM(capacity) FROM water_schemes GROUP BY district_name ), total_avg(capacity) AS ( SELECT AVG(capacity) FROM total ) SELECT name FROM total, total_avg WHERE total.capacity >= total_avg.capacity;
Answer (official key): 2
Consider the following languages:
Which one of the following is TRUE?
Answer (official key): B
Worked solution: in your report after you take this paper.
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds.
The scheduling algorithm used is preemptive shortest remaining-time first.
| Process | Arrival Time | Burst Time |
|---|---|---|
| 0 | 10 | |
| 3 | 6 | |
| 7 | 1 | |
| 8 | 3 |
The average turn around time of these processes is __________ milliseconds.
Answer (official key): 8.2 to 8.3
Worked solution: in your report after you take this paper.
Which one of the following grammars is free from left recursion?
Answer (official key): B
Worked solution: in your report after you take this paper.