GATE 2004
199 questions
MCQ 1991-mark 199
Questions 181–185 of 199
Answer: (C)
First network (limit 1200): the data splits into and bytes, which are 2 fragments.
Second network (limit 400): the bytes split into and the bytes split into . That is fragments.
Fragmenting adds only headers; the data itself stays the same. Each of the 6 fragments in the second network carries its own IP header:
Answer: (C)
Answer: (A)
So the number belongs to a byte, not to a segment, word or message. Segments are not numbered on their own.
Answer: (A)
Answer: (A)
(C) is true: when congestion is detected, the sender cuts its congestion window, for example to half after a loss (additive increase, multiplicative decrease).
(D) is true: if an ACK does not arrive in time, the sender sends the segment again.
(A) is false: TCP gives reliable, in-order delivery, but no minimum rate. Congestion control can cut the sending rate to a very small value, and the throughput depends on the network, so no minimum rate is guaranteed.
Answer: (A)
I. telnet, ftp and http are application layer protocols.
II. EJB (Enterprise Java Beans) components can be deployed in a J2EE (Java2 Enterprise Edition) application server.
III. If two languages conform to the Common Language Specification (CLS) of the Microsoft.NET frame work, then a class defined in any one of them may be inherited in the other.
Which statements are true?
Answer: (D)
- II is true. EJB components are deployed in the EJB container of a J2EE application server.
- III is true. CLS is a set of rules that .NET languages follow so that their code can work together. A class written in one CLS-compliant language can be inherited in another.
All three statements are true.
Answer: (D)
Answer: (A)
In public key cryptography, the sender and the receiver each make a pair of keys: a public key and a private key. Everyone in the world knows the public keys.
Let be the sender and be the receiver.
So holds keys:
1. Public key of (everyone knows) 2. Private key of (only knows) 3. Public key of (everyone knows)
And also holds keys:
1. Public key of B (everyone knows) 2. Private key of B (only B knows) 3. Public key of A (everyone knows)
- A message encrypted with the public key of A can be decrypted only with the private key of A.
- A message encrypted with the private key of A can be decrypted only with the public key of A.
- A message encrypted with the public key of B can be decrypted only with the private key of B.
- A message encrypted with the private key of B can be decrypted only with the public key of B.
Now wants to send a secret message to .
For encryption, A has these options:
- Public key of A (everyone knows):
To decrypt, needs the private key of . Only knows it. So cannot decrypt it. - Private key of (only knows)
To decrypt, needs the public key of . Everyone knows it, so everyone can decrypt it. This is of no use. - Public key of (everyone knows):
To decrypt, needs the private key of . Only knows it. So only can decrypt it (this is what we want).
So, to get security:
The sender encrypts with the receiver's public key, and the receiver decrypts with his own private key.
Correct Answer: