CS GATE 2016 PAPER 01 - Online Test

Q1. Out of the following four sentences, select the most suitable sentence with respect to grammar and usage.
Answer : Option D
Explaination / Solution:
No Explaination.


Q2. Indian currency notes show the denomination indicated in at least seventeen languages. If this is not an indication of the nation’s diversity, nothing else is. Which of the following can be logically inferred from the above sentences?
Answer : Option D
Explaination / Solution:
No Explaination.


Q3. Consider the following statements relating to the level of poker play of four players P, Q, R and S.
I. P always beats Q
II. R always beats S
III. S loses to P only sometimes
IV. R always loses to Q
Which of the following can be logically inferred from the above statements? 
(i) P is likely to beat all the three other players
(ii) S is the absolute worst player in the set
Answer : Option D
Explaination / Solution:
No Explaination.


Q4.  Consider the Boolean operator # with the following properties:
  Then x # y is equivalent to
Answer : Option A
Explaination / Solution:
No Explaination.


Q5. Consider the following C program.
void f(int, short);
void main()
{
int i = 100; 
short s = 12; 
short *p = &s; 
____________;        // call to f()  
}
Which one of the following expressions, when placed in the blank above, will NOT result in a type checking error? 
Answer : Option D
Explaination / Solution:

Here function f takes two arguments one is int and the other is short and its return type is void. So, in main function ‘P’ is a pointer to short and when we call f (i,*p) there won’t be any type checking error.

Q6. Consider the two cascaded 2-to-1 multiplexers as shown in the figure.

The minimal sum of products form of the output X is  
Answer : Option D
Explaination / Solution:



Q7. What will be the output of the following C program?
void count(int n){
static int d=1;
printf("%d ", n); printf("%d ", d); d++;
if(n>1) count(n-1);
printf("%d ", d);
}
void main(){
count(3);

Answer : Option A
Explaination / Solution:



Q8. If ‘relftaga’ means carefree, ‘otaga’ means careful and ‘fertaga’ means careless, which of the following could mean ‘aftercare’?
Answer : Option C
Explaination / Solution:
No Explaination.


Q9. Which one of the following protocols is NOT used to resolve one form of address to another one?
Answer : Option C
Explaination / Solution:

Except DHCP, remaining all the protocols are used to resolve one form of address to another one.

Q10. Which of the following is/are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3
Answer : Option C
Explaination / Solution:

FTP and POP 3are stateful application layer protocols