• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE CS 2012

Question 41

Consider the above question. What output will be generated by the given code d\\segment if: Line 1 is replaced by “auto int a = 1;” Line 2 is replaced by “register int a = 2;
  • 3 1
    4 1
    4 2
    
  •  4 2
    6 1
    6 1
    
  • 4 2
    6 2
    2 0
    
  • 4 2
    4 2
    2 0
    

Question 42

Consider the following relations A, B, C. How many tuples does the result of the following relational algebra expression contain? Assume that the schema of A U B is the same as that of A. 

 
Table A
Id   Name    Age
----------------
12   Arun    60
15   Shreya  24
99   Rohit   11

Table B
Id   Name   Age
----------------
15   Shreya  24
25   Hari    40
98   Rohit   20
99   Rohit   11

Table C
Id   Phone  Area
-----------------
10   2200   02  
99   2100   01
  • 7

  • 4

  • 5

  • 9

Question 43

For the grammar below, a partial LL(1) parsing table is also presented along with the grammar. Entries that need to be filled are indicated as E1, E2, and E3. [tex]\\epsilon[/tex] is the empty string, $ indicates end of input, and, | separates alternate right hand sides of productions. CSE_2012_51 CSE_GATE_20122
  • A
  • B
  • C
  • D

Question 44

Consider the date same as above question. The appropriate entries for E1, E2, and E3 are 

 
  • A

  • B

  • C

  • D

Question 45

Consider the data given in previous question. The size of the cache tag directory is

  • 160 Kbits

  • 136 bits

  • 40 Kbits

  • 32 bits

Question 46

The cost function for a product in a firm is given by 5q2, where q is the amount of production. The firm can sell the product at a market price of Rs 50 per unit. The number of units to be produced by the firm such that the profit is maximized is
  • 5
  • 10
  • 15
  • 25

Question 47

Choose the most appropriate alternative from the options given below to complete the following sentence: Despite several ––––––––– the mission succeeded in its attempt to resolve the conflict.
  • attempts
  • setbacks
  • meetings
  • delegations

Question 48

Which one of the following options is the closest in meaning to the word given below? Mitigate
  • Diminish
  • Divulge
  • Dedicate
  • Denote

Question 49

Choose the grammatically INCORRECT sentence:
  • They gave us the money back less the service charges of Three Hundred rupees.
  • This country’s expenditure is not less than that of Bangladesh.
  • The committee initially asked for a funding of Fifty Lakh rupees, but later settled for a lesser sum.
  • This country’s expenditure on educational reforms is very less.

Question 50

Choose the most appropriate alternative from the options given below to complete the following sentence: Suresh’s dog is the one ––––––––– was hurt in the stampede.
  • that
  • which
  • who
  • whom

There are 60 questions to complete.

Last Updated :
Take a part in the ongoing discussion