Question : 1
We reached the station late, and _______ missed the train.
near
nearly
utterly
mostly
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 2
Kind : _______ : : Often : Frequently
(By word meaning)
Mean
Type
Cruel
Kindly
Correct Answer : MTA
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 3
A series of natural numbers 𝐹1, 𝐹2, 𝐹3, 𝐹4, 𝐹5, 𝐹6, 𝐹7, … obeys 𝐹𝑛+1 = 𝐹𝑛 + 𝐹𝑛−1 for all integers 𝑛 ≥ 2 .
If 𝐹6 = 37, and 𝐹7 = 60, then what is 𝐹1 ?
4
5
8
9
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 4
A survey for a certain year found that 90% of pregnant women received medical care at least once before giving birth. Of these women, 60% received medical care from doctors, while 40% received medical care from other healthcare providers.
Given this information, which one of the following statements can be inferred with certainty?
More than half of the pregnant women received medical care at least once from a doctor.
Less than half of the pregnant women received medical care at least once from a doctor.
More than half of the pregnant women received medical care at most once from a doctor.
Less than half of the pregnant women received medical care at most once from a doctor.
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 5
Looking at the surface of a smooth 3-dimensional object from the outside, which one of the following options is TRUE?
The surface of the object must be concave everywhere.
The surface of the object must be convex everywhere.
The surface of the object may be concave in some places and convex in other places.
The object can have edges, but no corners.
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 6
The country of Zombieland is in distress since more than 75% of its working population is suffering from serious health issues. Studies conducted by competent health experts concluded that a complete lack of physical exercise among its working population was one of the leading causes of their health issues. As one of the measures to address the problem, the Government of Zombieland has decided to provide monetary incentives to those who ride bicycles to work.
Based only on the information provided above, which one of the following statements can be logically inferred with certainty?
All the working population of Zombieland will henceforth ride bicycles to work.
Riding bicycles will ensure that all of the working population of Zombieland is free of health issues.
The health experts suggested to the Government of Zombieland to declare riding bicycles as mandatory.
The Government of Zombieland believes that riding bicycles is a form of physical exercise.
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 7
Consider two functions of time (𝑡),
𝑓(𝑡) = 0.01 𝑡2
𝑔(𝑡) = 4𝑡
where 0 < 𝑡 < ∞.
Now consider the following two statements:
(i) For some 𝑡 > 0, 𝑔(𝑡) > 𝑓(𝑡).
(ii) There exists a 𝑇, such that 𝑓(𝑡) > 𝑔(𝑡) for all 𝑡 > 𝑇.
Which one of the following options is TRUE?
only (i) is correct
only (ii) is correct
both (i) and (ii) are correct
neither (i) nor (ii) is correct
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 8
Which one of the following sentence sequences creates a coherent narrative?
(i) Once on the terrace, on her way to her small room in the corner, she notices the man right away.
(ii) She begins to pant by the time she has climbed all the stairs.
(iii) Mina has bought vegetables and rice at the market, so her bags are heavy.
(iv) He was leaning against the parapet, watching the traffic below.
(i), (ii), (iv), (iii)
(ii), (iii), (i), (iv)
(iv), (ii), (i), (iii)
(iii), (ii), (i), (iv)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 9
f(𝑥) and g(𝑦) are functions of x and y, respectively, and f(𝑥) = g(𝑦) for all real values of 𝑥 and 𝑦. Which one of the following options is necessarily TRUE for all x and y?
f(x)=0 and g(y)=0
f(x)=g(y)=constant
f(x)=constant and g(y) not constant
f(x)+g(y)=f(x)-g(y)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 10
Which one of the options best describes the transformation of the 2-dimensional figure P to Q, and then to R, as shown?
Operation 1: A clockwise rotation by 90º about an axis perpendicular to the plane of the figure
Operation 2: A reflection along a horizontal line
Operation 1: A counter clockwise rotation by 90º about an axis perpendicular to the plane of the figure
Operation 2: A reflection along a horizontal line
Operation 1: A clockwise rotation by 90º about an axis perpendicular to the plane of the figure
Operation 2: A reflection along a vertical line
Operation 1: A counter clockwise rotation by 180º about an axis perpendicular to the plane of the figure
Operation 2: A reflection along a vertical line
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 11
Consider the following statements regarding the front-end and back-end of a compiler.
S1: The front-end includes phases that are independent of the target hardware.
S2: The back-end includes phases that are specific to the target hardware.
S3: The back-end includes phases that are specific to the programming language used in the source code.
Identify the CORRECT option.
Only S1 is TRUE.
Only S1 and S2 are TRUE.
S1, S2, and S3 are all TRUE.
Only S1 and S3 are TRUE.
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 12
Which one of the following sequences when stored in an array at locations A[1],...,A[10] forms a max-heap?
23, 17, 10, 6, 13, 14, 1, 5, 7, 12
23, 17, 14, 7, 13, 10, 1, 5, 6, 12
23, 17, 14, 6, 13, 10, 1, 5, 7, 15
23, 14, 17, 1, 10, 13, 16, 12, 7, 5
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 13
Let SLLdel be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel be another function that deletes a node in a doubly-linked list given a pointer to the node and a pointer to the head of the list. Let n denote the number of nodes in each of the linked lists. Which one of the following choices is TRUE about the worst-case time complexity of SLLdel and DLLdel?
SLLdel is O(1) and DLLdel is O(n)
Both SLLdel and DLLdel are O(log(n))
Both SLLdel and DLLdel are O(1)
SLLdel is O(n) and DLLdel is O(1)
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 14
Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s, p, q, r}, with s being the start state and p being the only final state.
Which one of the following regular expressions correctly describes the language accepted by A?
1(0∗11)∗
0(0 + 1)∗
1(0 + 11)∗
1(110∗)∗
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 15
The Lucas sequence Ln is defined by the recurrence relation:
Ln = Ln−1 + Ln−2, for n ≥ 3,
with L1 = 1 and L2 = 3.
Which one of the options given is TRUE?
\(L_n = \left(\frac{1 + \sqrt{5}}{2}\right)^n + \left(\frac{1 - \sqrt{5}}{2}\right)^n \)
\(L_n = \left(\frac{1 + \sqrt{5}}{2}\right)^n - \left(\frac{1 - \sqrt{5}}{3}\right)^n \)
\(L_n = \left(\frac{1 + \sqrt{5}}{2}\right)^n + \left(\frac{1 - \sqrt{5}}{3}\right)^n \)
\(L_n = \left(\frac{1 + \sqrt{5}}{2}\right)^n - \left(\frac{1 - \sqrt{5}}{2}\right)^n \)
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 16
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Number of attributes of its relation schema.
Number of tuples stored in the relation.
Number of entries in the relation.
Number of distinct domains of its relation schema.
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 17
Suppose two hosts are connected by a point-to-point link and they are configured to use Stop-and-Wait protocol for reliable data transfer. Identify in which one of the following scenarios, the utilization of the link is the lowest.
Longer link length and lower transmission rate
Longer link length and higher transmission rate
Shorter link length and lower transmission rate
Shorter link length and higher transmission rate
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 18
Let
\(A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 4 & 1 & 2 & 3 \\ 3 & 4 & 1 & 2 \\ 2 & 3 & 4 & 1 \\ \end{bmatrix} \)
and
\(B = \begin{bmatrix} 3 & 4 & 1 & 2 \\ 4 & 1 & 2 & 3 \\ 1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 1 \\ \end{bmatrix} \)
Let det(A) and det(B) denote the determinants of the matrices A and B, respectively.
Which one of the options given below is TRUE?
det(A) = det(B)
det(B) = −det(A)
det(A)=0
det(AB) = det(A) + det(B)
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 19
Consider the following definition of a lexical token id for an identifier in a programming language, using extended regular expressions:
letter → [A-Za-z]
digit → [0-9]
id → letter (letter | digit)∗
Which one of the following Non-deterministic Finite-state Automata with - transitions accepts the set of valid identifiers? (A double-circle denotes a final state)
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 20
An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries to maximize the number of collisions. Let k be the number of keys, m be the number of slots in the hash table, and k>m.
Which one of the following is the best hashing strategy to counteract the adversary?
Division method, i.e., use the hash function h(k) = k mod m.
Multiplication method i.e use the hash function h(k)=[m(kA)-kA], where A is a carefully chosen constant.
Universal hashing method.
If k is a prime number, use Division method. Otherwise, use Multiplication method.
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 21
The output of a 2-input multiplexer is connected back to one of its inputs as shown in the figure.
Match the functional equivalence of this circuit to one of the following options.
D Flip-flop
D Latch
Half-adder
Demultiplexer
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 22
Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread (T2) of the same process?
Page table base register
Stack pointer
Program counter
General purpose registers
Correct Answer : BCD
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 23
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
Function Call
malloc Call
Page Fault
System Call
Correct Answer : CD
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 24
Which of the following statements is/are CORRECT?
The intersection of two regular languages is regular.
The intersection of two context-free languages is context-free.
The intersection of two recursive languages is recursive.
The intersection of two recursively enumerable languages is recursively enumerable.
Correct Answer : ACD
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 25
Which of the following statements is/are INCORRECT about the OSPF (Open Shortest Path First) routing protocol used in the Internet?
OSPF implements Bellman-Ford algorithm to find shortest paths.
OSPF uses Dijkstra’s shortest path algorithm to implement least-cost path routing.
OSPF is used as an inter-domain routing protocol.
OSPF implements hierarchical routing.
Correct Answer : AC
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 26
Geetha has a conjecture about integers, which is of the form
\(\forall x \, (P(x) \Rightarrow \exists y \, Q(x, y)) \)
where P is a statement about integers, and Q is a statement about pairs of integers. Which of the following (one or more) option(s) would imply Geetha’s conjecture?
\(∃x (P(x) ∧ ∀yQ(x, y) )\)
\(\forall x \forall y \, Q(x, y) \)
\(\exists y \forall x \, (P(x) \Rightarrow Q(x, y)) \)
\(\exists x \, (P(x) \land \exists y \, Q(x, y)) \)
Correct Answer : BC
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 27
Which one or more of the following CPU scheduling algorithms can potentially cause starvation?
First-in First-Out
Round Robin
Priority Scheduling
Shortest Job First
Correct Answer : ACD or CD
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 28
Let
\(f(x) = x^3 + 15x^2 - 33x - 36 \)
be a real-valued function. Which of the following statements is/are TRUE?
\(f(x)\) does not have a local maximum.
\(f(x)\) has a local maximum.
\(f(x)\) does not have a local minimum.
\(f(x)\) has a local minimum.
Correct Answer : BD
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 29
Let f and g be functions of natural numbers given by \(f(n)\) = n and \(g(n)\) = n2. Which of the following statements is/are TRUE?
\(f ∈ O(g)\)
\(f ∈ Ω(g)\)
\(f ∈ o(g)\)
\(f ∈ Θ(g)\)
Correct Answer : AC
Question Type : MSQ
Max Marks : 1
Negative Marks : 0
Question : 30
Let A be the adjacency matrix of the graph with vertices {1, 2, 3, 4, 5}.
Let λ1, λ2, λ3, λ4, and λ5 be the five eigenvalues of A. Note that these eigenvalues need not be distinct. The value of λ1 + λ2 + λ3 + λ4 + λ5 = _______.
Correct Answer : 2 or 4
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 31
The value of the definite integral
\(\int_{-3}^{3} \int_{-2}^{2} \int_{-1}^{1} (4x^2y - z^3) \, dz \, dy \, dx \)
is_______ . (Rounded off to the nearest integer)
Correct Answer : 0
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 32
A particular number is written as 132 in radix-4 representation. The same number in radix-5 representation is ________.
Correct Answer : 110
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 33
Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle.
The total execution time for executing 100 instructions on this processor is ns ________.
Correct Answer : 2040
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 34
A keyboard connected to a computer is used at a rate of 1 keystroke per second. The computer system polls the keyboard every 10 ms (milli seconds) to check for a keystroke and consumes 100 μs (micro seconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 200 μs to process the keystroke.
Let T1 denote the fraction of a second spent in polling and processing a keystroke. In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke.
The ratio \(\frac{T_1}{T_2} \) is . (Rounded off to one decimal place)
Correct Answer : 10.2
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 35
The integer value printed by the ANSI-C program given below is ________.
#include<stdio.h>
int funcp(){
static int x = 1;
x++;
return x;
}
int main(){
int x,y;
x = funcp();
y = funcp()+x;
printf("%d\n", (x+y));
return 0;
}
Correct Answer : 7
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 36
Consider the following program:
Which one of the following options represents the activation tree corresponding to the main function?
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 37
Consider the control flow graph shown.
Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?
B1: {}, B2: {a}, B3: {a}, B4: {a}
B1: {i, j}, B2: {a}, B3: {a}, B4: {i}
B1: {a, i, j}, B2: {a, i, j}, B3: {a, i}, B4: {a}
B1: {a, i, j}, B2: {a, j}, B3: {a, j}, B4: {a, i, j}
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 38
Consider the two functions incr and decr shown below.
incr(){ |
decr(){ wait(s); X = X-1; signal(s); } |
There are 5 threads each invoking incr once, and 3 threads each invoking decr
once, on the same shared variable X. The initial value of X is 10.
Suppose there are two implementations of the semaphore s, as follows:
I-1: s is a binary semaphore initialized to 1.
I-2: s is a counting semaphore initialized to 2.
Let V1, V2 be the values of X at the end of execution of all the threads with
implementations I-1, I-2, respectively.
Which one of the following choices corresponds to the minimum possible values of
V1, V2, respectively?
15, 7
7, 7
12, 7
12, 8
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 39
Consider the context-free grammar G below
S → aSb | X
X → aX | Xb | a | b ,
where S and X are non-terminals, and a and b are terminal symbols. The starting
non-terminal is S.
Which one of the following statements is CORRECT?
The language generated by G is (a + b)∗
The language generated by G is a∗(a + b)b∗
The language generated by G is a∗b∗(a + b)
The language generated by G is not a regular language
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 40
Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a, b}, has stack alphabet {⊥, A}, and has three states {s, p, q}, with s being the start state. A transition from state u to state v, labelled c/X/γ, where c is an input symbol or , X is a stack symbol, and γ is a string of stack symbols, represents the fact that in state u, the PDA can read c from the input, with X on the top of its stack, pop X from the stack, push in the string γ on the stack, and go to state v. In the initial configuration, the stack has only the symbol ⊥ in it. The PDA accepts by empty stack.
Which one of the following options correctly describes the language accepted by P?
\(\{a^m b^n \mid 1 \leq m \text{ and } n < m\} \)
\(\{a^m b^n \mid 0 \leq n \leq m\} \)
\(\{a^m b^n \mid 0 \leq m \text{ and } 0 \leq n\} \)
\(\{a^m \mid 0 \leq m\} \cup \{b^n \mid 0 \leq n\} \)
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 41
Consider the given C-code and its corresponding assembly code, with a few operands U1–U4 being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable.
//C-code
|
;assembly-code (; indicates comments)
|
Which one of the following options is a CORRECT replacement for operands in the position (U1, U2, U3, U4) in the above assembly code?
(8, 4, 1, L02)
(3, 4, 4, L01)
(8, 1, 1, L02)
(3, 1, 1, L01)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 42
A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from IA11–IA0 are connected to the address port of these blocks. The chip select (CS) is active high.
The input memory addresses (IA11–IA0), in decimal, for the starting locations (Addr=0) of each block (indicated as X1, X2, X3, X4 in the figure) are among the options given below. Which one of the following options is CORRECT?
(0, 1, 2, 3)
(0, 1024, 2048, 3072)
(0, 8, 16, 24)
(0, 0, 0, 0)
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 43
Consider a sequential digital circuit consisting of T flip-flops and D flip-flops as shown in the figure. CLKIN is the clock input to the circuit. At the beginning, Q1, Q2 and Q3 have values 0, 1 and 1, respectively.
Which one of the given values of (Q1, Q2, Q3) can NEVER be obtained with this digital circuit?
(0, 0, 1)
(1, 0, 0)
(1, 0, 1)
(1, 1, 1)
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 44
A Boolean digital circuit is composed using two 4-input multiplexers (M1 and M2) and one 2-input multiplexer (M3) as shown in the figure. X0–X7 are the inputs of the multiplexers M1 and M2 and could be connected to either 0 or 1. The select lines of the multiplexers are connected to Boolean variables A, B and C as shown.
Which one of the following set of values of (X0, X1, X2, X3, X4, X5, X6, X7) will realise the Boolean function \(\overline{A} + \overline{A} \cdot \overline{C} + A \cdot \overline{B} \cdot C \)?
(1, 1, 0, 0, 1, 1, 1, 0)
(1, 1, 0, 0, 1, 1, 0, 1)
(1, 1, 0, 1, 1, 1, 0, 0)
(0, 0, 1, 1, 0, 1, 1, 1)
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 45
Consider the IEEE-754 single precision floating point numbers
P=0xC1800000 and Q=0x3F5C2EF4.
Which one of the following corresponds to the product of these numbers (i.e., P × Q), represented in the IEEE-754 single precision format?
0x404C2EF4
0x405C2EF4
0xC15C2EF4
0xC14C2EF4
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 46
Let A be a priority queue for maintaining a set of elements. Suppose A is implemented using a max-heap data structure. The operation Extract-Max(A) extracts and deletes the maximum element from A. The operation Insert(A,key) inserts a new element key in A. The properties of a max-heap are preserved at the end of each of these operations.
When A contains n elements, which one of the following statements about the worst case running time of these two operations is TRUE?
Both Extract-Max(A) and Insert(A,key) run in O(1).
Both Extract-Max(A) and Insert(A,key) run in O(log(n)).
Extract-Max(A) runs in O(1) whereas Insert(A,key) runs in O(n).
Extract-Max(A) runs in O(1) whereas Insert(A,key) runs in O(log(n)).
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 47
Consider the C function foo and the binary tree shown.
typedef struct node {
|
When foo is called with a pointer to the root node of the given binary tree, what will it print?
3 8 5 13 11 10
3 5 8 10 11 13
3 8 16 13 24 50
3 16 8 50 24 13
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 48
Let U = {1, 2,...,n}, where n is a large positive integer greater than 1000. Let k be a positive integer less than n. Let A, B be subsets of U with |A| = |B| = k and A ∩ B = ∅. We say that a permutation of U separates A from B if one of the following is true.
- All members of A appear in the permutation before any of the members of B.
- All members of B appear in the permutation before any of the members of A.
How many permutations of U separate A from B?
\(n!\)
\(\binom{n}{2k} (n - 2k)! \)
\(\binom{n}{2k} (n - 2k)! (k!)^2 \)
\(2 \binom{n}{2k} (n - 2k)! (k!)^2 \)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 49
Let f : A → B be an onto (or surjective) function, where A and B are nonempty sets. Define an equivalence relation ∼ on the set A as
\(a_1 \sim a_2 \text{ if } f(a_1) = f(a_2) \)
where \(a1, a2 ∈ A\). Let \(E = {[x] : x ∈ A}\) be the set of all the equivalence classes under ∼. Define a new mapping \(F : \epsilon → B\) as
\(F([x]) = f(x), \text{ for all the equivalence classes } [x] \text{ in } \epsilon \)
Which of the following statements is/are TRUE?
F is NOT well-defined.
F is an onto (or surjective) function.
F is a one-to-one (or injective) function.
F is a bijective function.
Correct Answer : BCD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 50
Suppose you are asked to design a new reliable byte-stream transport protocol like TCP. This protocol, named myTCP, runs over a 100 Mbps network with Round Trip Time of 150 milliseconds and the maximum segment lifetime of 2 minutes.
Which of the following is/are valid lengths of the Sequence Number field in the myTCP header?
30 bits
32 bits
34 bits
36 bits
Correct Answer : BCD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 51
Let X be a set and 2X denote the powerset of X.
Define a binary operation Δ on 2X as follows:
\(AΔB = (A − B) ∪ (B − A) .\)
Let H = (2X, Δ). Which of the following statements about H is/are correct?
H is a group.
Every element in H has an inverse, but H is NOT a group.
For every A ∈ 2X, the inverse of A is the complement of A.
For every A ∈ 2X, the inverse of A is A.
Correct Answer : AD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 52
Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers.
Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server.
Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?
7 RTTs, in case of non-persistent HTTP with 5 parallel TCP connections.
5 RTTs, in case of persistent HTTP with pipelining.
9 RTTs, in case of non-persistent HTTP with 5 parallel TCP connections.
6 RTTs, in case of persistent HTTP with pipelining.
Correct Answer : CD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 53
Consider a random experiment where two fair coins are tossed. Let A be the event that denotes HEAD on both the throws, B be the event that denotes HEAD on the first throw, and C be the event that denotes HEAD on the second throw. Which of the following statements is/are TRUE?
A and B are independent.
A and C are independent.
B and C are independent.
Prob(B|C) = Prob(B)
Correct Answer : CD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 54
Consider functions Function_1 and Function_2 expressed in pseudocode as follows:
Function_1 while n > 1 do for i = 1 to n do x = x + 1; end for n = \(n = \lfloor {n} / {2} \rfloor \) end while |
Function_2 for i = 1 to 100 ∗ n do x = x + 1; end for |
Let \(f_1(n)\) and \(f_2(n)\) denote the number of times the statement “x = x + 1” is executed in Function_1 and Function_2, respectively. Which of the following statements is/are TRUE?
\(f_1(n) ∈ Θ(f_2(n)) \)
\(f_1(n) ∈ o(f_2(n))\)
\(f_1(n) ∈ ω(f_2(n))\)
\(f_1(n) ∈ O(n)\)
Correct Answer : AD
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 55
Let G be a simple, finite, undirected graph with vertex set {\(v_1,...,v_n\)}. Let Δ(G) denote the maximum degree of G and let N = {1, 2,...} denote the set of all possible colors. Color the vertices of G using the following greedy strategy:
for \(i \) = 1,...,n
color(\(v_i\)) ← min{\(j \) ∈ N : no neighbour of \(v_i \) is colored \(j\)}
Which of the following statements is/are TRUE?
This procedure results in a proper vertex coloring of G.
The number of colors used is at most Δ(G) + 1.
The number of colors used is at most Δ(G).
The number of colors used is equal to the chromatic number of G.
Correct Answer : AB
Question Type : MSQ
Max Marks : 2
Negative Marks : 0
Question : 56
Let U = {1, 2, 3}. Let 2U denote the powerset of U. Consider an undirected graph G whose vertex set is 2U . For any A, B ∈ 2U , (A, B) is an edge in G if and only if (i) \(A \neq B \), and (ii) either \(A \subseteq B \) or \(B \subseteq A \). For any vertex A in G, the set of all possible orderings in which the vertices of G can be visited in a Breadth First Search (BFS) starting from A is denoted by \(B\)(A).
If ∅ denotes the empty set, then the cardinality of \(B\)(∅) is ________ .
Correct Answer : 5040
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 57
Consider the following two-dimensional array D in the C programming language, which is stored in row-major order:
int D[128][128];
Demand paging is used for allocating memory and each physical page frame holds 512 elements of the array D. The Least Recently Used (LRU) page-replacement policy is used by the operating system. A total of 30 physical page frames are allocated to a process which executes the following code snippet:
for (int i = 0; i < 128; i++)
for (int j = 0; j < 128; j++)
D[j][i] *= 10;
The number of page faults generated during the execution of this code snippet is ______ .
Correct Answer : 4096
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 58
Consider a computer system with 57-bit virtual addressing using multi-level tree-structured page tables with L levels for virtual to physical address translation. The page size is 4 KB (1 KB = 1024 B) and a page table entry at any of the levels occupies 8 bytes.
The value of L is _______ .
Correct Answer : 5
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 59
Consider a sequence a of elements a0 = 1, a1 = 5, a2 = 7, a3 = 8, a4 = 9, and a5 = 2. The following operations are performed on a stack S and a queue Q, both of which are initially empty.
I: push the elements of a from a0 to a5 in that order into S.
II: enqueue the elements of a from a0 to a5 in that order into Q.
III: pop an element from S.
IV: dequeue an element from Q.
V: pop an element from S.
VI: dequeue an element from Q.
VII: dequeue an element from Q and push the same element into S.
VIII: Repeat operation VII three times.
IX: pop an element from S.
X: pop an element from S.
The top element of S after executing the above operations is .
Correct Answer : 8
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 60
Consider the syntax directed translation given by the following grammar and semantic rules. Here N, I, F and B are non-terminals. N is the starting non-terminal, and #, 0 and 1 are lexical tokens corresponding to input letters “#”, “0” and “1”, respectively. X.val denotes the synthesized attribute (a numeric value) associated with a non-terminal X. I1 and F1 denote occurrences of I and F on the right hand side of a production, respectively. For the tokens 0 and 1, 0.val = 0 and 1.val = 1.
N → I # F N.val = I.val + F.val
I → I1 B I.val = (2 I1.val) + B.val
I → B I.val = B.val
F → B F1 F.val = \(\frac{1}{2} \)(B.val + F1.val)
F → B F.val = \(\frac{1}{2} \)B.val
B → 0 B.val = 0.val
B → 1 B.val = 1.val
The value computed by the translation scheme for the input string
10#011
is _______ . (Rounded off to three decimal places)
Correct Answer : 2.374 to 2.376
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 61
Consider the following table named Student in a relational database. The primary key of this table is rollNum.
rollNum | name | gender | marks |
1 | Naman | M | 62 |
2 | Aliya | F | 70 |
3 | Aliya | F | 80 |
4 | James | M | 82 |
5 | Swati | F | 65 |
The SQL query below is executed on this database.
SELECT *
FROM Student
WHERE gender = ‘F’ AND
marks > 65;
The number of rows returned by the query is .
Correct Answer : 2
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 62
Consider a database of fixed-length records, stored as an ordered file. The database has 25,000 records, with each record being 100 bytes, of which the primary key occupies 15 bytes. The data file is block-aligned in that each data record is fully contained within a block. The database is indexed by a primary index file, which is also stored as a block-aligned ordered file. The figure below depicts this indexing scheme.
Suppose the block size of the file system is 1024 bytes, and a pointer to a block occupies 5 bytes. The system uses binary search on the index file to search for a record with a given key. You may assume that a binary search on an index file of b blocks takes log2 b block accesses in the worst case. Given a key, the number of block accesses required to identify the block in the data file that may contain a record with the key, in the worst case, is ______.
Correct Answer : 6
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 63
Consider the language L over the alphabet {0, 1}, given below:
\(L \)= {\(w \)∈ {0,1}* | \(w \) does not contain three or more consecutive 1’s}.
The minimum number of states in a Deterministic Finite-State Automaton (DFA) for \(L \) is _______ .
Correct Answer : 4
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 64
An 8-way set associative cache of size 64 KB (1 KB = 1024 bytes) is used in a system with 32-bit address. The address is sub-divided into TAG, INDEX, and BLOCK OFFSET.
The number of bits in the TAG is __________ .
Correct Answer : 19
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 65
The forwarding table of a router is shown below.
Subnet Number | Subnet Mask | Interface ID |
200.150.0.0 | 255.255.0.0 | 1 |
200.150.64.0 | 255.255.224.0 | 2 |
200.150.68.0 | 255.255.255.0 | 3 |
200.150.68.64 | 255.255.255.224 | 4 |
Default | 0 |
A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID _________ .
Correct Answer : 3
Question Type : NAT
Max Marks : 2
Negative Marks : 0