GATE 2015 (Session 1)
65 questions
MCQ 45 · NAT 201-mark 30 · 2-mark 35
Questions 21–25 of 65
Consider a 4-bit Johnson counter with an initial value of 0000. The counting sequence of this counter is
Answer: (D)
In a Johnson counter, the bits shift to the right. The complement of the last bit goes back into the first bit.
The states are:
0000 1000 1100 1110 1111 0111 0011 0001 0000
Written in decimal: 0, 8, 12, 14, 15, 7, 3, 1, 0
Answer: 0, 8, 12, 14, 15, 7, 3, 1, 0
The states are:
0000 1000 1100 1110 1111 0111 0011 0001 0000
Written in decimal: 0, 8, 12, 14, 15, 7, 3, 1, 0
Answer: 0, 8, 12, 14, 15, 7, 3, 1, 0
For computers based on three-address instruction formats, each address field can be used to specify which of the following:
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
Answer: (A)
In a three-address instruction, every address field names a memory location or a register directly. An implied accumulator belongs only to one-address formats.
Answer: Either S1 or S2
Answer: Either S1 or S2
Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection?
I. If the sequence number of a segment is m, then the sequence number of the subsequent segment is always m+1.
II. If the estimated round trip time at any given point of time is t sec, the value of the retransmission timeout is always set to greater than or equal to t sec.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
I. If the sequence number of a segment is m, then the sequence number of the subsequent segment is always m+1.
II. If the estimated round trip time at any given point of time is t sec, the value of the retransmission timeout is always set to greater than or equal to t sec.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
Answer: (B)
The question asks for the FALSE statements. Let us go through each statement:
- I: TCP counts bytes, so the next sequence number is m + (segment length), not always m + 1. The statement is False.
- II: RTO = EstimatedRTT + 4 DevRTT, and DevRTT is never negative, so RTO is always at least EstimatedRTT. The statement is True.
- III: The advertised window changes when the receive buffer fills up and empties. The statement is False.
- IV: The sender keeps the unacknowledged bytes within the window the receiver advertised. The statement is True.
So I and III are false.
Answer: (B)
- I: TCP counts bytes, so the next sequence number is m + (segment length), not always m + 1. The statement is False.
- II: RTO = EstimatedRTT + 4 DevRTT, and DevRTT is never negative, so RTO is always at least EstimatedRTT. The statement is True.
- III: The advertised window changes when the receive buffer fills up and empties. The statement is False.
- IV: The sender keeps the unacknowledged bytes within the window the receiver advertised. The statement is True.
So I and III are false.
Answer: (B)
Suppose that everyone in a group of N people wants to communicate secretly with the N-1 others using symmetric key cryptographic system. The communication between any two persons should not be decodable by the others in the group. The number of keys required in the system as a whole to satisfy the confidentiality requirement is
Answer: (C)
Every pair of people needs one secret key that only the two of them share.
Total number of pairs:
Answer: N(N-1)/2
Total number of pairs:
Answer: N(N-1)/2
Which of the following statements is/are FALSE?
I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
Answer: (C)
I is true: XML was designed to describe structured data, which HTML does not do well.
II is false: it is the other way round. XML is case sensitive (<Book> and <book> are different tags), while HTML tag names are not.
III is true: XML lets users define their own tags; HTML has a fixed set.
IV is false: every XML element must be closed, while HTML allows some tags, such as <br> and <p>, to stay open.
So the false statements are II and IV.
Answer: (C)
II is false: it is the other way round. XML is case sensitive (<Book> and <book> are different tags), while HTML tag names are not.
III is true: XML lets users define their own tags; HTML has a fixed set.
IV is false: every XML element must be closed, while HTML allows some tags, such as <br> and <p>, to stay open.
So the false statements are II and IV.
Answer: (C)