PREVIOUS YEAR SOLVED PAPERS MCQ - GATE 2019

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

(a) {wwR |w ∈ {a, b}* } is a CFL

(b) {wan bn wR |w ∈ {a, b}*, n ≥ 0} is a CFL, since we can first push w, then a’s, b’s pop with a’s and wR pops with the w. So PDA can accept the language.

(c) {wanwR bn|w ∈ {a, b}*, n ≥ 0} is a not CFL because after pushing w, we need to push a’s into stack which will stop the w from being matched with wR. If we don’t push a’s after w, than later we cannot match with bn. So this language is not acceptable by a PDA and hence not a CFL.

(d) {anbi |i ∈ {n, 3n, 5n}, n ≥ 0} = anbn∪ anb3n∪ anb5n is CFL since each of the three parts is a CFL and closure under union guarantees that result also is a CFL.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

X(PQRS) {QR → S, R → P, S → Q} decomposed into
 Y(PR)Z(QRS)
 {R → P}{QR → S, S → Q}
 Candidate key : RCandidate key : QR, RS
 Relation Y in BCNFRelation Z in 3NF but not BCNF
The common attribute between Y and Z relations is R which is key for relation Y.
So that given decomposition is lossless join decomposition.
     R → P in Y
    
and dependency preserving decomposition.
Hence, C is the correct answer.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

1 word = 4 bytes
Page size = 8 kB = 213 B
Number of words in 1 page = 213/22 = 211
TLB can hold 128 valid entries so, at most 128 × 211 memory address can be addressed without TLB miss.
128 × 211 = 256 × 210
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:

S1: The set : LRE is known to be countably infinite since it corresponds with set of turing machines.
S2: Since syntactically valid C programs surely run on Turing machines, this set is also : a subset of set of Turing machines, which is countable.
S3: Set of all languages = 2Σ which is known to be uncountable. Σ* countably infinite
⇒ 2Σ is uncountable.
S4: Set of all non-regular languages includes set : L NOT RE which is uncountable infinite and hence is uncountable.
So, S3 and S4 are uncountable.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

∀x[∀z⊗x ⇒ ((z = x) ∨ (z = 1)) ⇒ ∃w (w > x) ∧ (∀z z⊗w ⇒ ((w = z) ∨ (z = 1)))]

The predicate ϕ simply says that if z is a prime number in the set then there exists another prime number is the set which is larger.

Clearly ϕ is true in S2 and S3 since in set of all integers as well as all positive integers, there is a prime number greater than any given prime number.

However, in S1 : {1, 2, 3, .....100} ϕ is false since for prime number 97 ∈ S1 there exists no prime number in the set which is greater. So correct answer is C.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →