GATE 2015 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2015 (Session 3)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 61–65 of 65

Q61Probability Theory2 marksNAT
Suppose XiX_{i} for i =1,2,3 are independent and identically distributed random variables whose probability mass functions are Pr[Xi=0]=Pr[Xi=1]=1/2Pr[X_{i}=0]=Pr[X_{i}=1]=1/2 for i=1,2,3. Define another random variable Y=X1X2⊕X3,  where  ⊕Y=X_{1}X_{2}\oplus X_{3}, \; where \; \oplus denotes XOR. Then
Pr[Y=0∣X3=0]=Pr[Y=0|X_{3}=0]=_______________.

Q62Boolean Algebra2 marksNAT
The total number of prime implicants of the function f(w,x,y,z)=Σ\Sigma(0,2,4,5,6,10) is _______.

Q63Function2 marksNAT
Suppose c=(c[0],...,c[k-1]) is an array of length k, where all the entries are from the set {0,1}. For any positive integers a and n, consider the following pseudocode.
DOSOMETHING(c, a, n)
z ← 1
for i ← 0 to k − 1
    do z ← z² mod n
     if c[i] = 1
         then z ← (z × a) mod n
return z

If k=4, c=(1,0,1,1), a=2 and n=8, then the output of DOSOMETHING(c,a,n) is _____.

Q64Asymptotic Notation2 marksMCQ−0.67 if wrong
Let f(n)=nf(n)=n and g(n)=n1+sin  ng(n)=n^{1+sin \; n} where n is a positive integer. Which of the following statements is/are correct?
I. f(n)=O(g(n))f(n)=O(g(n))
II. f(n)=Ω(g(n))f(n)= \Omega (g(n))

Q65Parsing2 marksMCQ−0.67 if wrong
Consider the following grammar
S →\rightarrow F|H
F →\rightarrow p|c
H →\rightarrow d|c
where S,F, and H are non-terminal symbols, p,d, and c are terminal symbols. Which of the following statement(s) is/are correct?
S1. LL(1) can parse all strings that are generated using grammar G
S2. LR(1) can parse all strings that are generated using grammar G