The PYQ practice room

GATE CS 2015 Set 3

All 65 solved GATE CS 2015 Set 3 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 17Medium 48

Explore the questions

65 of 65 questions

General Aptitude (GA)

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

    Question

    Extreme focus on syllabus and studying for tests has become such a dominant concern of Indian students that they close their minds to anything ___________ to the requirements of the exam.
    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

    Select the pair that best expresses a relationship similar to that expressed in the pair:
    Children : Pediatrician
    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

    The Tamil version of _________ John Abraham-starrer Madras Cafe _______ cleared by the Censor Board with no cuts last week, but the film's distributors _______ no takers among the exhibitors for a release in Tamil Nadu _________ this Friday.
    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

    If ROAD is written as URDG, then SWAN should be written as:
    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

    A function f(x)f(x) is linear and has a value of 29 at x=2x = -2 and 39 at x=3x = 3. Find its value at x=5x = 5.
    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

    Alexander turned his attention towards India, since he had conquered Persia.
    Which one of the statements below is logically valid and can be inferred from 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
  7. Think it through. Then check your answer.

    Question

    Most experts feel that in spite of possessing all the technical skills required to be a batsman of the highest order, he is unlikely to be so due to lack of requisite temperament. He was guilty of throwing away his wicket several times after working hard to lay a strong foundation. His critics pointed out that until he addressed this problem, success at the highest level will continue to elude him.
    Which of the statement(s) below is/are logically valid and can be inferred from the above passage?
    (i) He was already a successful batsman at the highest level.
    (ii) He has to improve his temperament in order to become a great batsman.
    (iii) He failed to make many of his good starts count.
    (iv) Improving his technical skills will guarantee success.
    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 exports and imports (in crores of Rs.) of a country from the year 2000 to 2007 are given in the following bar chart. In which year is the combined percentage increase in imports and exports the highest?
    Bar chart showing Exports and Imports from 2000 to 2007
    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

    Choose the most appropriate equation for the function drawn as a thick line, in the plot below.
    Plot of a function on x-y plane
    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 head of a newly formed government desires to appoint five of the six selected members P, Q, R, S, T, and U to portfolios of Home, Power, Defense, Telecom, and Finance. U does not want any portfolio if S gets one of the five. R wants either Home or Finance or no portfolio. Q says that if S gets either Power or Telecom, then she must get the other one. T insists on a portfolio if P gets one.
    Which is the valid distribution of portfolios?
    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 C program segment.
    #include <stdio.h>
    int main()
    {
        char s1[7] = "1234", *p;
        p = s1 + 2;
        *p = '0';
        printf("%s", s1);
        return 0;
    }
    

    What will be printed by the program?
    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

    Suppose UU is the power set of the set S={1,2,3,4,5,6}S = \{1,2,3,4,5,6\}. For any TUT \in U, let T|T| denote the number of elements in TT and TT' denote the complement of TT. For any T,RUT, R \in U, let TRT \setminus R be the set of all elements in TT which are not in RR. 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
  3. Think it through. Then check your answer.

    Question

    Consider the relation X(P, Q, R, S, T, U) with the following set of functional dependencies
    F = {{P,R}{S,T}\{P,R\} \to \{S,T\},{P,S,U}{Q,R}\{P,S,U\} \to \{ Q,R\}}
    Which of the following is the trivial functional dependency in F+F^+, where F+F^+ is closure of FF ?
    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

    The maximum number of processes that can be in Ready state for a computer system with nn CPUs is
    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

    Among simple LR (SLR) , canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful , in that order?
    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

    Let # be a binary operator defined asX#Y=X+YX \# Y = X' + Y'where X and Y are Boolean variables.
    Consider the following two statements.
    (S1) (P#Q)#R=P#(Q#R)(P \# Q) \# R = P \# (Q \# R)
    (S2) Q#R=R#QQ \# R = R \# Q
    Which of the following is/are true for the Boolean variables P, Q and R?
    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

    Consider a software project with the following information domain characteristics for calculation of function point metric.
    Number of external inputs (I) = 30
    Number of external outputs (O) = 60
    Number of external inquiries (E) = 23
    Number of files (F) = 08
    Number of external interfaces (N) = 02
    It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric 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

    In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where, varvar is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var=1var = 1 (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form “var.html” referring to the other WebPages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
    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

    Consider the following statements.
    I. TCP connections are full duplex
    II. TCP has no option for selective acknowledgement
    III. TCP connections are message streams
    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

    Consider the equality i=0ni3=X\sum_{i=0}^{n} i^3 = X and the following choices for XX
    I. Θ(n4)\Theta(n^4)
    II. Θ(n5)\Theta(n^5)
    III. O(n5)O(n^5)
    IV. Ω(n3)\Omega(n^3)
    The equality above remains correct if XX is replaced by
    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 binary tree TT that has 200 leaf nodes. Then, the number of nodes in TT that have exactly two children are _______.
    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

    Given a hash table TT with 25 slots that stores 2000 elements, the load factor α\alpha for TT 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
  13. Think it through. Then check your answer.

    Question

    In the given matrix(112010121)\begin{pmatrix} 1 & -1 & 2 \\ 0 & 1 & 0 \\ 1 & 2 & 1 \end{pmatrix}one of the eigenvalues is 1. The eigenvectors corresponding to the eigenvalue 1 are
    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 value of limx(1+x2)ex\lim_{x\to\infty} (1 + x^2)^{e^{-x}} 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 number of 4 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set {1,2,3}\{1, 2, 3\} 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
  16. Think it through. Then check your answer.

    Question

    In a room there are only two types of people, namely Type 1 and Type 2. Type 1 people always tell the truth and Type 2 people always lie. You give a fair coin to a person in that room, without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it. Upon asking, the person replies the following
    "The result of the toss is head if and only if I am telling the truth."
    Which of the following options is correct?
    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

    While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
    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

    The result evaluating the postfix expression 10 5 + 60 6 / * 8 - is
    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 the following relation
    Cinema(theater, address, capacity)
    Which of the following options will be needed at the end of the SQL query
    SELECT P1.address
    FROM Cinema P1
    such that it always finds the addresses of theaters with maximum capacity?
    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

    Consider the following array of elements.
    (89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100)
    The minimum number of interchanges needed to convert it into a max-heap is
    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

    Two processes XX and YY need to access a critical section. Consider the following synchronization construct used by both the processes
    Process X
    /* other code for process X */
    while(true)
    {
        varP = true;
        while(varQ == true)
        {
            /* Critical Section */
            varP = false;
        }
    }
    /* other code for process X */
    
    Process Y
    /* other code for process Y */
    while(true)
    {
        varQ = true;
        while(varP == true)
        {
            /* Critical Section */
            varQ = false;
        }
    }
    /* other code for process Y */
    
    Here, varP and varQ are shared variables and both are initialized to false. 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
  22. Think it through. Then check your answer.

    Question

    Let L be the language represented by the regular expression Σ0011Σ\Sigma^*0011\Sigma^* where Σ={0,1}\Sigma = \{0, 1\}. What is the minimum number of states in a DFA that recognizes Lˉ\bar{L} (complement of L)?
    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

    Consider a software program that is artificially seeded with 100 faults. While testing this program, 159 faults are detected, out of which 75 faults are from those artificially seeded faults. Assuming that both real and seeded faults are of same nature and have same distribution, the estimated number of undetected real faults 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

    Consider a machine with a byte addressable main memory of 2202^{20} bytes, block size of 16 bytes and a direct mapped cache having 2122^{12} cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)16(E201F)_{16} and (E2020)16(E2020)_{16}. What are the tag and cache line address (in hex) for main memory address (E201F)16(E201F)_{16}?
    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

    Consider a CSMA/CD network that transmits data at a rate of 100 Mbps (10810^8 bits per second) over a 1 km (kilometer) cable with no repeaters. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
    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

    The velocity vv (in kilometer/minute) of a motorbike which starts from rest, is given at fixed intervals of time tt (in minutes) as follows:
    t2468101214161820
    v10182529322011520
    The approximate distance (in kilometers) rounded to two places of decimals covered in 20 minutes using Simpson’s 1/3rd1/3^{rd} rule 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

    Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?
    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 recursive C function.
    void get(int n)
    {
        if (n < 1) return;
        get(n - 1);
        get(n - 3);
        printf("%d", n);
    }
    
    If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()?
    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

    Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long and block pointer is 8 bytes long. The maximum number of keys that can be accommodated in each non-leaf node of the tree 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

    Given the function F=P+QRF = P' + QR, where FF is a function in three Boolean variables P,QP, Q and RR and P=!PP' = !P, consider the following statements.
    (S1) F=(4,5,6)F = \sum(4, 5, 6)
    (S2) F=(0,1,2,3,7)F = \sum(0, 1, 2, 3, 7)
    (S3) F=(4,5,6)F = \prod(4, 5, 6)
    (S4) F=(0,1,2,3,7)F = \prod(0, 1, 2, 3, 7)
    Which 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
  31. Think it through. Then check your answer.

    Question

    Language L1L_1 is polynomial time reducible to language L2L_2. Language L3L_3 is polynomial time reducible to L2L_2, which in turn is polynomial time reducible to language L4L_4. Which of the following is/are true?
    I. if L4PL_4 \in P, then L2PL_2 \in P
    II. if L1PL_1 \in P or L3PL_3 \in P, then L2PL_2 \in P
    III. L1PL_1 \in P, if and only if L3PL_3 \in P
    IV. if L4PL_4 \in P, then L1PL_1 \in P and L3PL_3 \in P
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider the following C program.
    #include<stdio.h>
    int f1(void);
    int f2(void);
    int f3(void);
    int x = 10;
    
    int main( )
    {
      int x = 1;
      x += f1( ) + f2( ) + f3( ) + f2( );
      printf("%d", x);
      return 0;
    }
    
    int f1( ) { int x = 25; x++; return x;}
    int f2( ) { static int x = 50; x++; return x;}
    int f3( ) { x *= 10; return x;}
    
    The output of the 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
  33. Think it through. Then check your answer.

    Question

    Consider the following C program.
    #include<stdio.h>
    int main( )
    {
        static int a[ ] = {10, 20, 30, 40, 50};
        static int *p[ ] = {a, a+3, a+4, a+1, a+2};
        int **ptr = p;
        ptr++;
        printf("%d%d", ptr-p,**ptr);
    }
    
    The output of the 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
  34. Think it through. Then check your answer.

    Question

    Which of the following languages are context-free?

    L1={ambnanbmm,n1}L_1 = \{a^m b^n a^n b^m \mid m, n \geq 1\}
    L2={ambnambnm,n1}L_2 = \{a^m b^n a^m b^n \mid m, n \geq 1\}
    L3={ambnm=2n+1}L_3 = \{a^m b^n \mid m = 2n + 1\}
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider the following policies for preventing deadlock in a system with mutually exclusive resources.
    I. Processes should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released
    II. The resources are numbered uniquely, and processes are allowed to request for resources only in increasing resource numbers
    III. The resources are numbered uniquely, and processes are allowed to request for resources only in decreasing resource numbers
    IV. The resources are numbered uniquely. A process is allowed to request only for a resource with resource number larger than its currently held resources
    Which of the above policies can be used for preventing deadlock?
    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

    In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host 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
  37. Think it through. Then check your answer.

    Question

    Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is 500×106500\times 10^6 bits per second. The propagation speed of the media is 4×1064\times 10^6 meters per second. It is needed to design a Go-Back-NN sliding window protocol for this network. The average packet size is 10710^7 bits. The network is to be used to its full capacity. Assume that processing delays at nodes are negligible. Then, the minimum size in bits of the sequence number field has to be _________.
    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 the following reservation table for a pipeline having three stages S1,S2S_1, S_2 and S3S_3.
    TimeTime \to12345
    S1S_1XX
    S2S_2XX
    S3S_3X
    The minimum average latency (MAL) 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 the following code sequence having five instructions I1I_1 to I5I_5. Each of these instructions has the following format.
    OP Ri, Rj, Rk
    where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.

    I1I_1: ADD R1, R2, R3
    I2I_2: MUL R7, R1, R3
    I3I_3: SUB R4, R1, R5
    I4I_4: ADD R3, R2, R4
    I5I_5: MUL R7, R8, R9
    Consider the following three statements.
    S1: There is an anti-dependence between instructions I2I_2 and I5I_5
    S2: There is an anti-dependence between instructions I2I_2 and I4I_4
    S3: Within an instruction pipeline an anti-dependence always creates one or more stalls
    Which one of above statements is/are correct?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider the following two C code segments. Y and X are one and two dimensional arrays of size nn and n×nn \times n respectively, where 2n102 \le n \le 10. Assume that in both code segments, elements of Y are initialized to 0 and each element X[i][j] of array X is initialized to i+j. Further assume that when stored in main memory all elements of X are in same main memory page frame.
    Code segment 1:
    //initialize elements of Y to 0
    //initialize elements X[i][j] of X to i+j
    
    for(i = 0; i < n; i++)
        Y[i] += X[0][i];
    
    Code Segment 2:
    //initialize elements of Y to 0
    //initialize elements X[i][j] of X to i+j
    
    for(i = 0; i < n; i++)
        Y[i] += X[i][0];
    
    Which of the following statements is/are correct?
    S1: Final contents of array Y will be same in both code segments
    S2: Elements of array X accessed inside the for loop shown in code segment 1 are contiguous in main memory
    S3: Elements of array X accessed inside the for loop shown in code segment 2 are contiguous in main memory
    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

    Consider the following partial Schedule SS involving two transactions T1T1 and T2T2. Only the read and the write operations have been shown. The read operation on data item PP is denoted by read(P) and the write operation on data item PP is denoted by write(P).
    Time instanceT1T2
    1read(A)
    2write(A)
    3read(C)
    4write(C)
    5read(B)
    6write(B)
    7read(A)
    8commit
    9read(B)
    Suppose that the transaction T1T1 fails immediately after time instance 9. Which one of the following statements is correct?
    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

    If the following system has non-trivial solution,
    px + qy + rz = 0
    qx + ry + pz = 0
    rx + py + qz = 0,
    then which one of the following options is TRUE?
    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 C program:
    #include<stdio.h>
    int main( )
    {
        int i, j, k = 0;
        j = 2 * 3 / 4 + 2.0 / 5 + 8 / 5;
        k -= --j;
        for(i = 0; i < 5; i++)
        {
            switch(i + k)
            {
                case 1:
                case 2: printf("\n%d", i+k);
                case 3: printf("\n%d", i+k);
                default: printf("\n%d", i+k);
            }
        }
        return 0;
    }
    
    The number of times printf statement is executed 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
  44. Think it through. Then check your answer.

    Question

    If for non-zero xx, af(x)+bf(1x)=1x25af(x) + bf(\frac{1}{x}) = \frac{1}{x} - 25 where aba \neq b then 12f(x)dx\int_1^2 f(x)dx is
    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

    Let GG be a connected undirected graph of 100 vertices and 300 edges. The weight of a minimum spanning tree of GG is 500. When the weight of each edge of GG is increased by five, the weight of a minimum spanning tree becomes __________.
    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

    Two hosts are connected via a packet switch with 10710^7 bits per second links. Each link has a propagation delay of 20 microseconds. The switch begins forwarding a packet 35 microseconds after it receives the same. If 10000 bits of data are to be transmitted between the two hosts using a packet size of 5000 bits, the time elapsed between the transmission of the first bit of data and the reception of the last bit of the data in microseconds 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
  47. Think it through. Then check your answer.

    Question

    For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
    ProcessArrival TimeProcessing Time
    A03
    B16
    C44
    D62
    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

    Consider three software items: Program-X, Control Flow Diagram of Program-Y and Control Flow Diagram of Program-Z as shown below
    Figure showing Program-X code, Program-Y flow graph, and Program-Z structure
    The values of McCabe’s Cyclomatic complexity of Program-X, Program-Y, and Program-Z respectively are
    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 the equation (43)x=(y3)8(43)_x = (y3)_8 where xx and yy are unknown. The number of possible solutions 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

    Let RR be a relation on the set of ordered pairs of positive integers such that ((p,q),(r,s))R((p,q),(r,s)) \in R if and only if ps=qrp-s = q-r. Which one of the following is true about RR?
    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

    Suppose XiX_i for i=1,2,3i=1,2,3 are independent and identically distributed random variables whose probability mass functions are Pr[Xi=0]=Pr[Xi=1]=1/2\text{Pr}[X_i = 0] = \text{Pr}[X_i = 1] = 1/2 for i=1,2,3i=1,2,3. Define another random variable Y=X1X2X3Y = X_1 X_2 \oplus X_3, where \oplus denotes XOR. Then Pr[Y=0X3=0]=\text{Pr}[Y=0 \mid X_3=0] = __________.
    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

    The total number of prime implicants of the function f(w,x,y,z)=(0,2,4,5,6,10)f(w, x, y, z) = \sum(0, 2, 4, 5, 6, 10) 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
  53. Think it through. Then check your answer.

    Question

    Suppose c=c[0],,c[k1]c = \langle c[0], \dots, c[k-1] \rangle is an array of length kk, where all the entries are from the set {0,1}\{0, 1\}.
    For any positive integers aa and nn, consider the following pseudocode.
    DOSOMETHING (c, a, n)
    z <- 1
    for i <- 0 to k - 1
        do z <- z^2 mod n
        if c[i] = 1
            then z <- (z * a) mod n
    return z
    
    If k=4,c=1,0,1,1,a=2k=4, c = \langle 1, 0, 1, 1 \rangle, a=2 and n=8n=8, then the output of DOSOMETHING(c,a,nc, a, n) 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
  54. Think it through. Then check your answer.

    Question

    Let f(n)=nf(n) = n and g(n)=n(1+sinn)g(n) = n^{(1 + \sin n)}, where nn is a positive integer. Which of the following statements is/are correct?
    I. f(n)=O(g(n))f(n) = O(g(n))
    II. f(n)=Ω(g(n))f(n) = \Omega(g(n))
    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 grammar GGSFHS \to F \mid HFpcF \to p \mid cHdcH \to d \mid cwhere S,FS, F, and HH are non-terminal symbols, p,dp, d, and cc are terminal symbols. Which of the following statement(s) is/are correct?
    S1. LL(1) can parse all strings that are generated using grammar GG
    S2. LR(1) can parse all strings that are generated using grammar GG
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page