GATE-IT-2004
Question 1 |
3/23 | |
6/23 | |
3/10 | |
3/5 |
Discuss it
- 50% -3 Children -> (5*x/10) * 3=(1*x/2)*3
- 30% -2 Children-> (3*x /10) * 2
- Rear 20%- 1child -> (2*x/10)*1 =1*x/5
Question 2 |
15 | |
20 | |
25 | |
35 |
Discuss it
Question 3 |
(∀x)(∃y)[(a(x, y) ∨ b(x, y)) → c(x, y)] | |
(∃x)(∀y)[(a(x, y) ∨ b(x, y)) ∧¬ c(x, y)] | |
¬ (∀x)(∃y)[(a(x, y) ∧ b(x, y)) → c(x, y)] | |
¬ (∀x)(∃y)[(a(x, y) ∨ b(x, y)) → c(x, y)] |
Discuss it
Question 4 |
- An element x in A is related to an element y in B (under R1) if x + y is divisible by 3.
- An element x in B is related to an element y in C (under R2) if x + y is even but not divisible by 3.
R1R2 = {(1, 2), (1, 4), (3, 3), (5, 4), (7, 3)} | |
R1R2 = {(1, 2), (1, 3), (3, 2), (5, 2), (7, 3)} | |
R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)} | |
R1R2 = {(3, 2), (3, 4), (5, 1), (5, 3), (7, 1)} |
Discuss it
R1 is a relation from A = {1, 3, 5, 7} to B = {2, 4, 6, 8} . Under R1, an element x in A is related to an element y in B if x + y is divisible by 3.
Thus, R1 = {(1, 2), (1, 8), (3, 6), (5, 4), (7, 2), (7, 8)}
R2 is a relation from B = {2, 4, 6, 8} to C = {1, 2, 3, 4} Under R2, an element y in B is related to an element z in C if y + z is even but not divisible by 3.
Thus, R2 = {(2, 2), (4, 4), (6, 2), (6, 4), (8, 2)}
Then the composition of R1 with R2, denoted R2R1, is the relation from A to C defined by the following property: (x, z)



Thus, R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)}
Thus, option (C) is correct.
Please comment below if you find anything wrong in the above post.
Question 5 |
n-1 | |
n | |
n + 1 | |
2n-1 |
Discuss it
Question 6 |
What values of x, y and z satisfy the following system of linear equations?
x=6, y=3, z=2 | |
x=12, y=3, z=-4 | |
x=6, y=6, z=-4 | |
x=12, y=-3, z=0 |
Discuss it
1 * x + 2 * y + 3 * z = 6
1 * x + 3 * y + 4 * z = 8
2 * x + 2 * y + 3 * z = 12
Put x =6 , y = 6 and z = -4
The above three equation are satisfied.
Question 7 |
(a* + b* + c*)* | |
(a*b*c*)* | |
((ab)* + c*)* | |
(a*b* + c*)* |
Discuss it
Question 8 |
3 | |
4 | |
5 | |
6 |
Discuss it

Question 9 |
There exist context-free languages such that all the context-free grammars generating them are ambiguous | |
An unambiguous context free grammar always has a unique parse tree for each string of the language generated by it. | |
Both deterministic and non-deterministic pushdown automata always accept the same set of languages | |
A finite set of string from one alphabet is always a regular language. |
Discuss it
A) For real-world programming languages, the reference CFG is often ambiguous, due to issues such as the dangling else problem. //Wikipedia
B) A string is ambiguous if it has two distinct parse trees;The grammar is unambiguous,if a string has distinct parse trees.
C) Deterministic pushdown automata can recognize all deterministic context-free languages while nondeterministic ones can recognize all context-free languages
Therefore it's FALSE
D)Properties of Regular Language:
- The set of regular languages over an alphabet
is closed under operations union, concatenation and Kleene star.
- Finite languages are regular
Question 10 |
32 K x 16 bits | |
64 K x 16 bits | |
16 K x 32 bits | |
64 K x 32 bits |
Discuss it