GATE 2019
65 questions
MCQ 41 · NAT 241-mark 30 · 2-mark 35
Questions 16–20 of 65
Which one of the following is NOT a valid identity?
Answer: (B)
Check each option:
(A) XOR is associative, so . Valid.
(B) Take . Left side: . Right side: . They differ, so this is not valid.
(C) If , then x and y are never both 1, so XOR and OR give the same value. Valid.
(D) is XNOR, and its complement is XOR. Valid.
Answer: (B)
(A) XOR is associative, so . Valid.
(B) Take . Left side: . Right side: . They differ, so this is not valid.
(C) If , then x and y are never both 1, so XOR and OR give the same value. Valid.
(D) is XNOR, and its complement is XOR. Valid.
Answer: (B)
If L is a regular language over , which one of the following languages is NOT regular ?
Answer: (B)
(A) Regular languages are closed under reversal and concatenation, so is regular.
(C) Prefix(L): in a DFA for , make every state from which a final state can be reached a final state. This DFA accepts Prefix(L), so it is regular.
(D) Suffix(L): in an NFA for , let every reachable state be a start state. This NFA accepts Suffix(L), so it is regular.
(B) : for this is the set of even-length palindromes. It is not regular. For example, in pumping the first 's breaks the symmetry. So this language need not be regular.
Answer: (B)
(C) Prefix(L): in a DFA for , make every state from which a final state can be reached a final state. This DFA accepts Prefix(L), so it is regular.
(D) Suffix(L): in an NFA for , let every reachable state be a start state. This NFA accepts Suffix(L), so it is regular.
(B) : for this is the set of even-length palindromes. It is not regular. For example, in pumping the first 's breaks the symmetry. So this language need not be regular.
Answer: (B)
Consider Z = X - Y where X, Y and Z are all in sign-magnitude form. X and Y are each represented in n bits. To avoid overflow, the representation of Z would require a minimum of:
Answer: (C)
A sign-magnitude number with n bits has 1 sign bit and n 1 magnitude bits. The value of X Y can be as big as (max magnitude) + (max magnitude). For example, take (+max) (max). This needs one more magnitude bit.
So Z needs n + 1 bits.
Answer: n+1 bits
So Z needs n + 1 bits.
Answer: n+1 bits
Let X be a square matrix. Consider the following two statements on X.
I. X is invertible
II. Determinant of X is non-zero
Which one of the following is TRUE?
I. X is invertible
II. Determinant of X is non-zero
Which one of the following is TRUE?
Answer: (D)
A square matrix has an inverse only when its determinant is not zero, and the other way round too (). So statement I and statement II follow from each other.
Answer: I and II are equivalent statements
Answer: I and II are equivalent statements
Let G be an arbitrary group. Consider the following relations on G:
R1: if and only if such that
R2: if and only if
Which of the above is/are equivalence relation/relations?
R1: if and only if such that
R2: if and only if
Which of the above is/are equivalence relation/relations?
Answer: (B)
R1 (conjugacy):
- Reflexive:
- Symmetric: if holds, then holds.
- Transitive:
So R1 is an equivalence relation.
R2: for aR2a we would need . This fails in general (for example, the element 1 in ). So R2 is not reflexive.
Answer: R1 only
- Reflexive:
- Symmetric: if holds, then holds.
- Transitive:
So R1 is an equivalence relation.
R2: for aR2a we would need . This fails in general (for example, the element 1 in ). So R2 is not reflexive.
Answer: R1 only