The PYQ practice room

GATE CS 2015 Set 1

All 65 solved GATE CS 2015 Set 1 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 31Medium 32Hard 2

Explore the questions

65 of 65 questions

General Aptitude (GA)

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

    Question

    Didn't you buy ________________ when you went shopping?
    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

    Which of the following options is the closest in meaning to the sentence below?
    She enjoyed herself immensely at the party.
    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

    Which one of the following combinations is incorrect?
    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

    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.
    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

    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?
    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

    Select the alternative meaning of the underlined part of the sentence.
    The chain snatchers took to their heels when the police party arrived.
    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

    The given statement is followed 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:
    (Ⅰ) The water supply authority should impose a partial cut in supply to tackle the situation.
    (Ⅱ) 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.
    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

    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 difference between the numbers of female students in the Civil department and the female students in the Mechanical department?
    Pie chart showing student distribution by department: Computer Science 40%, Civil 30%, Electrical 20%, Mechanical 10%
    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
  9. Think it through. Then check your answer.

    Question

    The probabilities that a student passes in Mathematics, Physics and Chemistry are mm, pp, and cc 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 mm, pp, cc:
    (I) p+m+c=27/20p+m+c=27/20
    (II) p+m+c=13/20p+m+c=13/20
    (III) (p)×(m)×(c)=1/10(p)\times(m)\times(c) = 1/10
    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

    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.
    Q No.MarksAnswered CorrectlyAnswered WronglyNot Attempted
    1221176
    2315272
    3111294
    4223183
    5531121
    What is the average of the marks obtained by the class in the examination?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page

Questions

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

    Question

    If g(x)=1xg(x)=1-x and h(x)=xx1h(x)=\frac{x}{x-1}, then g(h(x))h(g(x))\frac{g(h(x))}{h(g(x))} is:
    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

    limxx1/x\lim_{x\to\infty} x^{1/x} is
    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

    Match the following:
    AlgorithmDesign Paradigm
    (P) Prim's algorithm for minimum spanning tree(i) Backtracking
    (Q) Floyd-Warshall algorithm for all pairs shortest paths(ii) Greedy method
    (R) Mergesort(iii) Dynamic programming
    (S) Hamiltonian circuit(iv) Divide and conquer
    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

    Which one of the following is the recurrence equation for the worst case time complexity of the Quicksort algorithm for sorting n(2)n (\ge 2) numbers? In the recurrence equations given in the options below, cc is a constant.
    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

    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
    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

    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
    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

    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
    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

    Which one of the following is TRUE at any valid state in shift-reduce parsing?
    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

    Which one of the following is NOT equivalent to pqp \leftrightarrow q?
    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

    For a set AA, the power set of AA is denoted by 2A2^A. If A={5,{6},{7}}A = \{5, \{6\}, \{7\}\}, which of the following options are TRUE?
    I. 2A\emptyset \in 2^A
    II. 2A\emptyset \subseteq 2^A
    III. {5,{6}}2A\{5, \{6\}\} \in 2^A
    IV. {5,{6}}2A\{5, \{6\}\} \subseteq 2^A
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider a 4-bit Johnson counter with an initial value of 0000. The counting sequence of this counter is
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    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
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    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 mm, then the sequence number of the subsequent segment is always m+1m+1.
    II. If the estimated round trip time at any given point of time is tt sec, the value of the retransmission timeout is always set to greater than or equal to tt 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.
    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

    Suppose that everyone in a group of NN people wants to communicate secretly with the N1N-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
    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

    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
    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

    Match the following:
    List IList II
    (P)Condition coverage(i)Black-box testing
    (Q)Equivalence class partitioning(ii)System testing
    (R)Volume testing(iii)White-box testing
    (S)Alpha testing(iv)Performance testing
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    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
    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

    Which one of the following is TRUE at any valid state in shift-reduce parsing?
    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

    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 _________.
    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
  20. Think it through. Then check your answer.

    Question

    The following two functions P1P1 and P2P2 that share a variable BB 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 BB can possibly take after the execution 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
  21. Think it through. Then check your answer.

    Question

    SELECT operation in SQL is equivalent to
    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

    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
    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

    In the LU decomposition of the matrix [2249]\begin{bmatrix} 2 & 2 \\ 4 & 9 \end{bmatrix}, if the diagonal elements of UU are both 1, then the lower diagonal entry l22l_{22} of LL 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
  24. Think it through. Then check your answer.

    Question

    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);
    }
    
    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
  25. Think it through. Then check your answer.

    Question

    What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
    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

    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 ___________.
    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
  27. Think it through. Then check your answer.

    Question

    Consider a max heap, represented by the array: 40, 30, 20, 10, 15, 16, 17, 8, 4.
    Array Index123456789
    Value4030201015161784
    Now consider that a value 35 is inserted into this heap. After insertion, the new heap is
    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 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;
    

    The cyclomatic complexity of the program segment 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
  29. Think it through. Then check your answer.

    Question

    Consider a LAN with four nodes S1,S2,S3S_1, S_2, S_3 and S4S_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 S1,S2,S3S_1, S_2, S_3 and S4S_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 ________.
    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

    The binary operator \neq is defined by the following truth table.
    pqp \neq q
    000
    011
    101
    110
    Which one of the following is true about the binary operator \neq?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    x=1991x(x+1)\sum_{x=1}^{99} \frac{1}{x(x+1)}
    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

    Suppose L={p,q,r,s,t}L = \{p, q, r, s, t\} is a lattice represented by the following Hasse diagram:
    Hasse diagram of a lattice L

    For any x,yLx, y \in L, not necessarily distinct, xyx \lor y and xyx \land y are join and meet of x,yx, y, respectively. Let L3={(x,y,z):x,y,zL}L^3 = \{(x, y, z): x, y, z \in L\} be the set of all ordered triplets of the elements of LL. Let prp_r be the probability that an element (x,y,z)L3(x, y, z) \in L^3 chosen equiprobably satisfies x(yz)=(xy)(xz)x \lor (y \land z) = (x \lor y) \land (x \lor z). Then
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider the operationsf(X,Y,Z)=XYZ+XY+YZf(X, Y, Z) = X'YZ + XY' + Y'Z' and g(X,Y,Z)=XYZ+XYZ+XYg(X, Y, Z) = X'YZ + X'YZ' + XY.
    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
  34. Think it through. Then check your answer.

    Question

    Let GG be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in GG 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

    What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
    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

    A variable xx is said to be live at a statement SiS_i in a program if the following three conditions hold simultaneously:
    i. There exists a statement SjS_j that uses xx
    ii. There is a path from SiS_i to SjS_j in the flow graph corresponding to the program
    iii. The path has no intervening assignment to xx including at SiS_i and SjS_j
    Control flow graph with 4 blocks. Block 1: p=q+r, s=p+q, u=s*v. Block 2: v=r+u. Block 3: q=s*u. Block 4: q=v+r. Edges: 1->2, 1->3, 2->4, 3->4, 4->1
    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
    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

    The least number of temporary variables required to create a three-address code in static single assignment form for the expression q+r/3+st5+uv/wq + r / 3 + s - t * 5 + u * v / w 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

    Consider an Entity-Relationship (ER) model in which entity sets E1E_1 and E2E_2 are connected by an m:nm:n relationship R12R_{12}. E1E_1 and E3E_3 are connected by a 1:n1:n (1 on the side of E1E_1 and nn on the side of E3E_3) relationship R13R_{13}.E1E_1 has two single-valued attributes a11a_{11} and a12a_{12} of which a11a_{11} is the key attribute. E2E_2 has two single-valued attributes a21a_{21} and a22a_{22} of which a21a_{21} is the key attribute. E3E_3 has two single-valued attributes a31a_{31} and a32a_{32} of which a31a_{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 ___________.
    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

    Consider a LAN with four nodes S1,S2,S3S_1, S_2, S_3 and S4S_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 S1,S2,S3S_1, S_2, S_3 and S4S_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 ___________.
    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

    The binary operator \neq is defined by the following truth table.
    ppqqpqp \neq q
    000
    011
    101
    110
    Which one of the following is true about the binary operator \neq?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Let G=(V,E)G = (V, E) be a simple undirected graph, and ss be a particular vertex in it called the source. For xVx \in V, let d(x)d(x) denote the shortest distance in GG from ss to xx. A breadth first search (BFS) is performed starting at ss. Let TT be the resultant BFS tree. If (u,v)(u, v) is an edge of GG that is not in TT, then which one of the following CANNOT be the value of d(u)d(v)d(u) - d(v)?
    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 a uniprocessor system executing three tasks T1,T2T_1, T_2 and T3T_3, 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,T2T_1, T_2 and T3T_3 requires an execution time of 1, 2 and 4 milliseconds, respectively. Given that all tasks initially arrive at the beginning of the 1st1^{st} millisecond and task preemptions are allowed, the first instance of T3T_3 completes its execution at the end of __________ 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
  43. Think it through. Then check your answer.

    Question

    A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flip-flop as follows. The QQ output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the QQ 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 QQ 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.
    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 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 __________.
    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
  45. Think it through. Then check your answer.

    Question

    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_________.
    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
  46. Think it through. Then check your answer.

    Question

    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.
    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
  47. Think it through. Then check your answer.

    Question

    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)?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    1/π2/πcos(1/x)x2dx=\int_{1/\pi}^{2/\pi} \frac{\cos(1/x)}{x^2} dx = \rule{2cm}{0.15mm}
    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
  49. Think it through. Then check your answer.

    Question

    Consider the following 2×22 \times 2 matrix AA where two elements are unknown and are marked by aa and bb. The eigenvalues of this matrix are -1 and 7. What are the values of aa and bb?A=(14ba)A = \begin{pmatrix} 1 & 4 \\ b & a \end{pmatrix}
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    An algorithm performs (logN)1/2(\log N)^{1/2} find operations, NN insert operations, (logN)1/2(\log N)^{1/2} delete operations, and (logN)1/2(\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?
    Your answer

    Choose one option, then check your answer.

    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 relations:
    Student
    Roll NoStudent_Name
    1Raj
    2Rohit
    3Raj
    Performance
    Roll NoCourseMarks
    1Math80
    1English70
    2Math75
    3English80
    2Physics65
    3Math80
    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 number of rows that will be returned by the SQL query 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
  52. Think it through. Then check your answer.

    Question

    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);
    }
    
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    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 ___________.
    Graph with vertices A, B, C, D, E, F and MST edge weights
    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

    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?
    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 the following pseudo code, where xx and yy 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
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page