The PYQ practice room

GATE CS 2016 Set 2

All 65 solved GATE CS 2016 Set 2 questions in exam order. Open a question, commit to an answer, and learn from the step-by-step solution. One question at a time.

Attempt before revealInstant answer feedbackExplore questions
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.

Questions

65

Paper marks

100

Question formats

2

MCQ · NAT

Revision mode

Self-paced

No timer. Focus on understanding.

Difficulty mixEasy 24Medium 39Hard 2

Explore the questions

65 of 65 questions

General Aptitude (GA)

10
  1. Think it through. Then check your answer.

    Question

    The man who is now Municipal Commissioner worked as ____________________.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  2. Think it through. Then check your answer.

    Question

    Nobody knows how the Indian cricket team is going to cope with the difficult and seamer-friendly wickets in Australia.
    Choose the option which is closest in meaning to the underlined phrase in the above sentence.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  3. Think it through. Then check your answer.

    Question

    Find the odd one in the following group of words.
    mock, deride, praise, jeer
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  4. Think it through. Then check your answer.

    Question

    Pick the odd one from the following options.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  5. Think it through. Then check your answer.

    Question

    In a quadratic function, the value of the product of the roots (α,β)(\alpha, \beta) is 4. Find the value ofαn+βnαn+βn\frac{\alpha^n + \beta^n}{\alpha^{-n} + \beta^{-n}}
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  6. Think it through. Then check your answer.

    Question

    Among 150 faculty members in an institute, 55 are connected with each other through Facebook® and 85 are connected through WhatsApp®. 30 faculty members do not have Facebook® or WhatsApp® accounts. The number of faculty members connected only through Facebook® accounts is ______________.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  7. Think it through. Then check your answer.

    Question

    Computers were invented for performing only high-end useful computations. However, it is no understatement that they have taken over our world today. The internet, for example, is ubiquitous. Many believe that the internet itself is an unintended consequence of the original invention. With the advent of mobile computing on our phones, a whole new dimension is now enabled. One is left wondering if all these developments are good or, more importantly, required.
    Which of the statement(s) below is/are logically valid and can be inferred from the above paragraph?
    (i) The author believes that computers are not good for us.
    (ii) Mobile computers and the internet are both intended inventions
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  8. Think it through. Then check your answer.

    Question

    All hill-stations have a lake. Ooty has two lakes.
    Which of the statement(s) below is/are logically valid and can be inferred from the above sentences?
    (i) Ooty is not a hill-station.
    (ii) No hill-station can have more than one lake.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  9. Think it through. Then check your answer.

    Question

    In a 2×42 \times 4 rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?

    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  10. Think it through. Then check your answer.

    Question

    Choose the correct expression for f(x)f(x) given in the graph.
    Plot of f(x) vs x
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page

COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

55
  1. Think it through. Then check your answer.

    Question

    Consider the following expressions:
    (i) false
    (ii) QQ
    (iii) true
    (iv) PQP \lor Q
    (v) ¬QP\neg Q \lor P
    The number of expressions given above that are logically implied by P(PQ)P \land (P \Rightarrow Q) is
    ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  2. Think it through. Then check your answer.

    Question

    Let f(x)f(x) be a polynomial and g(x)=f(x)g(x) = f'(x) be its derivative. If the degree of (f(x)+f(x))(f(x) + f(-x)) is 10, then the degree of (g(x)g(x))(g(x) - g(-x)) is ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  3. Think it through. Then check your answer.

    Question

    The minimum number of colours that is sufficient to vertex-colour any planar graph is
    ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  4. Think it through. Then check your answer.

    Question

    Consider the systems, each consisting of mm linear equations in nn variables.
    I. If m<nm < n, then all such systems have a solution
    II. If m>nm > n, then none of these systems has a solution
    III. If m=nm = n, then there exists a system which has a solution
    Which one of the following is CORRECT?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  5. Think it through. Then check your answer.

    Question

    Suppose that a shop has an equal number of LED bulbs of two different types. The probability of an LED bulb lasting more than 100 hours given that it is of Type 1 is 0.7, and given that it is of Type 2 is 0.4. The probability that an LED bulb chosen uniformly at random lasts more than 100 hours is _________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  6. Think it through. Then check your answer.

    Question

    Suppose that the eigenvalues of matrix AA are 1, 2, 4. The determinant of (A1)T(A^{-1})^T is
    _________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  7. Think it through. Then check your answer.

    Question

    Consider an eight-bit ripple-carry adder for computing the sum of AA and BB, where AA and BB are integers represented in 2’s complement form. If the decimal value of AA is one, the decimal value of BB that leads to the longest latency for the sum to stabilize is __________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  8. Think it through. Then check your answer.

    Question

    Let, x1x2x3x4=0x_1 \oplus x_2 \oplus x_3 \oplus x_4 = 0 where x1,x2,x3,x4x_1, x_2, x_3, x_4 are Boolean variables, and \oplus is the XOR operator.
    Which one of the following must always be TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  9. Think it through. Then check your answer.

    Question

    Let XX be the number of distinct 16-bit integers in 2’s complement representation. Let YY be the number of distinct 16-bit integers in sign magnitude representation.
    Then XYX - Y is _______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  10. Think it through. Then check your answer.

    Question

    A processor has 40 distinct instructions and 24 general purpose registers. A 32-bit instruction word has an opcode, two register operands and an immediate operand. The number of bits available for the immediate operand field is ______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  11. Think it through. Then check your answer.

    Question

    Breadth First Search (BFS) is started on a binary tree beginning from the root vertex. There is a vertex tt at a distance four from the root. If tt is the nn-th vertex in this BFS traversal, then the maximum possible value of nn is ______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  12. Think it through. Then check your answer.

    Question

    The value printed by the following program is ______.
    void f(int* p, int m){
     m = m + 5;
     *p = *p + m;
     return;
    }
    void main(){
     int i=5, j=10;
     f(&i, j);
     printf("%d", i+j);
    }
    
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  13. Think it through. Then check your answer.

    Question

    Assume that the algorithms considered here sort the input sequences in ascending order. If the input is already in ascending order, which of the following are TRUE?
    I. Quicksort runs in Θ(n2)\Theta(n^2) time
    II. Bubblesort runs in Θ(n2)\Theta(n^2) time
    III. Mergesort runs in Θ(n)\Theta(n) time
    IV. Insertion sort runs in Θ(n)\Theta(n) time
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  14. Think it through. Then check your answer.

    Question

    The Floyd-Warshall algorithm for all-pair shortest paths computation is based on
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  15. Think it through. Then check your answer.

    Question

    NN items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed.
    An algorithm performs the following operations on the list in this order: Θ(N)\Theta(N) delete, O(logN)O(\log N) insert, O(logN)O(\log N) find, and Θ(N)\Theta(N) decrease-key. What is the time complexity of all these operations put together?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  16. Think it through. Then check your answer.

    Question

    The number of states in the minimum sized DFA that accepts the language defined by the regular expression(0+1)(0+1)(0+1)(0+1)^*(0+1)(0+1)^*is ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  17. Think it through. Then check your answer.

    Question

    Language L1L_1 is defined by the grammar: S1aS1bϵS_1 \to aS_1b \mid \epsilon
    Language L2L_2 is defined by the grammar: S2abS2ϵS_2 \to abS_2 \mid \epsilonConsider the following statements:
    PP: L1L_1 is regular
    QQ: L2L_2 is regular
    Which one of the following is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  18. Think it through. Then check your answer.

    Question

    Consider the following types of languages: L1L_1 : Regular, L2L_2 : Context-free, L3L_3 : Recursive, L4L_4 : Recursively enumerable. Which of the following is/are TRUE?
    I. L3L4\overline{L_3} \cup L_4 is recursively enumerable
    II. L2L3\overline{L_2} \cup L_3 is recursive
    III. L1L2L_1^* \cap L_2 is context-free
    IV. L1L2L_1 \cup \overline{L_2} is context-free
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  19. Think it through. Then check your answer.

    Question

    Match the following:
    (P) Lexical analysis(i) Leftmost derivation
    (Q) Top down parsing(ii) Type checking
    (R) Semantic analysis(iii) Regular expressions
    (S) Runtime environments(iv) Activation records
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  20. Think it through. Then check your answer.

    Question

    In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  21. Think it through. Then check your answer.

    Question

    B+ Trees are considered BALANCED because
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  22. Think it through. Then check your answer.

    Question

    Suppose a database schedule SS involves transactions T1,,TnT_1, \dots, T_n. Construct the precedence graph of SS with vertices representing the transactions and edges representing the conflicts. If SS is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  23. Think it through. Then check your answer.

    Question

    Anarkali digitally signs a message and sends it to Salim. Verification of the signature by Salim requires
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  24. Think it through. Then check your answer.

    Question

    In an Ethernet local area network, which one of the following statements is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  25. Think it through. Then check your answer.

    Question

    Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  26. Think it through. Then check your answer.

    Question

    A binary relation RR on N×N\mathbb{N} \times \mathbb{N} is defined as follows: (a,b)R(c,d)(a,b)R(c,d) if aca \le c or bdb \le d. Consider the following propositions:
    P: RR is reflexive
    Q: RR is transitive
    Which one of the following statements is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  27. Think it through. Then check your answer.

    Question

    Which one of the following well-formed formulae in predicate calculus is NOT valid?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  28. Think it through. Then check your answer.

    Question

    Consider a set UU of 23 different compounds in a Chemistry lab. There is a subset SS of UU of 9 compounds, each of which reacts with exactly 3 compounds of UU. Consider the following statements:
    I. Each compound in USU \setminus S reacts with an odd number of compounds.
    II. At least one compound in USU \setminus S reacts with an odd number of compounds.
    III. Each compound in USU \setminus S reacts with an even number of compounds.
    Which one of the above statements is ALWAYS TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  29. Think it through. Then check your answer.

    Question

    The value of the expression 1399(mod17)13^{99} \pmod{17}, in the range 0 to 16, is ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  30. Think it through. Then check your answer.

    Question

    Suppose the functions FF and GG can be computed in 5 and 3 nanoseconds by functional units UFU_F and UGU_G, respectively. Given two instances of UFU_F and two instances of UGU_G, it is required to implement the computation F(G(Xi))F(G(X_i)) for 1i101 \le i \le 10. Ignoring all other delays, the minimum time required to complete this computation is ________ nanoseconds.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  31. Think it through. Then check your answer.

    Question

    Consider a processor with 64 registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and a twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has 100 instructions, the amount of memory (in bytes) consumed by the program text is ________ .
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  32. Think it through. Then check your answer.

    Question

    The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is ________ bits.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  33. Think it through. Then check your answer.

    Question

    Consider a 3 GHz (gigahertz) processor with a three-stage pipeline and stage latencies τ1\tau_1, τ2\tau_2, and τ3\tau_3 such that τ1=3τ2/4=2τ3\tau_1 = 3\tau_2/4 = 2\tau_3. If the longest pipeline stage is split into two pipeline stages of equal latency, the new frequency is ________ GHz, ignoring delays in the pipeline registers.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  34. Think it through. Then check your answer.

    Question

    A complete binary min-heap is made by including each integer in [1,1023][1, 1023] exactly once. The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 0. The maximum depth at which integer 9 can appear is __________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  35. Think it through. Then check your answer.

    Question

    The following function computes XYX^Y for positive integers X and Y.
    int exp(int X, int Y) {
        int res = 1, a = X, b = Y;
    
        while ( b != 0 ){
            if ( b%2 == 0) { a = a*a; b = b/2; }
            else           { res = res*a; b = b-1; }
        }
        return res;
    }
    
    Which one of the following conditions is TRUE before every iteration of the loop?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  36. Think it through. Then check your answer.

    Question

    Consider the following New-order strategy for traversing a binary tree:
    • Visit the root;
    • Visit the right subtree using New-order;
    • Visit the left subtree using New-order;
    The New-order traversal of the expression tree corresponding to the reverse polish expression 3 4  5  2 ^ 6 7  1 + 3 \ 4 \ * \ 5 \ - \ 2 \ \hat{} \ 6 \ 7 \ * \ 1 \ + \ - is given by:
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  37. Think it through. Then check your answer.

    Question

    Consider the following program:
    int f(int *p, int n)
    {
        if (n <= 1) return 0;
        else return max(f(p+1,n-1),p[0]-p[1]);
    }
    
    int main()
    {
        int a[] = {3,5,2,6,4};
        printf("%d", f(a,5));
    }
    
    Note: max(x,y)max(x,y) returns the maximum of xx and yy.
    The value printed by this program is ______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  38. Think it through. Then check your answer.

    Question

    Let A1,A2,A3A_1, A_2, A_3, and A4A_4 be four matrices of dimensions 10×5,5×20,20×1010 \times 5, 5 \times 20, 20 \times 10, and 10×510 \times 5, respectively. The minimum number of scalar multiplications required to find the product A1A2A3A4A_1 A_2 A_3 A_4 using the basic matrix multiplication method is ______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  39. Think it through. Then check your answer.

    Question

    The given diagram shows the flowchart for a recursive function A(n)A(n). Assume that all statements, except for the recursive calls, have O(1)O(1) time complexity. If the worst case time complexity of this function is O(nα)O(n^\alpha), then the least possible value (accurate up to two decimal positions) of α\alpha is ______.
    Flowchart for Recursive Function A(n)
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  40. Think it through. Then check your answer.

    Question

    A file system uses an in-memory cache to cache disk blocks. The miss rate of the cache is shown in the figure. The latency to read a block from the cache is 1 ms and to read a block from the disk is 10 ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 10 MB.
    Graph showing Miss rate (%) vs Cache size (MB). The curve passes through points approximately (10, 80), (20, 60), (30, 40), (40, 30), (50, 20), (60, 15), (70, 10), (80, 5).
    The smallest cache size required to ensure an average read latency of less than 6 ms is ______ MB.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  41. Think it through. Then check your answer.

    Question

    In an adjacency list representation of an undirected simple graph G=(V,E)G = (V, E), each edge (u,v)(u, v) has two adjacency list entries: [v][v] in the adjacency list of uu, and [u][u] in the adjacency list of vv. These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin. If E=m|E| = m and V=n|V| = n, and the memory size is not a constraint, what is the time complexity of the most efficient algorithm to set the twin pointer in each entry in each adjacency list?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  42. Think it through. Then check your answer.

    Question

    Consider the following two statements:
    I. If all states of an NFA are accepting states then the language accepted by the NFA is Σ\Sigma^*.
    II. There exists a regular language AA such that for all languages BB, ABA \cap B is regular.
    Which one of the following is CORRECT?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  43. Think it through. Then check your answer.

    Question

    Consider the following languages:L1={anbmcn+m:m,n1}L_1 = \{a^n b^m c^{n+m} : m,n \ge 1\}L2={anbnc2n:n1}L_2 = \{a^n b^n c^{2n} : n \ge 1\}Which one of the following is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  44. Think it through. Then check your answer.

    Question

    Consider the following languages.L1={MM takes at least 2016 steps on some input}L_1 = \{\langle M \rangle \mid M \text{ takes at least 2016 steps on some input}\}L2={MM takes at least 2016 steps on all inputs}L_2 = \{\langle M \rangle \mid M \text{ takes at least 2016 steps on all inputs}\}L3={MM accepts ϵ}L_3 = \{\langle M \rangle \mid M \text{ accepts } \epsilon\}where for each Turing machine MM, M\langle M \rangle denotes a specific encoding of MM. Which one of the following is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  45. Think it through. Then check your answer.

    Question

    Which one of the following grammars is free from left recursion?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  46. Think it through. Then check your answer.

    Question

    A student wrote two context-free grammars G1 and G2 for generating a single C-like array declaration. The dimension of the array is at least one. For example,
    int a[10][3];
    The grammars use DD as the start symbol, and use six terminal symbols int ; id [ ] num.
    Grammar G1
    Dint L;D \to \textbf{int } L;
    Lid [EL \to \textbf{id } [ E
    Enum ]E \to \textbf{num ]}
    Enum ] [EE \to \textbf{num ] } [ E
    Grammar G2
    Dint L;D \to \textbf{int } L;
    Lid EL \to \textbf{id } E
    EE[num ]E \to E [ \textbf{num ]}
    E[num ]E \to [ \textbf{num ]}
    Which of the grammars correctly generate the declaration mentioned above?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  47. Think it through. Then check your answer.

    Question

    Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first.
    ProcessArrival TimeBurst Time
    P1P_1010
    P2P_236
    P3P_371
    P4P_483
    The average turn around time of these processes is ________ milliseconds.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  48. Think it through. Then check your answer.

    Question

    Consider the following two-process synchronization solution.
    Process 0
    ---------
    Entry: loop while (turn == 1);
    (critical section)
    Exit: turn = 1;
    
    Process 1
    ----------
    Entry: loop while (turn == 0);
    (critical section)
    Exit: turn = 0;
    
    The shared variable turn is initialized to zero. Which one of the following is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  49. Think it through. Then check your answer.

    Question

    Consider a non-negative counting semaphore SS. The operation P(S) decrements SS, and V(S) increments SS. During an execution, 2020 P(S) operations and 1212 V(S) operations are issued in some order. The largest initial value of SS for which at least one P(S) operation will remain blocked is _______.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  50. Think it through. Then check your answer.

    Question

    A file system uses an in-memory cache to cache disk blocks. The miss rate of the cache is shown in the figure. The latency to read a block from the cache is 11 ms and to read a block from the disk is 1010 ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 1010 MB.
    Graph of Miss rate (%) vs Cache size (MB)

    The smallest cache size required to ensure an average read latency of less than 66 ms is _______ MB.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  51. Think it through. Then check your answer.

    Question

    Consider the following database schedule with two transactions, T1T_1 and T2T_2.S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2S = r_2(X); r_1(X); r_2(Y); w_1(X); r_1(Y); w_2(X); a_1; a_2where ri(Z)r_i(Z) denotes a read operation by transaction TiT_i on a variable ZZ, wi(Z)w_i(Z) denotes a write operation by TiT_i on a variable ZZ and aia_i denotes an abort by transaction TiT_i.
    Which one of the following statements about the above schedule is TRUE?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  52. Think it through. Then check your answer.

    Question

    Consider the following database table named water_schemes :
    scheme_nodistrict_namecapacity
    1Ajmer20
    1Bikaner10
    2Bikaner10
    3Bikaner20
    1Churu10
    2Churu20
    1Dungargarh10
    The number of tuples returned by the following SQL query is _______.
    with total(name, capacity) as
       select district_name, sum(capacity)
       from water_schemes
       group by district_name
    with total_avg(capacity) as
       select avg(capacity)
       from total
    select name
       from total, total_avg
       where total.capacity >= total_avg.capacity
    
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  53. Think it through. Then check your answer.

    Question

    A network has a data transmission bandwidth of 20×10620 \times 10^6 bits per second. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is 4040 microseconds. The minimum size of a frame in the network is _______ bytes.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  54. Think it through. Then check your answer.

    Question

    For the IEEE 802.11 MAC protocol for wireless communication, which of the following statements is/are TRUE?
    I. At least three non-overlapping channels are available for transmissions.
    II. The RTS-CTS mechanism is used for collision detection.
    III. Unicast frames are ACKed.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page
  55. Think it through. Then check your answer.

    Question

    Consider a 128×103128 \times 10^3 bits/second satellite communication link with one way propagation delay of 150 milliseconds. Selective retransmission (repeat) protocol is used on this link to send data with a frame size of 1 kilobyte. Neglect the transmission time of acknowledgement. The minimum number of bits required for the sequence number field to achieve 100% utilization is ________.
    Your answer

    Enter a number. Decimals, negative values and scientific notation are accepted.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page