GATE 2005
203 questions
MCQ 2031-mark 203
Questions 196–200 of 203
Consider the three commands : PROMPT, HEAD and RCPT. Which of the following options indicate a correct association of these commands with protocols where these are used?
Answer: (B)
Match each command with its protocol:
- PROMPT is an FTP client command. It switches the per-file confirmation on or off when several files are moved with mget or mput.
- HEAD is an HTTP request method. It asks for the same response headers as GET but without the message body.
- RCPT (RCPT TO) is an SMTP command. It names a recipient of the mail.
So the order is FTP, HTTP, SMTP.
Answer: (B)
- PROMPT is an FTP client command. It switches the per-file confirmation on or off when several files are moved with mget or mput.
- HEAD is an HTTP request method. It asks for the same response headers as GET but without the message body.
- RCPT (RCPT TO) is an SMTP command. It names a recipient of the mail.
So the order is FTP, HTTP, SMTP.
Answer: (B)
Suppose that two parties A and B wish to setup a common secret key (D-H key) between themselves using the Diffie-Hellman key exchange technique. They agree on 7 as the modulus and 3 as the primitive root. Party A chooses 2 and party B chooses 5 as their respective secrets. Their D-H key is
Answer: (B)
In Diffie-Hellman, is the modulus and is the primitive root (generator). Each party sends a public value and the shared key is built from the other party's public value.
A sends .
B sends .
A computes .
B computes .
Both get the same key, . Since , .
Answer: (B)
A sends .
B sends .
A computes .
B computes .
Both get the same key, . Since , .
Answer: (B)
In a data flow diagram, the segment shown below is identified as having transaction flow characteristics, with identified as the transaction center
A first level architectural design of this segment will result in a set of process modules with an associated invocation sequence. The most appropriate architecture is
A first level architectural design of this segment will result in a set of process modules with an associated invocation sequence. The most appropriate architecture is
Answer: (C)
In transaction mapping, the transaction center (here p2) takes the incoming data from p1 and dispatches to one of several action paths (p3, p4 or p5), depending on the transaction type.
The design has a new controller module at the top. It first calls the incoming branch p1, which receives the data, and then calls the dispatcher p2. p2 then invokes exactly one of p3, p4 or p5.
(A) is wrong: it makes p1 call p2 and has no controller, and p3 would choose between p4 and p5 instead of p2 doing the dispatch. (B) is wrong: it has no controller, and the dispatcher p2 would call p1. (D) is wrong: it makes the dispatcher p2 call the incoming module p1 instead of the controller calling it.
Answer: (C)
The design has a new controller module at the top. It first calls the incoming branch p1, which receives the data, and then calls the dispatcher p2. p2 then invokes exactly one of p3, p4 or p5.
(A) is wrong: it makes p1 call p2 and has no controller, and p3 would choose between p4 and p5 instead of p2 doing the dispatch. (B) is wrong: it has no controller, and the dispatcher p2 would call p1. (D) is wrong: it makes the dispatcher p2 call the incoming module p1 instead of the controller calling it.
Answer: (C)
Tb carry out white box testing of a program, its flow chart representation is obtained as shown in the figure below:
For basis path based testing of this program, its cyclomatic complexity is
For basis path based testing of this program, its cyclomatic complexity is
Answer: (C)
Nodes (N = 9): , , the test , the test , , , , , .
Edges (E = 10): ; ; ; ; ; ; ; ; ; .
With P = 1 connected component: .
Check: there are 2 decision nodes, so .
Answer: (C)
Edges (E = 10): ; ; ; ; ; ; ; ; ; .
With P = 1 connected component: .
Check: there are 2 decision nodes, so .
Answer: (C)
The availability of a complex software is 90%. Its Mean Time Between Failure (MTBF) is 200 days. Because of the critical nature of the usage, the organization deploying the software further enhanced it to obtain an availability of 95%. In the process, the Mean Time To Repair (MTTR) increased by 5 days. What is the MTBF of the enhanced software?
Answer: (C)
Here MTBF is the time from one failure to the next, so it includes the repair time: , where MTTF is the mean time to failure (the time the software works). Availability is .
Original software: days, so days.
Enhanced software: days and . Since :
days.
(If availability is taken as , the result is about 517 days, but MTBF includes the repair time, so 500 days is the right value.)
Answer: (C)
Original software: days, so days.
Enhanced software: days and . Since :
days.
(If availability is taken as , the result is about 517 days, but MTBF includes the repair time, so 500 days is the right value.)
Answer: (C)