GATE-IT-2004

Question 1
In a population of N families, 50% of the families have three children, 30% of the families have two children and the remaining families have one child. What is the probability that a randomly picked child belongs to a family with two children?
Cross
3/23
Tick
6/23
Cross
3/10
Cross
3/5


Question 1-Explanation: 
x- total families. Given:
  • 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
Probability = No of ways it can happen/Total Outcomes =( (3/10)*2 ) / ( (1/2)*3 + (3/10)*2 +1/5 ) = 6/23 So Answer is B
Question 2
In a class of 200 students, 125 students have taken Programming Language course, 85 students have taken Data Structures course, 65 students have taken Computer Organization course; 50 students have taken both Programming Language and Data Structures, 35 students have taken both Data Structures and Computer Organization; 30 students have taken both Data Structures and Computer Organization, 15 students have taken all the three courses.How many students have not taken any of the three courses?
 
Cross
15
Cross
20
Tick
25
Cross
35


Question 2-Explanation: 
P(AUBUC)=P(A)+P(B)+P(C)- P(A∩B)-P(A∩C)- P(B∩C)+P(A∩B∩C)
125+85+65-50−35−30+15 =175
No of students not taking any courses-> 200−175=25 So C is the Answer.
Question 3
Let a(x, y), b(x, y,) and c(x, y) be three statements with variables x and y chosen from some universe. Consider the following statement:
(∃x)(∀y)[(a(x, y) ∧ b(x, y)) ∧ ¬c(x, y)] Which one of the following is its equivalent?  
Cross
(∀x)(∃y)[(a(x, y) ∨ b(x, y)) → c(x, y)]
Cross
(∃x)(∀y)[(a(x, y) ∨ b(x, y)) ∧¬ c(x, y)]
Tick
¬ (∀x)(∃y)[(a(x, y) ∧ b(x, y)) → c(x, y)]
Cross
¬ (∀x)(∃y)[(a(x, y) ∨ b(x, y)) → c(x, y)]


Question 3-Explanation: 
Choice (C) is = ¬ (∀x)(∃y)[(a(x, y) ∧ b(x, y)) → c(x, y)] = ¬ (∀x)(∃y)[ a∧ b → c ] = ¬ (∀x)(∃y)[ (ab)' + c] = ∃ x ∀ y[ (ab)' + c]' = ∃ x ∀ y[ abc' ] = ∃ x ∀ y[ a ∧ b ∧ c ¬c] Which is same as the given expression. (∃x)(∀y)[(a(x, y) ∧ b(x, y)) ∧ ¬c(x, y)]
Question 4
Let R1 be a relation from A = {1, 3, 5, 7} to B = {2, 4, 6, 8} and R2 be another relation from B to C = {1, 2, 3, 4} as defined below:
  1. An element x in A is related to an element y in B (under R1) if x + y is divisible by 3.
  2. 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.
Which is the composite relation R1R2 from A to C?  
Cross
R1R2 = {(1, 2), (1, 4), (3, 3), (5, 4), (7, 3)}
Cross
R1R2 = {(1, 2), (1, 3), (3, 2), (5, 2), (7, 3)}
Tick
R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)}
Cross
R1R2 = {(3, 2), (3, 4), (5, 1), (5, 3), (7, 1)}


Question 4-Explanation: 

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) \epsilon R2R1 If and only if there is a y E B such that (x, y) \epsilon R1 and (y, z) \epsilon R2.
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
What is the maximum number of edges in an acyclic undirected graph with n vertices?
Tick
n-1
Cross
n
Cross
n + 1
Cross
2n-1


Question 5-Explanation: 
n * (n - 1) / 2 when cyclic. But acyclic graph with the maximum number of edges is actually a spanning tree and therefore, correct answer is n-1 edges.
Question 6

What values of x, y and z satisfy the following system of linear equations? 

 


 

Cross

x=6, y=3, z=2

Cross

x=12, y=3, z=-4

Tick

x=6, y=6, z=-4

Cross

x=12, y=-3, z=0



Question 6-Explanation: 

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
Which one of the following regular expressions is NOT equivalent to the regular expression (a + b + c) *?
Cross
(a* + b* + c*)*
Cross
(a*b*c*)*
Tick
((ab)* + c*)*
Cross
(a*b* + c*)*


Question 7-Explanation: 
C- (ab)* + c*)* will always give strings with "ab" together.Whereas (a+b+c)* would generate language where a,b,c may not be always together. A,B,D may generate same language as (a+b+c)*   So, Answer is (C)
Question 8
What is the minimum number of NAND gates required to implement a 2-input EXCLUSIVE-OR function without using any other logic gate?
Cross
3
Tick
4
Cross
5
Cross
6


Question 8-Explanation: 
itq Pic Courtesy: http://www.electronics-tutorials.ws/logic/logic_7.html Other way around: x XOR y = x’y+xy’ = x’y+xy’+xx’+yy’ = (x+y) (x’+y’) Using NAND gates F= (x+y)(xy)’ = x. (xy)’ + y. (xy)’ Taking compliment F’= ( x. (xy)’ + y. (xy)’ )’ = (x. (xy)’)’. (y. (xy)’) Compliment again F=( (x. (xy)’)’. (y. (xy)’) )’ So Answer is B
Question 9
Which one of the following statements is FALSE?
Cross
There exist context-free languages such that all the context-free grammars generating them are ambiguous
Cross
An unambiguous context free grammar always has a unique parse tree for each string of the language generated by it.
Tick
Both deterministic and non-deterministic pushdown automata always accept the same set of languages
Cross
A finite set of string from one alphabet is always a regular language.


Question 9-Explanation: 

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 \Sigma is closed under operations union, concatenation and Kleene star.
  • Finite languages are regular
So Answer is C
Question 10
What is the minimum size of ROM required to store the complete truth table of an 8-bit x 8-bit multiplier?
Cross
32 K x 16 bits
Tick
64 K x 16 bits
Cross
16 K x 32 bits
Cross
64 K x 32 bits


Question 10-Explanation: 
Input to ROM - 2 lines ,8 bit each. Possible combinations in ROM - (2^8)x(2^8) Size of truth table = (2^8)*(2^8)=2^16=64 KB Maximum output size = 16 bit So, Answer is B
There are 88 questions to complete.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Looking for a place to share your ideas, learn, and connect? Our Community portal is just the spot! Come join us and see what all the buzz is about!


  • Last Updated : 22 Jun, 2021

Share your thoughts in the comments
Similar Reads