CS GATE 2015 - Online Test

Q1. A generic term that include various items of clothing such as a skirt, a pair of trousers and a shirt is
Answer : Option D
Explaination / Solution:

apparel- clothing, especially outerwear; garments; attire; raiment

Q2. Consider the basic COCOMO model where E is the effort applied in person-months, D is the development time in chronological months, KLOC is the estimated number of delivered lines of code (in thousands) and ab ,bb , cb ,db have their usual meanings. The basic COCOMO equations are of the form
Answer : Option A
Explaination / Solution:
No Explaination.


Q3. Assume that the bandwidth for a TCP connection is 1048560 bits/sec. Let α be the value of RTT in milliseconds. (rounded off to the nearest integer) after which the TCP window scale option is needed. Let β be the maximum possible window size the window scale option. Then the values of α and β are
Answer : Option C
Explaination / Solution:
No Explaination.


Q4. A software requirements specification (SRS) document should avoid discussing which one of the following?
Answer : Option D
Explaination / Solution:

SRS is a description of a software system to be developed, laying out functional & nonfunctional requirements and may include a set of use cases that describe interactions the user will have with the software.

Q5. Consider a processor with byte-addressable memory. Assume that all registers, including Program Counter (PC) and Program Status Word (PSW), are of size 2 bytes. A stack in the main memory is implemented from memory location (0100)16 and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is (016E)16. The CALL instruction is of two words, the first word is the op-code and the second word is the starting address of the subroutine. (oneword = 2bytes). The CALL instruction is implemented as follows:
 Store the current Vale of PC in the Stack
 Store the value of PSW register in the stack 
 Load the starting address of the subroutine in PC
The content of PC just before the fetch of a CALL instruction is (5FA0)16. After execution of the CALL instruction, the value of the stack pointer is 
Answer : Option D
Explaination / Solution:
No Explaination.


Q6. Host A sends a UDP datagram containing 8880 bytes of user data to host B over an Ethernet LAN. Ethernet frames may carry data up to 1500 bytes (i.e. MTU = 1500 bytes). Size of UDP header is 8 bytes and size of IP heard is 20 bytes.There is no option field in IP header How many total number of IP fragments will be transmitted and what will be the contents of offset field in the last fragment?
Answer : Option C
Explaination / Solution:



Q7. Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket APL
Answer : Option B
Explaination / Solution:

The correct order in which a server process must invoke the function calls is bind, listen, accept and recv. First three are used in connection establishment phase and recv is used in data transfer phase.

Q8. Which one of the following statements is NOT correct about HTTP cookies?
Answer : Option B
Explaination / Solution:

(A) is correct 
(B) Option B is false 
(C) Option C is correct 
(D) Option D is correct


Q9. Consider six memory partitions of sizes 200 KB, 400 KB, 600 KB, 500 KB, 300 KB and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?
Answer : Option A
Explaination / Solution:



Q10. Consider the following transaction involving two bank account x and y. read (x) ; x : = x – 50; write (x) ; read (y); y : = y + 50 ; write (y) The constraint that the sum of the accounts x and y should remain constant is that of
Answer : Option B
Explaination / Solution:

The consistency property ensures that the database remains in a consistent state before the (start of the transaction and after the transaction is over. Here sum of the accounts x & y should remain same before & after execution of the given transactions which refers to the consistency of the sum.