The PYQ practice room

GATE CS 2019 Set 1

All 65 solved GATE CS 2019 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 20Medium 40Hard 5

Explore the questions

65 of 65 questions

General Aptitude (GA)

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

    Question

    The expenditure on the project ______ as follows: equipment Rs.20 lakhs, salaries Rs.12 lakhs, and contingency Rs.3 lakhs.
    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

    The search engine’s business model ______ around the fulcrum of trust.
    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

    Two cars start at the same time from the same location and go in the same direction. The speed of the first car is 50 km/h and the speed of the second car is 60 km/h. The number of hours it takes for the distance between the two cars to be 20 km is ______.
    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

    Ten friends planned to share equally the cost of buying a gift for their teacher. When two of them decided not to contribute, each of the other friends had to pay Rs 150 more. The cost of the gift was Rs. _______.
    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 court is to a judge as _______ is to a teacher.
    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

    The police arrested four criminals – P, Q, R and S. The criminals knew each other. They made the following statements:
    P says “Q committed the crime.”
    Q says “S committed the crime.”
    R says “I did not do it.”
    S says “What Q said about me is false.”
    Assume only one of the arrested four committed the crime and only one of the statements made above is true. Who committed the crime?
    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

    In the given diagram, teachers are represented in the triangle, researchers in the circle and administrators in the rectangle. Out of the total number of the people, the percentage of administrators shall be in the range of __________.
    Venn diagram showing a triangle (Teachers), a circle (Researchers), and a rectangle (Administrators) with numbers in various regions.
    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

    “A recent High Court judgement has sought to dispel the idea of begging as a disease — which leads to its stigmatization and criminalization — and to regard it as a symptom. The underlying disease is the failure of the state to protect citizens who fall through the social security net.”
    Which one of the following statements can be inferred from the given passage?
    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 college, there are three student clubs. Sixty students are only in the Drama club, 80 students are only in the Dance club, 30 students are only in the Maths club, 40 students are in both Drama and Dance clubs, 12 students are in both Dance and Maths clubs, 7 students are in both Drama and Maths clubs, and 2 students are in all the clubs. If 75% of the students in the college are not in any of these clubs, then the total number of students in the college is __________.
    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

    Three of the five students allocated to a hostel put in special requests to the warden. Given the floor plan of the vacant rooms, select the allocation plan that will accommodate all their requests.
    Request by X: Due to pollen allergy, I want to avoid a wing next to the garden.
    Request by Y: I want to live as far from the washrooms as possible, since I am very sensitive to smell.
    Request by Z: I believe in Vaastu and so want to stay in the South-west wing.
    The shaded rooms are already occupied. WR is washroom.
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

    The solution stays hidden until you check.
    Open question page

CS

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

    Question

    A certain processor uses a fully associative cache of size 16 kB. The cache block size is 16 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
    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

    The chip select logic for a certain DRAM chip in a memory system design is shown below.
    Assume that the memory system has 16 address lines denoted by A15A_{15} to A0A_0. What is the range of addresses (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
    Logic circuit with inputs A15-A11 connected to a gate producing CS

    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 kinds of derivation is used by LR parsers?
    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

    In 16-bit 2's complement representation, the decimal number 28-28 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

    Let U={1,2,,n}U = \{1, 2, \dots, n\}. Let A={(x,X)xX,XU}A = \{(x, X) \mid x \in X, X \subseteq U\}. Consider the following two statements on A|A|.
    I. A=n2n1|A| = n2^{n-1}
    II. A=k=1nk(nk)|A| = \sum_{k=1}^n k \binom{n}{k}
    Which of the above statements is/are TRUE?
    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

    Which one of the following is NOT a valid identity?
    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

    If LL is a regular language over Σ={a,b}\Sigma = \{a, b\}, which one of the following languages is NOT regular?
    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

    Consider Z=XYZ = X - Y, where X, Y and Z are all in sign-magnitude form. X and Y are each represented in nn bits. To avoid overflow, the representation of Z would require a minimum of:
    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 a square matrix. Consider the following two statements on XX.
    I. XX is invertible.
    II. Determinant of XX is non-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
  10. Think it through. Then check your answer.

    Question

    Let GG be an arbitrary group. Consider the following relations on GG:
    R1:a,bG,aR1bR_1: \forall a, b \in G, a R_1 b if and only if gG\exists g \in G such that a=g1bga = g^{-1}bg
    R2:a,bG,aR2bR_2: \forall a, b \in G, a R_2 b if and only if a=b1a = b^{-1}
    Which of the above is/are equivalence relation/relations?
    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 the following two statements about database transaction schedules:
    I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable.
    II. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not conflict serializable.
    Which of the above statements is/are TRUE?
    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

    Let GG be an undirected complete graph on nn vertices, where n>2n > 2. Then, the number of different Hamiltonian cycles in GG is equal to
    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

    Compute limx3x4812x25x3\lim_{x \to 3} \frac{x^4 - 81}{2x^2 - 5x - 3}
    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

    Which one of the following statements is NOT correct about the B+ tree data structure used for creating an index of a relational database table?
    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

    For Σ={a,b}\Sigma = \{a, b\}, let us consider the regular language L={xx=a2+3k or x=b10+12k,k0}L = \{x \mid x = a^{2+3k} \text{ or } x = b^{10+12k}, k \geq 0\}. Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for LL?
    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

    Which one of the following protocol pairs can be used to send and retrieve e-mails (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
  17. Think it through. Then check your answer.

    Question

    The following C program is executed on a Unix/Linux system:
    #include <unistd.h>
    int main()
    {
        int i;
        for (i=0; i<10; i++)
            if (i%2 == 0) fork();
        return 0;
    }
    
    The total number of child processes created 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
  18. Think it through. Then check your answer.

    Question

    Consider the following C program:
    #include <stdio.h>
    int jumble(int x, int y){
        x=2*x+y;
        return x;
    }
    int main(){
        int x=2, y=5;
        y=jumble(y,x);
        x=jumble(y,x);
        printf("%d \n", x);
        return 0;
    }
    
    The value printed by 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
  19. Think it through. Then check your answer.

    Question

    Consider the grammar given below:
    SAaS \to Aa
    A → BD
    BbϵB \to b \mid \epsilon
    DdϵD \to d \mid \epsilon
    Let a, b, d, and $ be indexed as follows:
    abd$
    3210
    Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d, $}, then the answer should be 3210)
    Answer: _______
    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

    An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot element is chosen uniformly at random. The probability that the pivot element gets placed in the worst possible location in the first round of partitioning (rounded off to 2 decimal places) 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

    The value of 351(mod5)3^{51} \pmod 5 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
  22. Think it through. Then check your answer.

    Question

    Two numbers are chosen independently and uniformly at random from the set {1, 2, ..., 13}. The probability (rounded off to 3 decimal places) that their 4-bit (unsigned) binary representations have the same most significant bit 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
  23. Think it through. Then check your answer.

    Question

    Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.
    P1P2P3
    :::
    D = D + 20D = D - 50D = D + 10
    :::
    The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y – 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
  24. Think it through. Then check your answer.

    Question

    Consider the following C program:
    #include <stdio.h>
    int main(){
        int arr[]={1,2,3,4,5,6,7,8,9,0,1,2,5}, *ip=arr+4;
        printf("%d\n", ip[1]);
        return 0;
    }
    

    The number that will be displayed on execution 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
  25. Think it through. Then check your answer.

    Question

    Consider a sequence of 14 elements: A=[5,10,6,3,1,2,13,4,9,1,4,12,3,0]A = [-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0].
    The subsequence sum S(i,j)=k=ijA[k]S(i, j) = \sum_{k=i}^{j} A[k]. Determine the maximum of S(i,j)S(i, j), where 0ij<140 \leq i \leq j < 14. (Divide and conquer approach may be used.)
    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
  26. Think it through. Then check your answer.

    Question

    Consider the following C function.
    void convert(int n){
        if(n<0)
            printf("%d",n);
        else {
            convert(n/2);
            printf("%d",n%2);
        }
    }
    
    Which one of the following will happen when the function convert is called with any positive integer n as argument?
    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

    Consider the following C program:
    #include <stdio.h>
    int r(){
        static int num=7;
        return num--;
    }
    
    int main(){
        for (r();r();r())
            printf("%d",r());
        return 0;
    }
    
    Which one of the following values will be displayed on execution of the programs?
    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 three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. 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
  29. Think it through. Then check your answer.

    Question

    Suppose that in an IP-over-Ethernet network, a machine X wishes to find the MAC address of another machine Y in its subnet. Which one of the following techniques can be used for this?
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Consider three 4-variable functions f1f_1, f2f_2, and f3f_3, which are expressed in sum-of-minterms as
    f1=Σ(0,2,5,8,14)f_1 = \Sigma (0, 2, 5, 8, 14), f2=Σ(2,3,6,8,14,15)\quad f_2 = \Sigma (2, 3, 6, 8, 14, 15), f3=Σ(2,7,11,14)\quad f_3 = \Sigma (2, 7, 11, 14)
    For the following circuit with one AND gate and one XOR gate, the output function ff can be expressed as:

    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

    Which one of the following languages over Σ={a,b}\Sigma = \{a, b\} is NOT context-free?
    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

    Let the set of functional dependencies F={QRS,RP,SQ}F = \{QR \to S, R \to P, S \to Q\} hold on a relation schema X=(PQRS)X = (PQRS). XX is not in BCNF. Suppose XX is decomposed into two schemas YY and ZZ, where Y=(PR)Y = (PR) and Z=(QRS)Z = (QRS).
    Consider the two statements given below.
    I. Both YY and ZZ are in BCNF
    II. Decomposition of XX into YY and ZZ is dependency preserving and lossless
    Which of the 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
  33. Think it through. Then check your answer.

    Question

    Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressable. The page size is 8 kB and the word size is 4 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128 valid entries. At most how many distinct virtual addresses can be translated without any TLB miss?
    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

    Consider the following sets:
    S1. Set of all recursively enumerable languages over the alphabet {0,1}
    S2. Set of all syntactically valid C programs
    S3. Set of all languages over the alphabet {0,1}
    S4. Set of all non-regular languages over the alphabet {0,1}
    Which of the above sets are uncountable?
    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 first order predicate formula φ\varphi:
    x[(z zx((z=x)(z=1)))w (w>x)(z zw((w=z)(z=1)))]\forall x [(\forall z \ z|x \Rightarrow ((z=x) \vee (z=1))) \Rightarrow \exists w \ (w>x) \wedge (\forall z \ z|w \Rightarrow ((w=z) \vee (z=1)))]
    Here 'aba|b' denotes that 'aa divides bb', where aa and bb are integers. Consider the following sets:
    S1. {1,2,...,100}\{1, 2, ..., 100\}
    S2. Set of all positive integers
    S3. Set of all integers
    Which of the above sets satisfy φ\varphi?
    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 grammar and the semantic actions to support the inherited type declaration attributes. Let X1,X2,X3,X4,X5X_1, X_2, X_3, X_4, X_5, and X6X_6 be the placeholders for the non-terminals D, T, L or L1L_1 in the following table:
    Production ruleSemantic action
    DT LD \rightarrow T \ LX1.type=X2.typeX_1.type = X_2.type
    TintT \rightarrow \text{int}T.type=intT.type = \text{int}
    TfloatT \rightarrow \text{float}T.type=floatT.type = \text{float}
    LL1,idL \rightarrow L_1, \text{id}X3.type=X4.typeX_3.type = X_4.type
    addType(id.entry, X5.typeX_5.type)
    LidL \rightarrow \text{id}addType(id.entry, X6.typeX_6.type)
    Which one of the following are the appropriate choices for X1,X2,X3X_1, X_2, X_3 and X4X_4?
    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

    There are nn unsorted arrays: A1,A2,,AnA_1, A_2, \dots, A_n. Assume that nn is odd. Each of A1,A2,,AnA_1, A_2, \dots, A_n contains nn distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1,A2,,AnA_1, A_2, \dots, A_n is
    Your answer

    Choose one option, then check your answer.

    Restoring your progress…

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

    Question

    Let GG be any connected, weighted, undirected graph.
    I. GG has a unique minimum spanning tree, if no two edges of GG have the same weight.
    II. GG has a unique minimum spanning tree, if, for every cut of GG, there is a unique minimum-weight edge crossing the cut.
    Which of the above two statements is/are TRUE?
    Your answer

    Choose one option, then check your answer.

    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 snapshot of a system running nn concurrent processes. Process ii is holding XiX_i instances of a resource R, 1in1 \le i \le n. Assume that all instances of R are currently in use. Further, for all ii, process ii can place a request for at most YiY_i additional instances of R while holding the XiX_i instances it already has. Of the nn processes, there are exactly two processes pp and qq such that Yp=Yq=0Y_p = Y_q = 0. Which one of the following conditions guarantees that no other process apart from pp and qq can complete execution?
    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 statements:
    I. The smallest element in a max-heap is always at a leaf node
    II. The second largest element in a max-heap is always a child of the root node
    III. A max-heap can be constructed from a binary search tree in Θ(n)\Theta(n) time
    IV. A binary search tree can be constructed from a max-heap in Θ(n)\Theta(n) time
    Which of the above statements are TRUE?
    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 four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below:
    ProcessP1P2P3P4
    Arrival time0134
    CPU burst time313ZZ
    These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling algorithm. If the average waiting time of the processes is 11 millisecond, then the value of ZZ 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
  42. Think it through. Then check your answer.

    Question

    The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) _______ GB.
    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

    Consider the augmented grammar given below:
    SSS' \to S
    SLidS \to \langle L \rangle \mid \text{id}
    LL,SSL \to L, S \mid S
    Let I0=CLOSURE({[SS]})I_0 = \text{CLOSURE}(\{[S' \to \cdot S]\}). The number of items in the set GOTO(I0,)\text{GOTO}(I_0, \langle) 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

    Consider the following matrix:R=[1248139271416641525125]R = \begin{bmatrix} 1 & 2 & 4 & 8 \\ 1 & 3 & 9 & 27 \\ 1 & 4 & 16 & 64 \\ 1 & 5 & 25 & 125 \end{bmatrix}The absolute value of the product of Eigen values of RR 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

    A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz clock. To service a cache miss, the memory controller first takes 1 cycle to accept the starting address of the block, it then takes 3 cycles to fetch all the eight words of the block, and finally transmits the words of the requested block at the rate of 1 word per cycle. The maximum bandwidth for the memory system when the program running on the processor issues a series of read operations is ________ ×106\times 10^6 bytes/sec.
    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

    Let TT be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves aa and bb of TT are chosen uniformly and independently at random. The expected value of the distance between aa and bb in TT (i.e., the number of edges in the unique path between aa and bb) is (rounded off to 2 decimal places) _______.
    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

    Suppose YY is distributed uniformly in the open interval (1,6)(1,6). The probability that the polynomial 3x2+6xY+3Y+63x^2 + 6xY + 3Y + 6 has only real roots is (rounded off to 1 decimal place) ________.
    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

    Let Σ\Sigma be the set of all bijections from {1,,5}\{1, \dots, 5\} to {1,,5}\{1, \dots, 5\}, where idid denotes the identity function, i.e. id(j)=j,jid(j) = j, \forall j. Let \circ denote composition on functions. For a string x=x1x2xnΣn,n0x = x_1 x_2 \dots x_n \in \Sigma^n, n \geq 0, let π(x)=x1x2xn\pi(x) = x_1 \circ x_2 \circ \dots \circ x_n. Consider the language L={xΣπ(x)=id}.L = \{x \in \Sigma^* \mid \pi(x) = id\}. The minimum number of states in any DFA accepting 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
  49. Think it through. Then check your answer.

    Question

    Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed 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

    What is the minimum number of 2-input NOR gates required to implement a 4-variable function expressed in sum-of-minterms form as f=(0,2,5,7,8,10,13,15)f = \sum (0, 2, 5, 7, 8, 10, 13, 15)? Assume that all the inputs and their complements are available. Answer: ________.
    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

    A relational database contains two tables Student and Performance as shown below:
    Student
    Roll no.Student name
    1Amit
    2Priya
    3Vinit
    4Rohan
    5Smita
    Performance
    Roll no.Subject_codeMarks
    1A86
    1B95
    1C90
    2A89
    2C92
    3C80
    The primary key of the Student table is Roll_no. For the Performance table, the columns Roll_no. and Subject_code together form the primary key. Consider the SQL query given below:
    SELECT S.Student_name, sum(P.Marks)
    FROM Student S, Performance P
    WHERE P.Marks > 84
    GROUP BY S.Student_name;
    
    The number of rows returned by the above 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

    Consider the following C program:
    #include <stdio.h>
    int main(){
        float sum = 0.0, j = 1.0, i = 2.0;
        while (i/j > 0.0625){
            j = j + j;
            sum = sum + i/j;
            printf("%f\n", sum);
        }
        return 0;
    }
    
    The number of times the variable sum will be printed, when the above program 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
  53. Think it through. Then check your answer.

    Question

    Consider the following C program:
    #include <stdio.h>
    int main()
    {
        int a[] = {2, 4, 6, 8, 10};
        int i, sum = 0, *b = a + 4;
        for (i = 0; i < 5; i++)
            sum = sum + (*b - i) - *(b - i);
        printf ("%d\n", sum);
        return 0;
    }
    
    The output of the above C 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
  54. Think it through. Then check your answer.

    Question

    In an RSA cryptosystem, the value of the public modulus parameter nn is 3007. If it is also known that ϕ(n)=2880\phi(n) = 2880, where ϕ()\phi() denotes Euler's Totient Function, then the prime factor of nn which is greater than 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
  55. Think it through. Then check your answer.

    Question

    Consider the following relations P(X,Y,Z), Q(X,Y,T) and R(Y,V).
    P
    XYZ
    X1Y1Z1
    X1Y1Z2
    X2Y2Z2
    X2Y4Z4
    Q
    XYT
    X2Y12
    X1Y25
    X1Y16
    X3Y31
    R
    YV
    Y1V1
    Y3V2
    Y2V3
    Y2V2
    How many tuples will be returned by the following relational algebra query?ΠX(σP.Y=R.YR.V=V2(P×R))ΠX(σQ.Y=R.YQ.T>2(Q×R))\Pi_X(\sigma_{P.Y=R.Y \wedge R.V=V2} (P \times R)) - \Pi_X(\sigma_{Q.Y=R.Y \wedge Q.T>2} (Q \times R))Answer: ______________
    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