1
GATE CSE 2007
MCQ (Single Correct Answer)
+2
-0.6
Consider the following two statements:

P: Every regular grammar is LL(1)
Q: Every regular set has a LR(1) grammar

Which of the following is TRUE?
A
Both P and Q are true
B
P is true and Q is false
C
P is false and Q is true
D
Both P and Q are false
2
GATE CSE 2007
MCQ (Single Correct Answer)
+1
-0.3
Consider the following two statements:

i. A hash function (these are often used for computing digital signatures) is an injective function.
ii. encryption technique such as DES performs a permutation on the elements of its input alphabet.

Which one of the following options is valid for the above two statements?
A
Both are false
B
Statement (i) is true and the other is false
C
Statement (ii) is true and the other is false
D
Both are true
3
GATE CSE 2007
MCQ (Single Correct Answer)
+1
-0.3
Exponentiation is a heavily used operation in public key cryptography. Which of the following options is the tightest upper bound on the number of multiplications required to compute (bn mod m),$$0 \le b,n \le m$$?
A
$${\rm O}\left( {\log n} \right)$$
B
$${\rm O}\left( {\sqrt n } \right)$$
C
$${\rm O}\left( {{n \over {\log n}}} \right)$$
D
$${\rm O}\left( n \right)$$
4
GATE CSE 2007
MCQ (Single Correct Answer)
+1
-0.3
Which one of the following uses UDP as the transport protocol?
A
HTTP
B
Telnet
C
DNS
D
SMTP