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.
“From where are they bringing their books? ________ bringing _______ books from _____.”
The words that best fill the blanks in the above sentence are:
(A)
Their, they’re, there
(B)
They’re, their, there
(C)
There, their, they’re
(D)
They’re, there, there
Answer (official key): B
Worked solution: in your report after you take this paper.
Q2 · General Aptitude · MCQ · 1 mark
What is the missing number in the following sequence?
2,12,60,240,720,1440,____,0
(A)
2880
(B)
1440
(C)
720
(D)
0
Answer (official key): B
Worked solution: in your report after you take this paper.
Q3 · General Aptitude · MCQ · 1 mark
“A _________ investigation can sometimes yield new facts, but typically organized ones are more successful.”
The word that best fills the blank in the above sentence is:
(A)
meandering
(B)
timely
(C)
consistent
(D)
systematic
Answer (official key): A
Worked solution: in your report after you take this paper.
Q4 · General Aptitude · MCQ · 1 mark
The area of a square is d. What is the area of the circle which has the diagonal of the square as its diameter?
(A)
πd
(B)
πd²
(C)
(1/4)πd²
(D)
(1/2)πd
Answer (official key): D
Worked solution: in your report after you take this paper.
Q5 · General Aptitude · MCQ · 1 mark
What would be the smallest natural number which when divided either by 20 or by 42 or by 76 leaves a remainder of 7 in each case?
(A)
3047
(B)
6047
(C)
7987
(D)
63847
Answer (official key): C
Worked solution: in your report after you take this paper.
Q6 · General Aptitude · MCQ · 2 marks
A six sided unbiased die with four green faces and two red faces is rolled seven times. Which of the following combinations is the most likely outcome of the experiment?
In a party, 60% of the invited guests are male and 40% are female. If 80% of the invited guests attended the party and if all the invited female guests attended, what would be the ratio of males to females among the attendees in the party?
(A)
2:3
(B)
1:1
(C)
3:2
(D)
2:1
Answer (official key): B
Worked solution: in your report after you take this paper.
Q9 · General Aptitude · MCQ · 2 marks
In appreciation of the social improvements completed in a town, a wealthy philanthropist decided to gift Rs 750 to each male senior citizen in the town and Rs 1000 to each female senior citizen.
Altogether, there were 300 senior citizens eligible for this gift. However, only 98th of the eligible men and 32rd of the eligible women claimed the gift.
How much money, in Rupees, did the philanthropist give away in total?
(A)
1,50,000
(B)
2,00,000
(C)
1,75,000
(D)
1,51,000
Answer (official key): B
Worked solution: in your report after you take this paper.
Q10 · General Aptitude · MCQ · 2 marks
If pqr=0 and
p−x=q1,q−y=r1,r−z=p1,
what is the value of the product xyz?
(A)
-1
(B)
1/(pqr)
(C)
1
(D)
pqr
Answer (official key): C
Worked solution: in your report after you take this paper.
Q11 · Programming and Data Structures · Numerical · 1 mark
Consider the following C program:
#include <stdio.h>
int counter = 0;
int calc(int a, int b) {
int c;
counter++;
if (b == 3)
return (a*a*a);
else {
c = calc(a, b/3);
return (c*c*c);
}
}
int main() {
calc(4, 81);
printf("%d", counter);
}
The output of this program is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
Q12 · Linear Algebra · Numerical · 1 mark
Consider a matrix
A=uvT
where
u=[12],v=[11].
Here, vT denotes the transpose of v. The largest eigenvalue of A is __________.
Answer (official key): 3
Worked solution: in your report after you take this paper.
Q13 · Theory of Computation · MCQ · 1 mark
The set of all recursively enumerable languages is:
(A)
closed under complementation.
(B)
closed under intersection.
(C)
a subset of the set of all recursive languages.
(D)
an uncountable set.
Answer (official key): B
Worked solution: in your report after you take this paper.
Q14 · Digital Logic · MCQ · 1 mark
Let ⊕ and ⊙ denote the Exclusive OR and Exclusive NOR operations, respectively.
Which one of the following is NOT CORRECT?
(A)
P⊕Q=P⊙Q
(B)
P⊕Q=P⊙Q
(C)
P⊕Q=P⊕Q
(D)
(P⊕P)⊕Q=(P⊙P)⊙Q
Answer (official key): D
Worked solution: in your report after you take this paper.
Q15 · Databases · MCQ · 1 mark
In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2.
Assume that E1 and E2 participate totally in R and that the cardinality of E1 is greater than the cardinality of E2.
Which one of the following is true about R?
(A)
Every entity in E1 is associated with exactly one entity in E2.
(B)
Some entity in E1 is associated with more than one entity in E2.
(C)
Every entity in E2 is associated with exactly one entity in E1.
(D)
Every entity in E2 is associated with at most one entity in E1.
Answer (official key): A
Worked solution: in your report after you take this paper.
Q16 · Computer Networks · MCQ · 1 mark
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS denotes the Maximum Segment Size.
(i) The cwnd increases by 2 MSS on every successful acknowledgment.
(ii) The cwnd approximately doubles on every successful acknowledgement.
(iii) The cwnd increases by 1 MSS every round trip time.
(iv) The cwnd approximately doubles every round trip time.
Which one of the following is correct?
(A)
Only (ii) and (iii) are true
(B)
Only (i) and (iii) are true
(C)
Only (iv) is true
(D)
Only (i) and (iv) are true
Answer (official key): C
Worked solution: in your report after you take this paper.
Q17 · Computer Organization and Architecture · MCQ · 1 mark
The following are some events that occur after a device controller issues an interrupt while process L is under execution.
(P) The processor pushes the process status of L onto the control stack.
(Q) The processor finishes the execution of the current instruction.
(R) The processor executes the interrupt service routine.
(S) The processor pops the process status of L from the control stack.
(T) The processor loads the new PC value based on the interrupt.
Which one of the following is the correct order in which the events above occur?
(A)
QPTRS
(B)
PTRSQ
(C)
TRPQS
(D)
QTPRS
Answer (official key): A
Worked solution: in your report after you take this paper.
Q18 · Discrete Mathematics · MCQ · 1 mark
Which one of the following is a closed form expression for the generating function of the sequence {an}, where
an=2n+3
for all n=0,1,2,…?
(A)
(1−x)23
(B)
(1−x)23x
(C)
(1−x)22−x
(D)
(1−x)23−x
Answer (official key): D
Worked solution: in your report after you take this paper.
Q19 · Programming and Data Structures · Numerical · 1 mark
The postorder traversal of a binary tree is:
8,9,6,7,4,5,2,3,1
The inorder traversal of the same tree is:
8,6,9,4,7,2,5,1,3
The height of a tree is the length of the longest path from the root to any leaf. The height of the binary tree above is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
Q20 · Computer Organization and Architecture · Numerical · 1 mark
A 32-bit wide main memory unit with a capacity of 1 GB is built using 256M×4-bit DRAM chips. The number of rows of memory cells in the DRAM chip is 214.
The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds.
The percentage, rounded to the closest integer, of the time available for performing the memory read/write operations in the main memory unit is __________.
Answer (official key): 59 to 60
Worked solution: in your report after you take this paper.
Q21 · Programming and Data Structures · MCQ · 1 mark
A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure.
Let n denote the number of nodes in the queue. Let enqueue be implemented by inserting a new node at the head, and dequeue be implemented by deletion of a node from the tail.
Which one of the following is the time complexity of the most time-efficient implementation of enqueue and dequeue, respectively, for this data structure?
(A)
Θ(1),Θ(1)
(B)
Θ(1),Θ(n)
(C)
Θ(n),Θ(1)
(D)
Θ(n),Θ(n)
Answer (official key): B
Worked solution: in your report after you take this paper.
Q22 · Compiler Design · MCQ · 1 mark
Which one of the following statements is FALSE?
(A)
Context-free grammar can be used to specify both lexical and syntax rules.
(B)
Type checking is done before parsing.
(C)
High-level language programs can be translated to different Intermediate Representations.
(D)
Arguments to a function can be passed using the program stack.
Answer (official key): B
Worked solution: in your report after you take this paper.
Q23 · Databases · MCQ · 1 mark
Consider the following two tables and four queries in SQL.
Book(isbn, bname)
Stock(isbn, copies)
Query 1:
SELECT B.isbn, S.copies
FROM Book B INNER JOIN Stock S
ON B.isbn = S.isbn;
Query 2:
SELECT B.isbn, S.copies
FROM Book B LEFT OUTER JOIN Stock S
ON B.isbn = S.isbn;
Query 3:
SELECT B.isbn, S.copies
FROM Book B RIGHT OUTER JOIN Stock S
ON B.isbn = S.isbn;
Query 4:
SELECT B.isbn, S.copies
FROM Book B FULL OUTER JOIN Stock S
ON B.isbn = S.isbn;
Which one of the queries above is certain to have an output that is a superset of the outputs of the other three queries?
(A)
Query 1
(B)
Query 2
(C)
Query 3
(D)
Query 4
Answer (official key): D
Worked solution: in your report after you take this paper.
Q24 · Theory of Computation · MCQ · 1 mark
Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is equivalent to N.
Which one of the following is necessarily true?
(A)
k≥2n
(B)
k≥n
(C)
k≤n2
(D)
k≤2n
Answer (official key): D
Worked solution: in your report after you take this paper.
Q25 · Computer Networks · MCQ · 1 mark
Not in GATE 2027 syllabus: UDP
Match the following:
Field
Length in bits
P. UDP Header's Port Number
I. 48
Q. Ethernet MAC Address
II. 8
R. IPv6 Next Header
III. 32
S. TCP Header's Sequence Number
IV. 16
(A)
P-III, Q-IV, R-II, S-I
(B)
P-II, Q-I, R-IV, S-III
(C)
P-IV, Q-I, R-II, S-III
(D)
P-IV, Q-I, R-III, S-II
Answer (official key): C
Worked solution: in your report after you take this paper.
Q26 · Computer Networks · Numerical · 1 mark
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (=109 bits per second). The session starts with a sequence number of 1234.
The minimum time, in seconds, rounded to the closest integer, before this sequence number can be used again is __________.
Answer (official key): 34 to 35
Worked solution: in your report after you take this paper.
Q27 · Discrete Mathematics · Numerical · 1 mark
Let G be a finite group on 84 elements. The size of a largest possible proper subgroup of G is __________.
Answer (official key): 42
Worked solution: in your report after you take this paper.
Q28 · Operating System · MCQ · 1 mark
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is M units if the corresponding memory page is available in memory, and D units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is X units.
Which one of the following is the correct expression for the page fault rate experienced by the process?
(A)
X−MD−M
(B)
D−MX−M
(C)
D−MD−X
(D)
D−XX−M
Answer (official key): B
Worked solution: in your report after you take this paper.
Q29 · Probability and Statistics · Numerical · 1 mark
Two people, P and Q, decide to independently roll two identical dice, each with 6 faces, numbered 1 to 6. The person with the lower number wins. In case of a tie, they roll the dice repeatedly until there is no tie.
Define a trial as a throw of the dice by P and Q. Assume that all 6 numbers on each dice are equi-probable and that all trials are independent.
The probability, rounded to 3 decimal places, that one of them wins on the third trial is __________.
Answer (official key): 0.021 to 0.024
Worked solution: in your report after you take this paper.
Q30 · Programming and Data Structures · MCQ · 1 mark
Worked solution: in your report after you take this paper.
Q31 · Operating System · Numerical · 1 mark
Consider a system with 3 processes that share 4 instances of the same resource type. Each process can request a maximum of K instances. Resource instances can be requested and released only one at a time.
The largest value of K that will always avoid deadlock is __________.
Answer (official key): 2
Worked solution: in your report after you take this paper.
Q32 · Computer Organization and Architecture · MCQ · 1 mark
Consider the following processor design characteristics.
I. Register-to-register arithmetic operations only
II. Fixed-length instruction format
III. Hardwired control unit
Which of the characteristics above are used in the design of a RISC processor?
(A)
I and II only
(B)
II and III only
(C)
I and III only
(D)
I, II and III
Answer (official key): D
Worked solution: in your report after you take this paper.
Q33 · Calculus · Numerical · 1 mark
The value of
∫0π/4xcos(x2)dx
correct to three decimal places, assuming that π=3.14, is __________.
Answer (official key): 0.27 to 0.3
Worked solution: in your report after you take this paper.
Q34 · Digital Logic · Numerical · 1 mark
Consider a sequential circuit with two positive-edge-triggered D flip-flops connected in series.
The input in is connected to the D input of the first flip-flop.
The output Q of the first flip-flop is connected to the D input of the second flip-flop.
The output Q of the second flip-flop is out.
Both flip-flops share the same clock.
The number of states in the state transition diagram of this circuit that have a transition back to the same state on some value of in is __________.
Answer (official key): 2
Worked solution: in your report after you take this paper.
Q35 · Discrete Mathematics · Numerical · 1 mark
The chromatic number of the following graph is __________.
Answer (official key): 3
Worked solution: in your report after you take this paper.
Q36 · Algorithms · MCQ · 2 marks
Assume that multiplying a matrix G1 of dimension p×q with another matrix G2 of dimension q×r requires pqr scalar multiplications.
Computing the product of n matrices G1G2G3…Gn can be done by parenthesizing in different ways. Define GiGi+1 as an explicitly computed pair for a given parenthesization if they are directly multiplied.
For example, in the matrix multiplication chain G1G2G3G4G5G6 using parenthesization
(G1(G2G3))(G4(G5G6)),
G2G3 and G5G6 are the only explicitly computed pairs.
Consider a matrix multiplication chain F1F2F3F4F5, where matrices F1,F2,F3,F4 and F5 are of dimensions 2×25, 25×3, 3×16, 16×1 and 1×1000, respectively.
In the parenthesization of F1F2F3F4F5 that minimizes the total number of scalar multiplications, the explicitly computed pairs is/are:
(A)
F1F2 and F3F4 only
(B)
F2F3 only
(C)
F3F4 only
(D)
F1F2 and F4F5 only
Answer (official key): C
Worked solution: in your report after you take this paper.
Q37 · Theory of Computation · MCQ · 2 marks
Consider the following problems. L(G) denotes the language generated by a grammar G. L(M) denotes the language accepted by a machine M.
I. For an unrestricted grammar G and a string w, whether w∈L(G).
II. Given a Turing machine M, whether L(M) is regular.
III. Given two grammars G1 and G2, whether L(G1)=L(G2).
IV. Given an NFA N, whether there is a deterministic PDA P such that N and P accept the same language.
Which one of the following statements is correct?
(A)
Only I and II are undecidable
(B)
Only III is undecidable
(C)
Only II and IV are undecidable
(D)
Only I, II and III are undecidable
Answer (official key): D
Worked solution: in your report after you take this paper.
Q38 · Compiler Design · MCQ · 2 marks
Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #.
Which one of the following is correct for the given parse tree?
(A)
$ has higher precedence and is left associative; # is right associative
(B)
# has higher precedence and is left associative; $ is right associative
(C)
$ has higher precedence and is left associative; # is left associative
(D)
# has higher precedence and is right associative; $ is left associative
Answer (official key): A
Worked solution: in your report after you take this paper.
Q39 · Programming and Data Structures · MCQ · 2 marks
Consider the following C code. Assume that unsigned long int type length is 64 bits.
unsigned long int fun(unsigned long int n) {
unsigned long int i, j = 0, sum = 0;
for (i = n; i > 1; i = i/2) j++;
for ( ; j > 1; j = j/2) sum++;
return(sum);
}
The value returned when we call fun with the input 240 is:
(A)
4
(B)
5
(C)
6
(D)
40
Answer (official key): B
Worked solution: in your report after you take this paper.
Q40 · Compiler Design · MCQ · 2 marks
A lexical analyzer uses the following patterns to recognize three tokens T1,T2 and T3 over the alphabet {a,b,c}.
T1:a?(b∣c)∗aT2:b?(a∣c)∗bT3:c?(b∣a)∗c
Note that x? means 0 or 1 occurrence of the symbol x. Note also that the analyzer outputs the token that matches the longest possible prefix.
If the string bbaacabc is processed by the analyzer, which one of the following is the sequence of tokens it outputs?
(A)
T1T2T3
(B)
T1T1T3
(C)
T2T1T3
(D)
T3T3
Answer (official key): D
Worked solution: in your report after you take this paper.
Q41 · Theory of Computation · MCQ · 2 marks
Consider the following languages:
I. {ambncpdq∣m+p=n+q,where m,n,p,q≥0}
II. {ambncpdq∣m=n and p=q,where m,n,p,q≥0}
III. {ambncpdq∣m=n=p and p=q,where m,n,p,q≥0}
IV. {ambncpdq∣mn=p+q,where m,n,p,q≥0}
Which of the languages above are context-free?
(A)
I and IV only
(B)
I and II only
(C)
II and III only
(D)
II and IV only
Answer (official key): B
Worked solution: in your report after you take this paper.
Q42 · Programming and Data Structures · MCQ · 2 marks
Worked solution: in your report after you take this paper.
Q43 · Computer Organization and Architecture · MCQ · 2 marks
Consider the unsigned 8-bit fixed point binary number representation below:
b7b6b5b4b3.b2b1b0
where the position of the binary point is between b3 and b2. Assume b7 is the most significant bit.
Some of the decimal numbers listed below cannot be represented exactly in the above representation:
(i) 31.500
(ii) 0.875
(iii) 12.100
(iv) 3.001
Which one of the following statements is true?
(A)
None of (i), (ii), (iii), (iv) can be exactly represented
(B)
Only (ii) cannot be exactly represented
(C)
Only (iii) and (iv) cannot be exactly represented
(D)
Only (i) and (ii) cannot be exactly represented
Answer (official key): C
Worked solution: in your report after you take this paper.
Q44 · Operating System · MCQ · 2 marks
Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is N.
Three semaphores empty, full and mutex are defined with respective initial values of 0, N and 1.
Semaphore empty denotes the number of available slots in the buffer for the consumer to read from. Semaphore full denotes the number of available slots in the buffer for the producer to write to.
The placeholder variables, denoted by P, Q, R and S, in the code below can be assigned either empty or full. The valid semaphore operations are wait() and signal().
Producer:
do {
wait(P);
wait(mutex);
// Add item to buffer
signal(mutex);
signal(Q);
} while(1);
Consumer:
do {
wait(R);
wait(mutex);
// Consume item from buffer
signal(mutex);
signal(S);
} while(1);
Which one of the following assignments to P, Q, R and S will yield the correct solution?
(A)
P: full, Q: full, R: empty, S: empty
(B)
P: empty, Q: empty, R: full, S: full
(C)
P: full, Q: empty, R: empty, S: full
(D)
P: empty, Q: full, R: full, S: empty
Answer (official key): C
Worked solution: in your report after you take this paper.
Q45 · Discrete Mathematics · MCQ · 2 marks
Consider the first-order logic sentence
φ≡∃s∃t∃u∀v∀w∀x∀yψ(s,t,u,v,w,x,y)
where ψ(s,t,u,v,w,x,y) is a quantifier-free first-order logic formula using only predicate symbols, and possibly equality, but no function symbols. Suppose φ has a model with a universe containing 7 elements.
Which one of the following statements is necessarily true?
(A)
There exists at least one model of φ with universe of size less than or equal to 3.
(B)
There exists no model of φ with universe of size less than or equal to 3.
(C)
There exists no model of φ with universe of size greater than 7.
(D)
Every model of φ has a universe of size equal to 7.
In a system, there are three types of resources: E, F and G. Four processes P0,P1,P2 and P3 execute concurrently.
At the outset, the processes have declared their maximum resource requirements using a matrix named Max. The number of instances of the resources allocated to the various processes at any given state is given by a matrix named Allocation.
Consider a state of the system with the Allocation matrix as shown below, and in which 3 instances of E and 3 instances of F are the only resources available.
Process
Allocation E
Allocation F
Allocation G
Max E
Max F
Max G
P0
1
0
1
4
3
1
P1
1
1
2
2
1
4
P2
1
0
3
1
3
3
P3
2
0
0
5
4
1
From the perspective of deadlock avoidance, which one of the following is true?
(A)
The system is in safe state.
(B)
The system is not in safe state, but would be safe if one more instance of E were available.
(C)
The system is not in safe state, but would be safe if one more instance of F were available.
(D)
The system is not in safe state, but would be safe if one more instance of G were available.
Answer (official key): A
Worked solution: in your report after you take this paper.
Q47 · Linear Algebra · MCQ · 2 marks
Consider a matrix P whose only eigenvectors are the multiples of
[14].
Consider the following statements.
I. P does not have an inverse.
II. P has a repeated eigenvalue.
III. P cannot be diagonalized.
Which one of the following options is correct?
(A)
Only I and III are necessarily true
(B)
Only II is necessarily true
(C)
Only I and II are necessarily true
(D)
Only II and III are necessarily true
Answer (official key): D
Worked solution: in your report after you take this paper.
Q48 · Computer Organization and Architecture · MCQ · 2 marks
The size of the physical address space of a processor is 2P bytes. The word length is 2W bytes. The capacity of cache memory is 2N bytes. The size of each cache block is 2M words.
For a K-way set-associative cache memory, the length, in number of bits, of the tag field is:
(A)
P−N−log2K
(B)
P−N+log2K
(C)
P−N−M−W−log2K
(D)
P−N−M−W+log2K
Answer (official key): B
Worked solution: in your report after you take this paper.
Q49 · Algorithms · MCQ · 2 marks
Let G be a simple undirected graph. Let TD be a depth-first search tree of G. Let TB be a breadth-first search tree of G.
Consider the following statements.
I. No edge of G is a cross edge with respect to TD. A cross edge in G is between two nodes neither of which is an ancestor of the other in TD.
II. For every edge (u,v) of G, if u is at depth i and v is at depth j in TB, then ∣i−j∣=1.
Which of the statements above must necessarily be true?
(A)
I only
(B)
II only
(C)
Both I and II
(D)
Neither I nor II
Answer (official key): A
Worked solution: in your report after you take this paper.
Q50 · Discrete Mathematics · MCQ · 2 marks
Let N be the set of natural numbers. Consider the following sets.
P: Set of rational numbers, positive and negative.
Q: Set of functions from {0,1} to N.
R: Set of functions from N to {0,1}.
S: Set of finite subsets of N.
Which of the sets above are countable?
(A)
Q and S only
(B)
P and S only
(C)
P and R only
(D)
P, Q and S only
Answer (official key): D
Worked solution: in your report after you take this paper.
Q51 · Theory of Computation · Numerical · 2 marks
Given a language L, define Li as follows:
L0={ϵ}Li=Li−1⋅Lfor all i>0.
The order of a language L is defined as the smallest k such that
Lk=Lk+1.
Consider the language L1 over alphabet {0} accepted by the following automaton.
Consider the weights and values of items listed below. There is only one unit of each item.
Item number
Weight (in Kgs)
Value (in Rupees)
1
10
60
2
7
28
3
4
20
4
2
24
The task is to pick a subset of these items such that their total weight is no more than 11 Kgs and their total value is maximized. No item may be split.
The total value of items picked by an optimal algorithm is denoted by Vopt.
A greedy algorithm sorts the items by their value-to-weight ratios in descending order and packs them greedily, starting from the first item in the ordered list. The total value of items picked by the greedy algorithm is denoted by Vgreedy.
The value of
Vopt−Vgreedy
is __________.
Answer (official key): 16
Worked solution: in your report after you take this paper.
Q54 · Computer Networks · Numerical · 2 marks
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header.
The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes.
Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes.
Assume that the fragmentation offset value stored in the first fragment is 0.
The fragmentation offset value stored in the third fragment is __________.
Answer (official key): 144
Worked solution: in your report after you take this paper.
Q55 · Computer Organization and Architecture · Numerical · 2 marks
A processor has 16 integer registers (R0,R1,…,R15) and 64 floating point registers (F0,F1,…,F63).
It uses a 2-byte instruction format.
There are four categories of instructions:
Type-1: 4 instructions, each with 3 integer register operands (3R).
Type-2: 8 instructions, each with 2 floating point register operands (2F).
Type-3: 14 instructions, each with one integer register operand and one floating point register operand (1R+1F).
Type-4: N instructions, each with one floating point register operand (1F).
The maximum value of N is __________.
Answer (official key): 32
Worked solution: in your report after you take this paper.
Q56 · Computer Networks · Numerical · 2 marks
Consider a simple communication system where multiple nodes are connected by a shared broadcast medium, like Ethernet or wireless.
The nodes use the following carrier-sense based medium access protocol:
A node that receives a packet to transmit will carrier-sense the medium for 5 units of time. If the node does not detect any other transmission in this duration, it starts transmitting its packet in the next time unit.
If the node detects another transmission, it waits until this other transmission finishes, and then begins to carrier-sense for 5 time units again.
Once they start to transmit, nodes do not perform any collision detection and continue transmission even if a collision occurs.
All transmissions last for 20 units of time. The transmission signal travels at the speed of 10 meters per unit time in the medium.
Assume that the system has two nodes P and Q, located at a distance d meters from each other.
P starts transmitting a packet at time t=0 after successfully completing its carrier-sense phase. Node Q has a packet to transmit at time t=0 and begins to carrier-sense the medium.
The maximum distance d, in meters, rounded to the closest integer, that allows Q to successfully avoid a collision between its proposed transmission and P's ongoing transmission is __________.
Answer (official key): 50
Worked solution: in your report after you take this paper.
Q57 · Databases · MCQ · 2 marks
Consider the relations r(A,B) and s(B,C), where s.B is a primary key and r.B is a foreign key referencing s.B.
Consider the query:
Q:r⋈(σB<5(s))
Let LOJ denote the natural left outer-join operation. Assume that r and s contain no null values.
Which one of the following queries is NOT equivalent to Q?
(A)
σB<5(r⋈s)
(B)
σB<5(rLOJs)
(C)
rLOJ(σB<5(s))
(D)
σB<5(r)LOJs
Answer (official key): C
Worked solution: in your report after you take this paper.
Q58 · Discrete Mathematics · Numerical · 2 marks
Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation of the numbers 1,2,…,100.
There is an edge between vertices u and v if and only if the label of u can be obtained by swapping two adjacent numbers in the label of v.
Let y denote the degree of a vertex in G, and z denote the number of connected components in G.
Then,
y+10z=_____.
Answer (official key): 109
Worked solution: in your report after you take this paper.
Q59 · Databases · MCQ · 2 marks
Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys.
Schema I:Registration(rollno, courses)
Field courses is a set-valued attribute containing the set of courses a student has registered for.
Which one of the relational schemas above is in 3NF but not in BCNF?
(A)
Schema I
(B)
Schema II
(C)
Schema III
(D)
Schema IV
Answer (official key): B
Worked solution: in your report after you take this paper.
Q60 · Algorithms · Numerical · 2 marks
Consider the following undirected graph G:
Choose a value for x that will maximize the number of minimum weight spanning trees (MWSTs) of G.
The number of MWSTs of G for this value of x is __________.
Answer (official key): 4
Worked solution: in your report after you take this paper.
Q61 · Probability and Statistics · Numerical · 2 marks
Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (H), medium (M) and low (L).
The conditional probabilities for Delhi's temperature given Guwahati's temperature are:
Guwahati \ Delhi
HD
MD
LD
HG
0.40
0.48
0.12
MG
0.10
0.65
0.25
LG
0.01
0.50
0.49
It is known that:
P(HG)=0.2,P(MG)=0.5,P(LG)=0.3.
The probability, correct to two decimal places, that Guwahati has high temperature given that Delhi has high temperature is __________.
Answer (official key): 0.6 to 0.62
Worked solution: in your report after you take this paper.
Q62 · Computer Organization and Architecture · Numerical · 2 marks
The instruction pipeline of a RISC processor has the following stages:
Instruction Fetch (IF)
Instruction Decode (ID)
Operand Fetch (OF)
Perform Operation (PO)
Writeback (WB)
The IF, ID, OF and WB stages take 1 clock cycle each for every instruction.
Consider a sequence of 100 instructions. In the PO stage:
40 instructions take 3 clock cycles each,
35 instructions take 2 clock cycles each,
the remaining 25 instructions take 1 clock cycle each.
Assume that there are no data hazards and no control hazards.
The number of clock cycles required for completion of execution of the sequence of instructions is __________.
Answer (official key): 219
Worked solution: in your report after you take this paper.
Q63 · Programming and Data Structures · Numerical · 2 marks
Consider the following program written in pseudo-code. Assume that x and y are integers.
Count(x,y) {
if (y != 1) {
if (x != 1) {
print("*");
Count(x/2, y);
}
else {
y = y - 1;
Count(1024, y);
}
}
}
The number of times that the print statement is executed by the call
Count(1024,1024)
is __________.
Answer (official key): 10230
Worked solution: in your report after you take this paper.
Q64 · Operating System · Numerical · 2 marks
Consider a storage disk with 4 platters, numbered 0, 1, 2 and 3, 200 cylinders, numbered 0, 1, ..., 199, and 256 sectors per track, numbered 0, 1, ..., 255.
The following 6 disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time:
Currently the head is positioned at sector number 100 of cylinder 80, and is moving towards higher cylinder numbers.
The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts.
Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is __________.
Answer (official key): 85
Worked solution: in your report after you take this paper.
Q65 · Programming and Data Structures · Numerical · 2 marks
The number of possible min-heaps containing each value from
{1,2,3,4,5,6,7}
exactly once is __________.
Answer (official key): 80
Worked solution: in your report after you take this paper.