Question : 1
Out of the following four sentences, select the most suitable sentence with respect to grammar and usage.
I will not leave the place until the minister does not meet me.
I will not leave the place until the minister doesn’t meet me.
I will not leave the place until the minister meet me.
I will not leave the place until the minister meets me.
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 2
A rewording of something written or spoken is a ______________.
paraphrase
paradox
paradigm
paraffin
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 3
Archimedes said, “Give me a lever long enough and a fulcrum on which to place it, and I will move the world.”
The sentence above is an example of a ___________ statement.
figurative
collateral
literal
figurine
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 4
If ‘relftaga’ means carefree, ‘otaga’ means careful and ‘fertaga’ means careless, which of the following could mean ‘aftercare’?
zentaga
tagafer
tagazen
relffer
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 5
A cube is built using 64 cubic blocks of side one unit. After it is built, one cubic block is removed from every corner of the cube. The resulting surface area of the body (in square units) after the removal is __________.
56
64
72
96
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 6
A shaving set company sells 4 different types of razors, Elegance, Smooth, Soft and Executive. Elegance sells at Rs. 48, Smooth at Rs. 63, Soft at Rs. 78 and Executive at Rs. 173 per piece. The table below shows the numbers of each razor sold in each quarter of a year.
Which product contributes the greatest fraction to the revenue of the company in that year?
Elegance
Executive
Smooth
Soft
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 7
Indian currency notes show the denomination indicated in at least seventeen languages. If this is not an indication of the nation’s diversity, nothing else is.
Which of the following can be logically inferred from the above sentences?
India is a country of exactly seventeen languages.
Linguistic pluralism is the only indicator of a nation’s diversity.
Indian currency notes have sufficient space for all the Indian languages.
Linguistic pluralism is strong evidence of India’s diversity.
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 8
Consider the following statements relating to the level of poker play of four players P, Q, R and S.
I. P always beats Q
II. R always beats S
III. S loses to P only sometimes
IV. R always loses to Q
Which of the following can be logically inferred from the above statements?
(i) P is likely to beat all the three other players
(ii) S is the absolute worst player in the set
(i) only
(ii) only
(i) and (ii)
neither (i) nor (ii)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 9
If \(f(x^2) = 2x^7 + 3x - 5 \), which of the following is a factor of \(f(x)\)?
\((x^3+8)\)
\((x-1)\)
\((2x-5)\)
\((x+1)\)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 10
In a process, the number of cycles to failure decreases exponentially with an increase in load. At a load of 80 units, it takes 100 cycles for failure. When the load is halved, it takes 10000 cycles for failure. The load for which the failure will happen in 5000 cycles is ________.
40.00
46.02
60.01
92.02
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 11
Let p,q,r,s represent the following propositions.
p: \(x \in \{8, 9, 10, 11, 12\} \)
q: \(x\) is a composite number
r: \(x\) is a perfect square
s: \(x\) is a prime number
The integer \(x\) ≥ 2 which satisfies \(¬((p ⇒ q)∧(¬r∨ ¬s))\) is _____________ .
Correct Answer : 11
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 12
Let an be the number of \(n\)-bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for \(a_n\)?
\(a_n = a_{n−1} +2a_{n−2}\)
\(a_n = a_{n−1} +a_{n−2}\)
\(a_n = 2a_{n−1} +a_{n−2}\)
\(a_n = 2a_{n−1} +2a_{n−2}\)
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 13
\(\lim_{{x \to 4}} \frac{\sin(x - 4)}{x - 4} =\) ___________.
Correct Answer : 1
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 14
A probability density function on the interval \([a,1]\) is given by \(1/x^2\) and outside this interval the value of the function is zero. The value of \(a\) is .
Correct Answer : 0.5
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 15
Two eigenvalues of a 3 × 3 real matrix \(P\) are \((2 + \sqrt−1)\) and 3. The determinant of \(P\) is .
Correct Answer : 15
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 16
Consider the Boolean operator # with the following properties:
\(x \# 0 = x, \quad x \# 1 = \overline{x}, \quad x \# x = 0, \quad x \# \overline{x} = 1 \) . Then \(x \# y \) is equivalent to
\(x\overline{y} + xy \)
\(x\overline{y} + \overline{x}y \)
\(x\overline{y} + xy \)
\(xy + \overline{x}\overline{y} \)
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 17
The 16-bit 2’s complement representation of an integer is 1111 1111 1111 0101; its decimal representation is _________.
Correct Answer : -11
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 18
We want to design a synchronous counter that counts the sequence 0-1-0-2-0-3 and then repeats. The minimum number of J-K flip-flops required to implement this counter is _______.
Correct Answer : 3 4
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 19
A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least __________ bits.
Correct Answer : 31
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 20
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (\(n\) refers to the number of items in the queue)?
Both operations can be performed in \(O(1)\) time
At most one operation can be performed in \(O(1)\) time but the worst case time for the other operation will be \(Ω(n)\)
The worst case time complexity for both operations will be \(Ω(n)\)
Worst case time complexity for both operations will be \(Ω(logn)\)
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 21
Consider the following directed graph:
The number of different topological orderings of the vertices of the graph is ______________ .
Correct Answer : 6
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 22
Consider the following C program.
void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; ____________; // call to f() }
Which one of the following expressions, when placed in the blank above, will NOT result in a type checking error?
\(f(s,*s)\)
\( i = f(i,s)\)
\(f(i,*s)\)
\(f(i,*p) \)
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 23
The worst case running times of Insertion sort, Merge sort and Quick sort, respectively, are:
\(\Theta(n \log n), \quad \Theta(n \log n) \) and \(\Theta(n^2)\)
\(\Theta(n^2), \quad \Theta(n^2) \) and \(\Theta(n \log n) \)
\(\Theta(n^2), \quad \Theta(n \log n) \) and \(\Theta(n \log n) \)
\(\Theta(n^2), \quad \Theta(n \log n) \) and \(\Theta(n^2)\)
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 24
Let G be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE?
P: Minimum spanning tree of G does not change
Q: Shortest path between any pair of vertices does not change
P only
Q only
Neither P nor Q
Both P and Q
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 25
Consider the following C program.
# include <stdio.h> void mystery (int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb =ptra; ptra = temp; } int main () { int a = 2016, b=0, c= 4, d = 42; mystery (&a, &b); if (a < c) mystery (&c, &a); mystery (&a, &d); printf("%d\n", a); }
The output of the program is __________.
Correct Answer : 2016
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 26
Which of the following languages is generated by the given grammar?
S → aS | bS | ε
{an bm | n,m ≥ 0}
{w ∈ {a,b} ∗ | w has equal number of a’s and b’s }
{an | n ≥ 0} ∪ {bn | n ≥ 0} ∪ {an bn | n ≥ 0}
{a,b}*
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 27
Which of the following decision problems are undecidable?
I. Given NFAs \(N_1\) and \(N_2\), is \(L(N_1) \cap L(N_2) = \emptyset \)?
II. Given a CFG \(G = (N,Σ,P,S)\) and a string \(x ∈ Σ^∗\) , does \(x ∈ L(G)\)?
III. Given CFGs \(G_1\) and \(G_2\), is \(L(G_1) = L(G_2)\)?
IV. Given a TM \(M\), is \( L(M) = Φ\)?
I and IV only
II and III only
III and IV only
II and IV only
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 28
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive \(0s\) and two consecutive \(1s\)?
\((0 + 1)^*0011(0 + 1)^* + (0 + 1)^*1100(0 + 1)^* \)
\((0 + 1)^*(00(0 + 1)^*11 + 11(0 + 1)^*00)(0 + 1)^* \)
\((0 + 1)^*00(0 + 1)^* + (0 + 1)^*11(0 + 1)^* \)
\(00(0 + 1)^*11 + 11(0 + 1)^*00 \)
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 29
Consider the following code segment.
x = u - t; y = x * v; x = y + w; y = t - z; y = x * y;
The minimum number of total variables required to convert the above code segment to static single assignment form is __________ .
Correct Answer : 10
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 30
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Shortest remaining time first
Round-robin with time quantum less than the shortest CPU burst
Uniform random
Highest priority first with priority proportional to CPU burst length
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 31
Which of the following is NOT a superkey in a relational schema with attributes V, W, X, Y, Z and primary key V Y?
V X Y Z
V W X Z
V W X Y
V W X Y Z
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 32
Which one of the following is NOT a part of the ACID properties of database transactions?
Atomicity
Consistency
Isolation
Deadlock-freedom
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 33
A database of research articles in a journal uses the following schema.
(VOLUME, NUMBER, STARTPGE, ENDPAGE, TITLE, YEAR, PRICE)
The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) → TITLE (VOLUME, NUMBER) → YEAR (VOLUME, NUMBER, STARTPAGE, ENDPAGE) → PRICE
The database is redesigned to use the following schemas.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE) (VOLUME, NUMBER, YEAR)
Which is the weakest normal form that the new database satisfies, but the old one does not?
1NF
2NF
3NF
BCNF
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 34
Which one of the following protocols is NOT used to resolve one form of address to another one?
DNS
ARP
DHCP
RARP
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 35
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
(i) and (ii) only
(ii) and (iii) only
(ii) and (iv) only
(iv) only
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 36
The coefficient of \(x^{12}\) in \(\left(x^{3}+x^{4}+x^{5}+x^{6}+\dots \right)^{3}\) is ___________ .
Correct Answer : 10
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 37
Consider the recurrence relation \(a_1 = 8, a_n = 6n^2 +2n+a_{n−1}\). Let \(a_{99} = K ×10^4\) . The value of \(K\) is ________ .
Correct Answer : 197.9 to 198.1
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 38
A function \(f: \Bbb{N^+} \rightarrow \Bbb{N^+}\), defined on the set of positive integers \(\Bbb{N^+}\), satisfies the following properties:
\(f(n)=f(n/2)\) if \(n\) is even
\(f(n) = f(n+5)\) if \(n\) is odd
Let \(R=\{ i \mid \exists{j} : f(j)=i \}\) be the set of distinct values that \(f\) takes. The maximum possible size of \(R\) is __________.
Correct Answer : 2
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 39
Consider the following experiment.
Step 1. Flip a fair coin twice.
Step 2. If the outcomes are (TAILS, HEADS) then output Y and stop.
Step 3. If the outcomes are either (HEADS, HEADS) or (HEADS, TAILS), then output N and stop.
Step 4. If the outcomes are (TAILS, TAILS), then go to Step 1.
The probability that the output of the experiment is Y is (up to two decimal places) _____ .
Correct Answer : 0.33 to 0.34
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 40
Consider the two cascaded 2-to-1 multiplexers as shown in the figure
The minimal sum of products form of the output \(X\) is
\(\overline{P} \ \overline {Q}+PQR\)
\(\overline{P} \ {Q}+QR\)
\(PQ +\overline{P} \ \overline{Q}R\)
\(\overline{Q} \ \overline{R} + PQR\)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 41
The size of the data count register of a DMA controller is 16 bits. The processor needs to transfer a file of 29,154 kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the DMA controller needs to get the control of the system bus from the processor to transfer the file from the disk to main memory is _________ .
Correct Answer : 456
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 42
The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivalent design involving two stages with respective delays 600 and 350 picoseconds. The throughput increase of the pipeline is ________ percent.
Correct Answer : 33.0 to 34.0
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 43
Consider a carry lookahead adder for adding two \(n\)-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
\(\Theta (1)\)
\(\Theta (\log(n))\)
\(\Theta (\sqrt{n})\)
\(\Theta (n)\)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 44
The following function computes the maximum value contained in an integer array p[ ] of size n (n >= 1).
int max (int *p,int n) { int a = 0, b=n-1; while (__________) { if (p[a]<= p[b]) {a = a+1;} else {b = b-1;} } return p[a]; }
The missing loop condition is:
a != n
b != 0
b > (a + 1)
b != a
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 45
What will be the output of the following C program?
void count (int n) { static int d=1; printf ("%d",n); printf ("%d",d); d++; if (n>1) count (n-1); printf ("%d",d); } void main(){ count (3); }
3 1 2 2 1 3 4 4 4
3 1 2 1 1 1 2 2 2
3 1 2 2 1 3 4
3 1 2 1 1 1 2
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 46
What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed?
a = 3; void n(x) { x = x * a; print (x); } void m(y) { a = 1 ; a = y - a; n(a); print (a); } void main () { m(a); }
6, 2
6, 6
4, 2
4, 4
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 47
An operator \(delete(i)\) for a binary heap data structure is to be designed to delete the item in the \(i\)-th node. Assume that the heap is implemented in an array and i refers to the \(i\)-th index of the array. If the heap tree has depth \(d\) (number of edges on the path from the root to the farthest leaf), then what is the time complexity to re-fix the heap efficiently after the removal of the element ?
\(O(1)\)
\(O(d)\) and \(O(1)\)
\(O(2^d)\) and \(O(d)\)
\(O(d \, 2^d) \) and \(O(2^d)\)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 48
Consider the weighted undirected graph with 4 vertices, where the weight of edge \(\{i, j\} \) is given by the entry \(W_{ij}\) in the matrix \(W\).
W = \(\begin{bmatrix} 0&2 &8 &5 \\ 2&0 &5 &8 \\ 8&5 &0 &x \\ 5& 8 &x &0 \end{bmatrix}\)
The largest possible integer value of \(x\), for which at least one shortest path between some pair of vertices will contain the edge with weight \(x\) is .
Correct Answer : 12
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 49
Let G be a complete undirected graph on 4 vertices, having 6 edges with weights being 1, 2, 3, 4, 5, and 6. The maximum possible weight that a minimum weight spanning tree of G can have is _________.
Correct Answer : 7
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 50
\(G = (V,E)\) is an undirected simple graph in which each edge has a distinct weight, and \(e\) is a particular edge of \(G\). Which of the following statements about the minimum spanning trees (MSTs) of \(G\) is/are TRUE?
I. If e is the lightest edge of some cycle in \(G\), then every MST of G includes \(e\)
II. If e is the heaviest edge of some cycle in \(G\), then every MST of G excludes \(e\)
I only
II only
both I and II
neither I nor II
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 51
Let \(Q\) denote a queue containing sixteen numbers and \(S\) be an empty stack. \(Head(Q)\) returns the element at the head of the queue \(Q\) without removing it from \(Q\). Similarly \(Top(S)\) returns the element at the top of \(S\) without removing it from \(S\). Consider the algorithm given below.
The maximum possible number of iterations of the while loop in the algorithm is ___________ .
Correct Answer : 256
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 52
Consider the following context-free grammars:
\(G_1 : S \to aS \mid B, B \to b \mid bB\)
\(G_2 : S \to aA \mid bB, A \to aA \mid B \mid \varepsilon,B \to bB \mid \varepsilon\)
Which one of the following pairs of languages is generated by \(G_1\) and \(G_2\), respectively?
\(\{ a^mb^n \mid m > 0 \text{ or } n >0\}\) and \(\{ a^mb^n \mid m > 0 \text{ and } n >0\}\)
\(\{ a^mb^n \mid m > 0 \text{ and } n >0\}\) and \(\{ a^mb^n \mid m > 0 \text{ or } n\geq0\}\)
\(\{ a^mb^n \mid m \geq 0 \text{ or } n >0\}\) and \(\{ a^mb^n \mid m > 0\text{ and } n>0\}\)
\(\{ a^mb^n \mid m \geq 0 \text{ and } n >0\}\) and \(\{ a^mb^n \mid m > 0 \text{ or } n>0\}\)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 53
Consider the transition diagram of a PDA given below with input alphabet \(Σ = \{a,b\}\) and stack alphabet \(Γ = \{X,Z\}\). \(Z\) is the initial stack symbol. Let \(L\) denote the language accepted by the PDA.
Which one of the following is TRUE?
\(L =\{a^nb^n\mid n \geq0 \}\) and is not accepted by any finite automata
\(L =\{a^n\mid n \geq0 \} \cup \{a^nb^n \mid n \geq 0\}\) and is not accepted by any deterministic PDA
\(L\) is not accepted by any Turing machine that halts on every input
\(L =\{a^n\mid n \geq0 \} \cup \{a^nb^n \mid n \geq 0\}\) and is deterministic context-free
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 54
Let \(X\) be a recursive language and \(Y\) be a recursively enumerable but not recursive language. Let \(W\) and \(Z\) be two languages such that \(\overline Y\) reduces to \(W\), and \(Z\) reduces to \(\overline X\) (reduction means the standard many-one reduction). Which one of the following statements is TRUE?
\(W\) can be recursively enumerable and \(Z\) is recursive.
\(W\) can be recursive and \(Z\) is recursively enumerable.
\(W\) is not recursively enumerable and \(Z\) is recursive.
\(W\) is not recursively enumerable and \(Z\) is not recursive.
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 55
The attributes of three arithmetic operators in some programming language are given below.
The value of the expression 2−5+1−7 ∗ 3 in this language is __________ .
Correct Answer : 9
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 56
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals {S, A} and terminals {a, b}.
S → aA { print 1 }
S → a { print 2 }
A → Sb { print 3 }
Using the above SDTS, the output printed by a bottom-up parser, for the input aab is:
1 3 2
2 2 3
2 3 1
syntax error
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 57
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then the size of the per-process page table is ___________ megabytes.
Correct Answer : 384
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 58
Consider a disk queue with requests for I/O to blocks on cylinders 47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 63, moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. The total head movement (in number of cylinders) incurred while servicing these requests is ____________ .
Correct Answer : 346
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 59
Consider a computer system with ten physical page frames. The system is provided with an access sequence \( (a_1,a_2,...,a_{20,} a_1,a_2,...,a_{20})\), where each ai is a distinct virtual page number. The difference in the number of page faults between the last-in-first-out page replacement policy and the optimal page replacement policy is __________ .
Correct Answer : 1
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 60
Consider the following proposed solution for the critical section problem. There are \(n\) processes: \(P_0 ...P_{n−1}\). In the code, function pmax returns an integer not smaller than any of its arguments. For all i, t[i] is initialized to zero.
Code for \(P_i\) :
do { c[i]=1; t[i]= pmax (t[0],....,t[n-1])+1; c[i]=0; for every j != i in {0,....,n-1} { while (c[j]); while (t[j] != 0 && t[j] <=t[i]); } Critical Section; t[i]=0; Remainder Section; } while (true);
Which one of the following is TRUE about the above solution?
At most one process can be in the critical section at any time
The bounded wait condition is satisfied
The progress condition is satisfied
It cannot cause a deadlock
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 61
Consider the following two phase locking protocol. Suppose a transaction \(T\) accesses (for read or write operations), a certain set of objects \(\{O_1,...,O_k\}\). This is done in the following manner:
Step 1. T acquires exclusive locks to \(O_1, . . . , O_k\) in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will
guarantee serializability and deadlock-freedom
guarantee neither serializability nor deadlock-freedom
guarantee serializability but not deadlock-freedom
guarantee deadlock-freedom but not serializability
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 62
Consider that B wants to send a message \(m\) that is digitally signed to A. Let the pair of private and public keys for A and B be denoted by \({K_{x}}^-\) and \({K_{x}}^+\) for \(x = A,B\), respectively. Let \(K_x(m)\) represent the operation of encrypting \(m\) with a key \(K_x\) and \(H(m)\) represent the message digest. Which one of the following indicates the CORRECT way of sending the message \(m\) along with the digital signature to A?
\(\left\{m, {K_{B}}^+(H(m))\right\}\)
\(\left\{m, {K_{B}}^-(H(m))\right\}\)
\(\left\{m, {K_{A}}^-(H(m))\right\}\)
\(\left\{m, {K_{A}}^+(m)\right\}\)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 63
An IP datagram of size 1000 bytes arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100 bytes. Assume that the size of the IP header is 20 bytes.
The number of fragments that the IP datagram will be divided into for transmission is ___________ .
Correct Answer : 13
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 64
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the machine needs to send 12 megabytes of data. The minimum time required to transmit the data is ________ seconds.
Correct Answer : 1.1
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 65
A sender uses the Stop-and-Wait ARQ protocol for reliable transmission of frames. Frames are of size 1000 bytes and the transmission rate at the sender is 80 Kbps (1Kbps = 1000 bits/second). Size of an acknowledgement is 100 bytes and the transmission rate at the receiver is 8 Kbps. The one-way propagation delay is 100 milliseconds.
Assuming no frame is lost, the sender throughput is __________ bytes/second.
Correct Answer : 2500
Question Type : NAT
Max Marks : 2
Negative Marks : 0