Combination: GATE CS Previous Year Questions

Combination · Discrete Mathematics

29 questions · asked in 16 of 27 years (2000–2026)

MCQ 19 · NAT 101-mark 21 · 2-mark 8

2000Questions per year2026

Questions 21–25 of 29

Q21GATE 20041 markMCQ−0.33 if wrong
Mala has a colouring book in which each English letter is drawn two times. She wants to paint each of these 52 prints with one of k colours, such that he colour pairs used to colour any two letters are different. Both prints of a letter can also be coloured with the same colour. What is the minimum value of k that satisfies this requirement?

Q22GATE 20041 markMCQ−0.33 if wrong
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 Programming Language 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?

Q23GATE 20031 markMCQ−0.33 if wrong
In a permutation a1.....ana_1.....a_n of n distinct integers, an inversion is a pair (ai,aj)(a_i, a_j) such that i<ji \lt j and ai>aja_i \gt a_j.

If all permutation are equally likely, what is the expected number of inversions in a randomly chosen permutation of 1.....n?

Q24GATE 20031 markMCQ−0.33 if wrong
Let Σ\Sigma = {a, b, c, d, e} be an alphabet. We define an encoding scheme as follows : g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11.
Let pip_{i} denote the i-th prime number (p1=2p_{1}=2).
For a non-empty string s=a1...ans=a_{1}...a_{n}, where each ai∈Σa_{i} \in \Sigma, define f(s)=∏i=1npig(ai)f(s)=\prod_{i=1}^{n}{p_{i}}^{g(a_{i})}.
For a non-empty sequence <s1,...,sn>\lt s_{1},...,s_{n} \gt of strings from Σ+\Sigma^{+},
define h(<s1,...,sn>)=∏i=1npif(si)h(\lt s_{1},...,s_{n} \gt)=\prod_{i=1}^{n}{p_{i}}^{f(s_{i})}
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?

Q25GATE 20031 markMCQ−0.33 if wrong
m identical balls are to be placed in n distinct bags. You are given that m ≥\geqkn, where k is a natural number ≥\geq1. In how many ways can the balls be placed in the bags if each bag must contain at least k balls?
(A) m − k n − 1 (B) m − kn + n − 1 n − 1 (C) m − 1 n − k (D) m − kn + n + k − 2 n − k

Keep practising

Topics in Discrete Mathematics

All CS topics ›