CS GATE 2011 - Online Test

Q1. In a compiler, keywords of a language are recognized during
Answer : Option C
Explaination / Solution:

Any identifier is also a token so it is recognized in lexical Analysis

Q2. A layer-4 firewall (a device that can look at all protocol headers up to the transport layer) CANNOT
Answer : Option A
Explaination / Solution:

Since it is a layer 4 firewall it cannot block application layer protocol like HTTP.

Q3. Consider different activities related to email. m1: Send an email from a mail client to a mail server m2: Download an email from mailbox server to a mail client m3: Checking email in a web browser Which is the application level protocol used in each activity?
Answer : Option C
Explaination / Solution:

Sending an email will be done through user agent and message transfer agent by SMTP, downloading an email from mail box is done through POP, checking email in a web browser is done through HTTP

Q4. Consider a hypothetical processor with an instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?
Answer : Option D
Explaination / Solution:

Here 20 will act as base and content of R2 will be index

Q5. HTML (Hyper Text Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?
Answer : Option D
Explaination / Solution:
No Explaination.


Q6. The simplified SOP (Sum of Product) form of the Boolean expression 
 is
Answer : Option B
Explaination / Solution:



Q7. A company needs to develop digital signal processing software for one of its newest inventions. The software is expected to have 40000 lines of code. The company needs to determine the effort in person-months needed to develop this software using the basic COCOMO model. The multiplicative factor for this model is given as 2.8 for the software development on embedded systems, while the exponentiation factor is given as 1.20. What is the estimated effort in personmonths?
Answer : Option A
Explaination / Solution:

 Effort person per month


Q8. Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?
Answer : Option D
Explaination / Solution:

All options except option ‘D’ gives EX-NOR gates

Q9. If the difference between the expectation of the square of random variable (E[X2]) and the square of the expectation of the random variable (E[X2]) is denoted by R then
Answer : Option C
Explaination / Solution:
No Explaination.


Q10. What does the following fragment of C-program print? char c[ ] = "GATE2011"; char *p =c; printf ("%s", p+p[3] - p[1]);
Answer : Option C
Explaination / Solution:
No Explaination.