Question : 1
Didn’t you buy _________ when you went shopping?
any paper
much paper
no paper
a few paper
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 2
Which of the following options is the closest in meaning to the sentence below?
She enjoyed herself immensely at the party.
She had a terrible time at the party
She had a horrible time at the party
She had a terrific time at the party
She had a terrifying time at the party
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 3
Which one of the following combinations is incorrect?
Acquiescence - Submission
Wheedle - Roundabout
Flippancy - Lightness
Profligate - Extravagant
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 4
Based on the given statements, select the most appropriate option to solve the given question.
If two floors in a certain building are 9 feet apart, how many steps are there in a set of stairs that extends from the first floor to the second floor of the building?
Statements:
(I) Each step is 3/4 foot high.
(II) Each step is 1 foot wide.
Statement 1 alone is sufficient, but statement 2 alone is not sufficient.
Statement 2 alone is sufficient, but statement 1 alone is not sufficient.
Both statement together are sufficient, but neither statement alone is sufficient.
Statement 1 and 2 together are not sufficient.
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 5
Given Set A = {2, 3, 4, 5} and Set B = {11, 12, 13, 14, 15}, two numbers are randomly selected, one from each set. What is the probability that the sum of the two numbers equals 16?
0.20
0.25
0.30
0.33
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 6
Select the alternative meaning of the underlined part of the sentence.
The chain snatchers took to their heels when the police party arrived.
took shelter in a thick jungle
open indiscriminate fire
took to flight
unconditionally surrendered
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 7
The given statement is following by some courses of action. Assuming the statement to be true, decide the correct option.
Statement:
There has been a significant drop in the water level in the lakes supplying water to the city.
Course of action:
(I) The water supply authority should impose a partial cut in supply to tackle the situation.
(II) The government should appeal to all the residents through mass media for minimal use of water.
(III) The government should ban the water supply in lower areas
Statement I and II follow
Statement I and III follow
Statement II and III follow
All statements follow
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 8
The pie chart below has the breakup of the number of students, from different departments in an engineering college for the year 2012. The proportion of male to female students in each department is 5 : 4. There are 40 males in Electrical Engineering. What is the different between the numbers of female students in the Civil department and the female students in the Mechanical department?
Correct Answer : 32
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 9
The probabilities that a student passes in Mathematics, Physics and Chemistry are m, p and c respectively. Of these subjects, the student has 75% chance of passing in at least one, a 50% chance of passing in at least two and a 40% chance of passing in exactly two. Following relations are drawn in m, p and c:
(I) p + m + c = 27/20
(II) p + m + c = 13/20
(III) (p) × (m) × (c) = 1/10
Only relation 1 is true
Only relation 2 is true
Relations 2 and 3 are true
Relations 1 and 3 are true
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 10
The number of students in a class who have answered correctly, wrongly, or not attempted each question in an exam, are listed in the table below. The marks for each question are also listed. There is no negative or partial marking.
\(\begin{array}{|c|c|c|c|c|} \hline \textbf{Q No.} & \textbf{Marks} &\textbf{Answered}&\textbf{Answered}&\textbf{Not}\\&&\textbf{ Correctly} &\textbf{Wrongly} & \textbf{Attempted} \\\hline \text{1} & \text{2} &\text{21} &\text{17} &\text{6}\\ \text{2} & \text{3} &\text{15} & \text{27}& \text{2}\\\text{3} & \text{1} &\text{11} & \text{29} & \text{4}\\ \text{4} & \text{2} &\text{23} & \text{18} & \text{3}\\ \text{5} & \text{5} &\text{31} & \text{12} & \text{1} \\\hline \end{array}\)
What is the average of the marks obtained by the class in the examination?
2.290
2.970
6.795
8.795
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 11
If \(g(x) = 1 - x\) and \(h(x) = \frac{x}{x-1}\) , then \(\frac{g(h(x))}{h(g(x))}\) is:
\(\frac{h(x)}{g(x)}\)
\(\frac{-1}{x}\)
\(\frac{g(x)}{h(x)}\)
\(\frac{x}{(1-x)^{2}}\)
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 12
\(lim_{𝑥→∞} \ \ 𝑥^{1/𝑥} \)
∞
0
1
Not defined
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 13
Match the following:
(P) Prim’s algorithm for minimum spanning tree (Q) Floyd-Warshall algorithm for all pairs shortest paths (R) Mergesort (S) Hamiltonian circuit |
(i) Backtracking (ii) Greedy method (iii) Dynamic programming (iv) Divide and conquer |
P-iii, Q-ii, R-iv, S-i
P-i, Q-ii, R-iv, S-iii
P-ii, Q-iii, R-iv, S-i
P-ii, Q-i, R-iii, S-iv
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 14
Which one of the following is the recurrence equation for the worst case time complexity of the Quicksort algorithm for sorting \(n\) ( ≥ 2) numbers? In the recurrence equations given in the options below, \(c\) is a constant.
\(𝑇(𝑛) = 2 \ 𝑇(𝑛/2) + 𝑐n\)
\(𝑇(𝑛) = 𝑇(𝑛 − 1) + 𝑇(1) + 𝑐n\)
\( 𝑇(𝑛) = 2𝑇(𝑛 − 1) + cn\)
\(𝑇(𝑛) = 𝑇(𝑛/2) + 𝑐n\)
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 15
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 5 are
63 and 6, respectively
64 and 5, respectively
32 and 6, respectively
31 and 5, respectively
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 16
Match the following:
(P) Condition coverage (Q) Equivalence class partitioning (R) Volume testing (S) Alpha testing |
(i) Black-box testing (ii) System testing (iii) White-box testing (iv) Performance testing |
P-ii, Q-iii, R-i, S-iv
P-iii, Q-iv, R-ii, S- i
P-iii, Q-i, R-iv, S-ii
P-iii, Q-i, R-ii, S-iv
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 17
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)?
I. 3, 5, 7, 8, 15, 19, 25
II. 5, 8, 9, 12, 10, 15, 25
III. 2, 7, 10, 8, 14, 16, 20
IV. 4, 6, 7, 9 18, 20, 25
I and IV only
II and III only
II and IV only
II only
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 18
Which one of the following is TRUE at any valid state in shift-reduce parsing?
Viable prefixes appear only at the bottom of the stack and not inside
Viable prefixes appear only at the top of the stack and not inside
The stack contains only a set of viable prefixes
The stack never contains viable prefixes
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 19
Which one of the following is NOT equivalent to \(p ↔ q\)?
\((\neg p \lor q) \land (p \lor \neg q) \)
\((\neg p \lor q) \land (q \rightarrow p) \)
\((\neg p \land q) \lor (p \land \neg q) \)
\((\neg p \land \neg q) \lor (p \land q) \)
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 20
For a set 𝐴, the power set of 𝐴 is denoted by 2𝐴. If 𝐴 = {5,{6},{7}}, which of the following options are TRUE?
I. ∅ ∈ 2𝐴
II. ∅ ⊆ 2𝐴
III. {5,{6}} ∈ 2𝐴
IV. {5,{6}} ⊆ 2𝐴
I and III only
II and III only
I, II and III only
I, II and IV only
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 21
Consider a 4-bit Johnson counter with an initial value of 0000. The counting sequence of this counter is
0, 1, 3, 7, 15, 14, 12, 8, 0
0, 1, 3, 5, 7, 9, 11, 13, 15, 0
0, 2, 4, 6, 8, 10, 12, 14, 0
0, 8, 12, 14, 15, 7, 3, 1, 0
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 22
For computers based on three-address instruction formats, each address field can be used to specify which of the following:
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
Either S1 or S2
Either S2 or S3
Only S2 and S3
All of S1, S2 and S3
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 23
Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection?
I. If the sequence number of a segment is \(m\), then the sequence number of the subsequent segment is always \(m+1\).
II. If the estimated round trip time at any given point of time is \(t\) sec, the value of the retransmission timeout is always set to greater than or equal to \(t\) sec.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
III only
I and III only
I and IV only
II and IV only
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 24
Suppose that everyone in a group of \(N\) people wants to communicate secretly with the \(N - 1\) others using symmetric key cryptographic system. The communication between any two persons should not be decodable by the others in the group. The number of keys required in the system as a whole to satisfy the confidentiality requirement is
\(2N\)
\(N(N-1)\)
\(N(N-1)/2\)
\( (N-1)^2\)
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 25
Which of the following statements is/are FALSE?
I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
II only
I only
II and IV only
III and IV only
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 26
Which one of the following fields of an IP header is NOT modified by a typical IP router?
Checksum
Source address
Time to Live (TTL)
Length
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 27
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
HTTP, FTP
HTTP, TELNET
FTP, SMTP
HTTP, SMTP
Correct Answer : A
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 28
For any two languages \(L_1\) and \(L_2\) such that \(L_1\) is context-free and \(L_2\) is recursively enumerable but not recursive, which of the following is/are necessarily true?
I. \(\overline L_1\) (complement of \(L_1\)) is recursive
II. \(\overline L_2\) (complement of \(L_2\)) is recursive
III. \(\overline L_1\) is context-free
IV. \(\overline L_1 \cup L_2\) is recursively enumerable
I only
III only
III and IV only
I and IV only
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 29
Consider a system with byte-addressable memory, 32-bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is ________ .
Correct Answer : 4
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 30
The following two functions P1 and P2 that share a variable B with an initial value of 2 execute concurrently.
P1() { C = B – 1; B = 2*C; } |
P2() { D = 2 * B; B = D - 1; } |
The number of distinct values that B can possibly take after the execution is______________.
Correct Answer : 3
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 31
SELECT operation in SQL is equivalent to
the selection operation in relational algebra
the selection operation in relational algebra, except that SELECT in SQL retains duplicates
the projection operation in relational algebra
the projection operation in relational algebra, except that SELECT in SQL retains duplicates
Correct Answer : D
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 32
A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called
Dense
Sparse
Clustered
Unclustered
Correct Answer : C
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 33
In the LU decomposition of the matrix \(\begin{bmatrix}2 & 2 \\ 4 & 9\end{bmatrix}\), if the diagonal elements of \(U\) are both 1, then the lower diagonal entry \(l_{22}\) of \(L\) is________.
Correct Answer : 5
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 34
The output of the following C program is__________.
void f1 ( int a, int b) { int c; c = a; a = b; b = c; } void f2 ( int * a, int * b) { int c; c = * a; *a = *b; *b = c; } int main () { int a = 4, b = 5, c = 6; f1 ( a, b); f2 (&b, &c); printf ("%d", c - a - b); }
Correct Answer : -5
Question Type : NAT
Max Marks : 1
Negative Marks : 0
Question : 35
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
\(θ (log \ n)\) for both insertion and deletion
\(θ(n)\) for both insertion and deletion
\(θ(n)\) for insertion and \(θ (log \ n)\) for deletion
\(θ (log \ n)\) for insertion and \(θ(n)\) for deletion
Correct Answer : B
Question Type : MCQ
Max Marks : 1
Negative Marks : 0.33
Question : 36
Suppose that the stop-and-wait protocol is used on a link with a bit rate of 64 kilobits per second and 20 milliseconds propagation delay. Assume that the transmission time for the acknowledgement and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least 50% is______________.
Correct Answer : 160
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 37
Consider a max heap, represented by the array: 40, 30, 20, 10, 15, 16, 17, 8, 4.
\(\begin{array}{|l|l|}\hline \text{Array index} & \text{1} & \text{2} & \text{3} & \text{4} & \text{5} & \text{6} & \text{7} & \text{8} & \text{9} \\\hline \text{Value} & \text{40} & \text{30} & \text{20} & \text{10} &\text{15} & \text{16} & \text{17} & \text{8} & \text{4} \\\hline \end{array}\)
Now consider that a value 35 is inserted into this heap. After insertion, the new heap is
40, 30, 20, 10, 15, 16, 17, 8, 4, 35
40, 35, 20, 10, 30, 16, 17, 8, 4, 15
40, 30, 20, 10, 35, 16, 17, 8, 4, 15
40, 35, 20, 10, 15, 16, 17, 8, 4, 30
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 38
Consider the following C program segment.
while (first <= last) { if (array[middle] < search) first = middle + 1; else if (array[middle] == search) found = TRUE; else last = middle - 1; middle = (first + last)/2; } if (first > last) notpresent = TRUE;
Correct Answer : 5
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 39
Consider a LAN with four nodes 𝑆1, 𝑆2, 𝑆3 and 𝑆4. Time is divided into fixed-size slots, and a node can begin its transmission only at the beginning of a slot. A collision is said to have occurred if more than one node transmit in the same slot. The probabilities of generation of a frame in a time slot by 𝑆1, 𝑆2, 𝑆3 and 𝑆4 are 0.1, 0.2, 0.3 and 0.4, respectively. The probability of sending a frame in the first slot without any collision by any of these four stations is _____________.
Correct Answer : 0.40 to 0.46
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 40
The binary operator ≠ is defined by the following truth table.
\(\begin{array}{|l|l|l|} \hline \textbf{p} & \textbf{q}& \textbf{p} \neq \textbf{q}\\\hline \text{0} & \text{0}& \text{0}\\\hline \text{0} & \text{1}& \text{1}\\\hline \text{1} & \text{0}& \text{1}\\\hline \text{1} & \text{1}& \text{0}\\\hline \end{array}\)
Which one of the following is true about the binary operator ≠?
Both commutative and associative
Commutative but not associative
Not commutative but associative
Neither commutative nor associative
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 41
\(\sum\limits_{x=1}^{99}\frac{1}{x(x+1)}\) = ____________.
Correct Answer : 0.99
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 42
Suppose \(L = \left\{ p, q, r, s, t\right\}\) is a lattice represented by the following Hasse diagram:
For any \(x, y \in L\), not necessarily distinct , \(x \vee y\) and \(x \wedge y\) are join and meet of \(x,y\), respectively. Let \(L^3 = \left\{\left(x, y, z\right): x, y, z \in L\right\}\) be the set of all ordered triplets of the elements of \(L\). Let \(p_{r}\) be the probability that an element \(\left(x, y,z\right) \in L^3\) chosen equiprobably satisfies \(x \vee (y \wedge z) = (x \vee y) \wedge (x \vee z)\). Then
\(p_r = 0\)
\(p_r = 1\)
\(0 < p_r ≤ \frac{1}{5}\)
\(\frac{1}{5} < p_r < 1\)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 43
Consider the operations
\(\textit{f (X, Y, Z) = X'YZ + XY' + Y'Z'}\) and
\(\textit{g (X, Y, Z) = X'YZ + X'YZ' + XY}\)
Which one of the following is correct?
Both {𝑓} and {𝑔} are functionally complete
Only {𝑓} is functionally complete
Only {𝑔} is functionally complete
Neither {𝑓} nor {𝑔} is functionally complete
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 44
Let G be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in G is ___________.
Correct Answer : 24
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 45
Let \(a_n\) represent the number of bit strings of length \(n\) containing two consecutive 1s. What is the recurrence relation for \(a_n\) ?
\(a_{n - 2} + a_{n - 1} + 2^{n - 2}\)
\(a_{n - 2} + 2a_{n - 1} + 2^{n - 2}\)
\(2a_{n - 2} + a_{n - 1} + 2^{n - 2}\)
\(2a_{n - 2} + 2a_{n - 1} + 2^{n - 2}\)
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 46
A variable \(x\) is said to be live at a statement \(S_i\) in a program if the following three conditions hold simultaneously:
i. There exists a statement \(S_j\) that uses \(x\)
ii. There is a path from \(S_i\) to \(S_j\) in the flow graph corresponding to the program
iii. The path has no intervening assignment to \(x\) including at \(S_i\) and \(S_j\)
The variables which are live both at the statement in basic block 2 and at the statement in basic block 3 of the above control flow graph are
\(p, s, u\)
\( r, s, u\)
\(r, u\)
\(q, v\)
Correct Answer : C
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 47
The least number of temporary variables required to create a three-address code in static single assignment form for the expression \(q + r / 3 + s – t * 5 + u * v /w\) is _______________.
Correct Answer : 8
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 48
Consider an Entity-Relationship (ER) model in which entity sets \(E_1\) and \(E_2\) are connected by an \(m : n\) relationship \(R_{12}\). \(E_1\) and \(E_3\) are connected by a \(1 : n\) (1 on the side of \(E_1\) and \(n\) on the side of \(E_3\)) relationship \(R_{13}\).
\(E_1\) has two single-valued attributes \(a_{11}\) and \(a_{12}\) of which \(a_{11}\) is the key attribute. \(E_2\) has two singlevalued attributes \(a_{21}\) and \(a_{22}\) of which \(a_{21}\) is the key attribute. \(E_3\) has two single-valued attributes \(a_{31}\) and \(a_{32}\) of which \(a_{31}\) is the key attribute. The relationships do not have any attributes.
If a relational model is derived from the above ER model, then the minimum number of relations that would be generated if all the relations are in 3NF is _______.
Correct Answer : 4
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 49
Consider the DFAs M and N given above. The number of states in a minimal DFA that accepts the language L(M) ∩ L(N) is____________________
Correct Answer : 1
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 50
Consider the NPDA \(\left \langle Q= \left \{ q_{0}, q_{1}, q_{2} \right \},\Sigma = \left \{ 0, 1 \right \}, \Gamma = \left \{ 0, 1, \perp \right \}, \delta, q_{0}, \perp, F =\left \{ q_{2} \right \} \right \rangle\), where (as per usual convention) \(Q\) is the set of states, \(∑\) is the input alphabet, \(Γ\) is the stack alphabet, \(𝛿\) is the state transition function, \(q_0\) is the initial state, \(⊥\) is the initial stack symbol, and \(F\) is the set of accepting states. The state transition is as follows:
Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?
10110
10010
01010
01001
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 51
Let \(G = (V, E)\) be a simple undirected graph, and \(s\) be a particular vertex in it called the source. For \(x ∈ V\) , let \(d(x)\) denote the shortest distance in \(G\) from sto \(x\) . A breadth first search (BFS) is performed starting at \(s\). Let \(T\) be the resultant BFS tree. If \((u,v)\) is an edge of \(G\) that is not in \(T\) , then which one of the following CANNOT be the value of \(d(u) - d(v) \)?
-1
0
1
2
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 52
Consider a uniprocessor system executing three tasks T1, T2 and T3, each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of 3, 7 and 20 milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of priority, with the highest priority task scheduled first. Each instance of T1, T2 and T3 requires an execution time of 1, 2 and 4 milliseconds, respectively. Given that all tasks initially arrive at the beginning of the 1st millisecond and task preemptions are allowed, the first instance of T3 completes its execution at the end of _____________ milliseconds.
Correct Answer : 12
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 53
A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flip-flop as follows. The Q output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the Q output of the JK flip-flop is connected to the input of the D flip-flop. Initially, the output of the D flip-flop is set to logic one and the output of the JK flip-flop is cleared. Which one of the following is the bit sequence (including the initial state) generated at the Q output of the JK flip-flop when the flip-flops are connected to a free-running common clock? Assume that J = K = 1 is the toggle mode and J = K = 0 is the state-holding mode of the JK flip-flop. Both the flip-flops have non-zero propagation delays.
0110110…
0100100…
011101110…
011001100…
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 54
Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is ____________.
Correct Answer : 14020
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 55
Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is_________.
Correct Answer : 3.2
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 56
Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves towards 100 when it starts execution) is____________ tracks.
Correct Answer : 10
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 57
Consider a main memory with five page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Both incur the same number of page faults
FIFO incurs 2 more page faults than LRU
LRU incurs 2 more page faults than FIFO
FIFO incurs 1 more page faults than LRU
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 58
\(\large \int \limits_{\frac{1}{\pi}}^{\frac{2}{\pi}}\frac{\cos(1/x)}{x^{2}}dx\) =__________________.
Correct Answer : -1
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 59
Consider the following 2 × 2 matrix \(A\) where two elements are unknown and are marked by \(a\) and \(b\). The eigenvalues of this matrix are -1 and 7. What are the values of \(a\) and \(b\)?
\(\qquad A = \begin{pmatrix}1 & 4\\ b&a \end{pmatrix}\)
\(a = 6, b = 4\)
\(a = 4, b = 6\)
\(a = 3, b = 5\)
\(a = 5, b =3\)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 60
An algorithm performs \((\log N)^{1/2}\) find operations, \(N\) insert operations, \((\log N)^{1/2}\) delete operations, and \((\log N)^{1/2}\) decrease-key operations on a set of data items with keys drawn from a linearly ordered set. For a delete operation, a pointer is provided to the record that must be deleted. For the decrease-key operation, a pointer is provided to the record that has its key decreased. Which one of the following data structures is the most suited for the algorithm to use, if the goal is to achieve the best total asymptotic complexity considering all the operations?
Unsorted array
Min-heap
Sorted array
Sorted doubly linked list
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 61
Consider the following relations:
\(\overset{\text{Student}}{\begin{array}{|c|c|}\hline\\ \underline{\textbf{Roll_No}}& \textbf{Student_Name}\\\hline 1& \text{Raj} \\ \hline 2& \text{Rohit}\\ \hline 3& \text{Raj} \\\hline \end{array}} \qquad\overset{\text{Performance}}{\begin{array}{|c|l|r|c|}\hline\\ \underline{\textbf{Roll_No}}& \underline{\textbf{Course}}& \textbf{Marks} \\\hline 1& \text{Math}& 80 \\ \hline 1& \text{English}& 70 \\ \hline 2& \text{Math}& 75 \\\hline 3& \text{English}& 80 \\\hline 2& \text{Physics}& 65 \\\hline 3& \text{Math}& 80 \\\hline \end{array}}\)
Consider the following SQL query.
SELECT S.Student_Name, Sum(P. Marks) FROM Student S, Performance P WHERE S.Roll_No= P.Roll_No GROUP BY S.STUDENT_Name
The numbers of rows that will be returned by the SQL query is_________________.
Correct Answer : 2
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 62
What is the output of the following C code? Assume that the address of \(x\) is 2000 (in decimal) and an integer requires four bytes of memory.
int main () { unsigned int x [4] [3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}; printf ("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3); }
2036, 2036, 2036
2012, 4, 2204
2036, 10, 10
2012, 4, 6
Correct Answer : A
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 63
The graph shown below has 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges: {(A, C), (B, C), (B, E), (E, F), (D, F)}. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all 8 edges of this graph is ___________.
Correct Answer : 69
Question Type : NAT
Max Marks : 2
Negative Marks : 0
Question : 64
Consider the following C function.
int fun1 (int n) { int i, j, k, p, q = 0; for (i = 1; i < n; ++i) { p = 0; for (j = n; j > 1; j = j/2) ++p; for (k = 1; k < p; k = k * 2) ++q; } return q; }
Which one of the following most closely approximates the return value of the function fun1?
\(n^2\)
\(n (log \ n)^2\)
\(n \ log \ n\)
\(n \ log(log \ n)\)
Correct Answer : D
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67
Question : 65
Consider the following pseudo code, where \(x\) and \(y\) are positive integers.
begin q := 0 r := x while r ≥ y do begin r := r - y q := q + 1 end end
The post condition that needs to be satisfied after the program terminates is
\(\{ r = qx + y \wedge r < y\}\)
\(\{ x = qy + r \wedge r < y\}\)
\(\{ y = qx + r \wedge 0 < r < y\}\)
\(\{ q + 1 < r - y \wedge y > 0\}\)
Correct Answer : B
Question Type : MCQ
Max Marks : 2
Negative Marks : 0.67