GATE 2026 (Session 2)
65 questions
MCQ 35 · MSQ 11 · NAT 191-mark 30 · 2-mark 35
Questions 11–15 of 65
For two different persons and , the predicate denotes that knows .
Consider the following statement.
There is a person who does not know anyone else, but that person is known by everyone else.
Which one of the following expressions represents the above statement?
Consider the following statement.
There is a person who does not know anyone else, but that person is known by everyone else.
Which one of the following expressions represents the above statement?
Answer: (A)
We have to write this sentence in logic: "There is a person who does not know anyone else, but everyone else knows ."
- "There is a person " gives .
- "Every other person ()" gives .
- " knows " (everyone else knows this person) gives .
- " does not know " (this person knows no one else) gives .
Putting these together we get . There is one special person . For every other person , knows but does not know .
The other options do not fit. Some use , which wrongly asks every person to have this property, not just one special person. Others use , which says only that some exists, not that it holds for every other person.
Answer:
- "There is a person " gives .
- "Every other person ()" gives .
- " knows " (everyone else knows this person) gives .
- " does not know " (this person knows no one else) gives .
Putting these together we get . There is one special person . For every other person , knows but does not know .
The other options do not fit. Some use , which wrongly asks every person to have this property, not just one special person. Others use , which says only that some exists, not that it holds for every other person.
Answer:
The set represents various traversals over binary tree. The set represents the order of visiting nodes during a traversal.
Which one of the following is the correct match from to ?
Which one of the following is the correct match from to ?
Answer: (A)
Let us recall what each traversal means. We look at when the current node is visited compared with its subtrees.
- Inorder (I): first the left subtree, then the node, then the right subtree. This is L (left subtree, node, right subtree).
- Preorder (II): first the node, then the left subtree, then the right subtree. This is M (node, left subtree, right subtree).
- Postorder (III): first the left subtree, then the right subtree, and the node last. This is N (left subtree, right subtree, node).
Answer: I-L, II-M, III-N
- Inorder (I): first the left subtree, then the node, then the right subtree. This is L (left subtree, node, right subtree).
- Preorder (II): first the node, then the left subtree, then the right subtree. This is M (node, left subtree, right subtree).
- Postorder (III): first the left subtree, then the right subtree, and the node last. This is N (left subtree, right subtree, node).
Answer: I-L, II-M, III-N
Which one of the following statements is equivalent to the following assertion?
Turing machine decides the language
Turing machine decides the language
Answer: (D)
Saying that a Turing machine "decides" a language means that is a total decider for . It must halt on every input. Its halting result must also sort strings correctly: it accepts every string that is in , and it rejects every string that is not in (that is, every string in ).
Halting on all inputs is not enough alone, because it does not say whether the accept or reject result is correct. "Accepts all of " alone is not enough, and "rejects all of the complement" alone is not enough either. Each one covers only one direction. Only both conditions together are equivalent to "decides ."
Answer: M accepts all strings in L and rejects all strings in {0,1}*-L
Halting on all inputs is not enough alone, because it does not say whether the accept or reject result is correct. "Accepts all of " alone is not enough, and "rejects all of the complement" alone is not enough either. Each one covers only one direction. Only both conditions together are equivalent to "decides ."
Answer: M accepts all strings in L and rejects all strings in {0,1}*-L
The probability density function of a random variable which takes real values is
Which one of the following statements is correct about the random variable ?
Which one of the following statements is correct about the random variable ?
Answer: (B)
The density has the form of the normal density . Here the mean is . Comparing the exponent gives . The constant also fits as the normalizing constant .
So this is the bell-curve density of a normal (Gaussian) random variable with mean and standard deviation . It does not match an exponential or a uniform distribution. A Poisson variable is discrete, so it does not have a continuous density like this.
Answer: (B)
So this is the bell-curve density of a normal (Gaussian) random variable with mean and standard deviation . It does not match an exponential or a uniform distribution. A Poisson variable is discrete, so it does not have a continuous density like this.
Answer: (B)
In the context of DBMS, consider the two sets and given below.
Which one of the following is the correct match from to ?
Which one of the following is the correct match from to ?
Answer: (C)
Match each schema level of the three-tier DBMS architecture with what it describes:
- Logical schema (I): gives the overall logical structure of the database for all users. This is what relations (N) show.
- Physical schema (II): tells how data is really stored at the lowest level. This is file organization and indexes (M).
- External schema (III): gives each user their own view of part of the data. This is what views (L) do.
Answer: I-N, II-M, III-L
- Logical schema (I): gives the overall logical structure of the database for all users. This is what relations (N) show.
- Physical schema (II): tells how data is really stored at the lowest level. This is file organization and indexes (M).
- External schema (III): gives each user their own view of part of the data. This is what views (L) do.
Answer: I-N, II-M, III-L