Q1 · General Aptitude · MCQ · 1 mark
The _________ is too high for it to be considered _________.
- (A)fair / fare
- (B)faer / fair
- (C)fare / fare
- (D)fare / fair
Answer (official key): D
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.
The _________ is too high for it to be considered _________.
Answer (official key): D
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters.

From the additional plates given in the options, which one of the combinations of additional plates would allow the player to construct a five-letter palindrome. The player should use all the five plates exactly once. The plates can be rotated in their plane.




Answer (official key): B
Worked solution: in your report after you take this paper.
Given below are four statements.
Statement 1: All students are inquisitive.
Statement 2: Some students are inquisitive.
Statement 3: No student is inquisitive.
Statement 4: Some students are not inquisitive.
From the given four statements, find the two statements that CANNOT BE TRUE simultaneously, assuming that there is at least one student in the class.
Answer (official key): A
Worked solution: in your report after you take this paper.
Let be a root of the equation
Then the value of the expression
is
Answer (official key): D
Worked solution: in your report after you take this paper.
A function is defined in the interval on the -axis as
Which one of the following is the area under the curve for the interval on the -axis?
Answer (official key): C
Worked solution: in your report after you take this paper.
Some people believe that “what gets measured, improves”. Some others believe that “what gets measured, gets gamed”. One possible reason for the difference in the beliefs is the work culture in organizations. In organizations with good work culture, metrics help improve outcomes. However, the same metrics are counterproductive in organizations with poor work culture.
Which one of the following is the CORRECT logical inference based on the information in the above passage?
Answer (official key): B
Worked solution: in your report after you take this paper.
In a recently conducted national entrance test, boys constituted 65% of those who appeared for the test. Girls constituted the remaining candidates and they accounted for 60% of the qualified candidates.
Which one of the following is the correct logical inference based on the information provided in the above passage?
Answer (official key): D
Worked solution: in your report after you take this paper.
A plot of land must be divided between four families. They want their individual plots to be similar in shape, not necessarily equal in area. The land has equally spaced poles, marked as dots in the below figure. Two ropes, R1 and R2, are already present and cannot be moved.

What is the least number of additional straight ropes needed to create the desired plots? A single rope can pass through three poles that are aligned in a straight line.
Answer (official key): D
Worked solution: in your report after you take this paper.
The corners and mid-points of the sides of a triangle are named using the distinct letters P, Q, R, S, T and U, but not necessarily in the same order. Consider the following statements:
Which one of the following statements is correct based on the above information?
Answer (official key): B
Worked solution: in your report after you take this paper.
A box contains five balls of same size and shape. Three of them are green coloured balls and two of them are orange coloured balls. Balls are drawn from the box one at a time. If a green ball is drawn, it is not replaced. If an orange ball is drawn, it is replaced with another orange ball.
First ball is drawn. What is the probability of getting an orange ball in the next draw?
Answer (official key): D
Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?
Answer (official key): A
Worked solution: in your report after you take this paper.
In a relational data model, which one of the following statements is TRUE?
Answer (official key): A
Worked solution: in your report after you take this paper.
Consider the following threads, T1, T2, and T3 executing on a single processor, synchronized using three binary semaphore variables, S1, S2, and S3, operated upon using standard wait() and signal(). The threads can be context switched in any order and at any time.
| T1 | T2 | T3 |
|---|---|---|
while(true){ wait(S3); print("C"); signal(S2); } | while(true){ wait(S1); print("B"); signal(S3); } | while(true){ wait(S2); print("A"); signal(S1); } |
Which initialization of the semaphores would print the sequence BCABCABCA....?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider the problem of reversing a singly linked list. To take an example, given the linked list below, the reversed linked list should have all pointers reversed.
Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in space?
Answer (official key): A
Worked solution: in your report after you take this paper.
Suppose we are given keys, hash table slots, and two simple uniform hash functions and . Further suppose our hashing scheme uses for the odd keys and for the even keys. What is the expected number of keys in a slot?
Answer (official key): B
Worked solution: in your report after you take this paper.
Which one of the following regular expressions correctly represents the language of the finite automaton given below?

Answer (official key): D
Worked solution: in your report after you take this paper.
Let R1 and R2 be two 4-bit registers that store numbers in 2’s complement form. For the operation R1 + R2, which one of the following values of R1 and R2 gives an arithmetic overflow?
Answer (official key): B
Worked solution: in your report after you take this paper.
Which one of the following statements is TRUE for all positive functions ?
Answer (official key): A
Worked solution: in your report after you take this paper.
Consider the following two statements with respect to the matrices , , and .
Statement 1:
Statement 2:
where represents the trace of a matrix. Which one of the following holds?
Answer (official key): C
Worked solution: in your report after you take this paper.
Which one of the following statements is TRUE?
Answer (official key): D
Worked solution: in your report after you take this paper.
Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index ____________.
Answer (official key): 509
Worked solution: in your report after you take this paper.
Let and be two set associative cache organizations that use LRU algorithm for cache block replacement. is a write-back cache and is a write-through cache.
Which of the following statements is/are FALSE?
Answer (official key): A, B, D
Worked solution: in your report after you take this paper.
Consider the augmented grammar with as the set of terminals.
If is the set of two LR(0) items
then
contains exactly __________ items.
Answer (official key): 5
Worked solution: in your report after you take this paper.
Which of the following statements is/are TRUE?
Answer (official key): B, C, D
Worked solution: in your report after you take this paper.
Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is ____________.
Answer (official key): 36
Worked solution: in your report after you take this paper.
What is printed by the following ANSI C program?
#include<stdio.h> int main(int argc, char *argv[]) { int x = 1, z[2] = {10, 11}; int *p = NULL; p = &x; *p = 10; p = &z[1]; *(&z[0] + 1) += 3; printf("%d, %d, %d\n", x, z[0], z[1]); return 0; }
Answer (official key): D
Worked solution: in your report after you take this paper.
Which of the following statements is/are TRUE for a group ?
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Which of the following statements is/are TRUE with respect to deadlocks?
Answer (official key): A, D
Worked solution: in your report after you take this paper.
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below.

What is the number of subnets inside the enterprise network?
Answer (official key): C
Worked solution: in your report after you take this paper.
Consider the following three relations in a relational database.
Which of the following relational algebra expressions return the set of s who own all the brands?
Answer (official key): A, B
Worked solution: in your report after you take this paper.
Consider a relation with the following three functional dependencies:
The number of superkeys in the relation is _____________.
Answer (official key): 8
Worked solution: in your report after you take this paper.
The value of the following limit is _____________.
Answer (official key): -0.5
Worked solution: in your report after you take this paper.
A cache memory that has a hit rate of has an access latency ns and miss penalty ns. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to ns, whereas the miss penalty is not affected.
The minimum hit rate (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _____________.
Answer (official key): 0.85
Worked solution: in your report after you take this paper.
The number of arrangements of six identical balls in three identical bins is ______.
Answer (official key): 7
Worked solution: in your report after you take this paper.
Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution.
The number of DNS query-response pairs involved in completely resolving the domain name is _____________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
Consider a simple undirected unweighted graph with at least three vertices. If is the adjacency matrix of the graph, then the number of 3-cycles in the graph is given by the trace of
Answer (official key): D
Worked solution: in your report after you take this paper.
Which one of the following is the closed form for the generating function of the sequence defined below?
Answer (official key): A
Worked solution: in your report after you take this paper.
Consider a digital display system (DDS) shown in the figure that displays the contents of register . A 16-bit code word is used to load a word in , either from or from . is a 1024-word memory segment and is a 32-word register file. Based on the value of mode bit , selects an input word to load in . and interface with the corresponding bits in the code word to choose the addressed word.

Which one of the following represents the functionality of , , and ?
Answer (official key): C
Worked solution: in your report after you take this paper.
Which one of the following statements is FALSE?
Answer (official key): C
Worked solution: in your report after you take this paper.
Let and denote read and write operations on a data element by transaction , respectively. Consider the schedule with four transactions:
Which one of the following serial schedules is conflict equivalent to ?
Answer (official key): A
Worked solution: in your report after you take this paper.
Consider the following languages:
Note that is the reversal of the string . Which of the following is/are TRUE?
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
What is printed by the following ANSI C program?
#include<stdio.h> int main(int argc, char *argv[]) { int a[3][3][3] = {{1, 2, 3, 4, 5, 6, 7, 8, 9}, {10, 11, 12, 13, 14, 15, 16, 17, 18}, {19, 20, 21, 22, 23, 24, 25, 26, 27}}; int i = 0, j = 0, k = 0; for ( i = 0; i < 3; i++ ){ for(k = 0; k < 3; k++ ) printf("%d ", a[i][j][k]); printf("\n"); } return 0; }
1 2 3 10 11 12 19 20 21
1 4 7 10 13 16 19 22 25
1 2 3 4 5 6 7 8 9
1 2 3 13 14 15 25 26 27
Answer (official key): A
Worked solution: in your report after you take this paper.
What is printed by the following ANSI C program?
#include<stdio.h> int main(int argc, char *argv[]){ char a = 'P'; char b = 'x'; char c = (a & b) + '*'; char d = (a | b) - '-'; char e = (a ^ b) + '+'; printf("%c %c %c\n", c, d, e); return 0; }
ASCII encoding for relevant characters is given below.
z K S122 75 83* - +P x +Answer (official key): A
Worked solution: in your report after you take this paper.
Consider four processes , , , and scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order , , , , all at time . There is exactly one context switch from to , exactly one context switch from to , and exactly two context switches from to . There is no context switch from to . Switching to a ready process after the termination of another process is also considered a context switch. Which one of the following is NOT possible as CPU burst time (in time units) of these processes?
Answer (official key): D
Worked solution: in your report after you take this paper.
The following simple undirected graph is referred to as the Peterson graph.

Which of the following statements is/are TRUE?

Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Consider the following languages:
Which of the following statements is/are FALSE?
Answer (official key): B, C, D
Worked solution: in your report after you take this paper.
Consider a simple undirected weighted graph , all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of is/are TRUE?
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Consider solving the following system of simultaneous equations using LU decomposition.
where and are denoted as
Which one of the following is the correct combination of values for , , and ?
Answer (official key): D
Worked solution: in your report after you take this paper.
Which of the following is/are undecidable?
Answer (official key): A, B, C
Consider three floating point numbers , and stored in registers RA, RB and RC, respectively as per IEEE-754 single precision floating point format. The 32-bit content stored in these registers (in hexadecimal form) are as follows.
Which one of the following is FALSE?
Answer (official key): B
Worked solution: in your report after you take this paper.
Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is set to 60 seconds, the minimum number of bits required for the sequence number field of the TCP header, to prevent the sequence number space from wrapping around during the MSL is____________.
Answer (official key): 33
Consider routing table of an organization’s router shown below:
| Subnet Number | Subnet Mask | Next Hop |
|---|---|---|
| 12.20.164.0 | 255.255.252.0 | R1 |
| 12.20.170.0 | 255.255.254.0 | R2 |
| 12.20.168.0 | 255.255.254.0 | Interface 0 |
| 12.20.166.0 | 255.255.254.0 | Interface 1 |
| default | R3 |
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
12.20.164.0/2012.20.164.0/2212.20.164.0/2112.20.168.0/22Answer (official key): B, D
Worked solution: in your report after you take this paper.
Consider a 100 Mbps link between an earth station (sender) and a satellite (receiver) at an altitude of 2100 km. The signal propagates at a speed of m/s. The time taken (in milliseconds, rounded off to two decimal places) for the receiver to completely receive a packet of 1000 bytes transmitted by the sender is _____________.
Answer (official key): 7.07 to 7.09
Worked solution: in your report after you take this paper.
Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits.
During the execution of a program, four data words , , , and are accessed in that order 10 times (i.e., PQRSPQRS...). Hence, there are 40 accesses to data cache altogether. Assume that the data cache is initially empty and no other data words are accessed by the program. The addresses of the first bytes of , , , and are 0xA248, 0xC28A, 0xCA8A, and 0xA262, respectively. For the execution of the above program, which of the following statements is/are TRUE with respect to the data cache?
Answer (official key): A, B, D
Worked solution: in your report after you take this paper.
Consider two file systems and , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in and also in .
Now, consider inserting a new block in the middle of the file (between 50th and 51st block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in and be and respectively, then the value of is_________.
Answer (official key): 153
Worked solution: in your report after you take this paper.
Consider the following grammar along with translation rules.
Here and are operators and id is a token that represents an integer and id_val represents the corresponding integer value. The set of non-terminals is and a subscripted non-terminal indicates an instance of the non-terminal.
Using this translation scheme, the computed value of for root of the parse tree for the expression
is _____________.
Answer (official key): 80
Worked solution: in your report after you take this paper.
Consider the queues containing four elements and containing none (shown as the Initial State in the figure). The only operations allowed on these two queues are Enqueue(Q,element) and Dequeue(Q). The minimum number of Enqueue operations on required to place the elements of in in reverse order (shown as the Final State in the figure) without using any additional storage is____________.

Answer (official key): 0
Worked solution: in your report after you take this paper.
Which of the properties hold for the adjacency matrix of a simple undirected unweighted graph having vertices?
Answer (official key): A
Worked solution: in your report after you take this paper.
Consider the relational database with the following four schemas and their respective instances.
Student(sNo, sName, dNo)
Dept(dNo, dName)
Course(cNo, cName, dNo)
Register(sNo, cNo)
Student
| sNo | sName | dNo |
|---|---|---|
| S01 | James | D01 |
| S02 | Rocky | D01 |
| S03 | Jackson | D02 |
| S04 | Jane | D01 |
| S05 | Milli | D02 |
Dept
| dNo | dName |
|---|---|
| D01 | CSE |
| D02 | EEE |
Course
| cNo | cName | dNo |
|---|---|---|
| C11 | DS | D01 |
| C12 | OS | D01 |
| C21 | DE | D02 |
| C22 | PT | D02 |
| C23 | CV | D03 |
Register
| sNo | cNo |
|---|---|
| S01 | C11 |
| S01 | C12 |
| S02 | C11 |
| S03 | C21 |
| S03 | C22 |
| S03 | C23 |
| S04 | C11 |
| S04 | C12 |
| S05 | C11 |
| S05 | C21 |
SQL Query:
SELECT * FROM Student AS S WHERE NOT EXISTS (SELECT cNo FROM Course WHERE dNo = 'D01' EXCEPT SELECT cNo FROM Register WHERE sNo = S.sNo)
The number of rows returned by the above SQL query is _____________.
Answer (official key): 2
Worked solution: in your report after you take this paper.
A processor X1 operating at 2 GHz has a standard 5-stage RISC instruction pipeline having a base CPI (cycles per instruction) of one without any pipeline hazards.
For a given program that has 30% branch instructions, control hazards incur 2 cycles stall for every branch. A new version of the processor X2 operating at same clock frequency has an additional branch predictor unit (BPU) that completely eliminates stalls for correctly predicted branches. There is neither any savings nor any additional stalls for wrong predictions. There are no structural hazards and data hazards for X1 and X2. If the BPU has a prediction accuracy of 80%, the speed up (rounded off to two decimal places) obtained by X2 over X1 in executing is____________.
Answer (official key): 1.42 to 1.45
Worked solution: in your report after you take this paper.
Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity.
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q−R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is _____________.

Answer (official key): 0.5
Which of the following is/are the eigenvector(s) for the matrix given below?
Answer (official key): A, C, D
Worked solution: in your report after you take this paper.
Let be a directed graph, where is the set of vertices and is the set of directed edges, as defined by the following adjacency matrix :
indicates a directed edge from node to node . A directed spanning tree of , rooted at , is defined as a subgraph of such that the undirected version of is a tree, and contains a directed path from to every other vertex in .
The number of such directed spanning trees rooted at vertex 5 is _____________.
Answer (official key): 24
Worked solution: in your report after you take this paper.
Consider the following recurrence:
Then, which of the following statements is/are TRUE?
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Consider a demand paging system with four page frames (initially empty) and LRU page replacement policy. For the following page reference string
the page fault rate, defined as the ratio of number of page faults to the number of memory accesses (rounded off to one decimal place) is_________.
Answer (official key): 0.6
Worked solution: in your report after you take this paper.