Counting questions

Q30

GATE CS 2025 CS-1Discrete MathematicsNAT1 mark
Let SS be the set of all ternary strings defined over the alphabet \{a, b, c\}. Consider all strings in SS that contain at least one occurrence of two consecutive symbols, that is, \u201caa\u201d, \u201cbb\u201d or \u201ccc\u201d. The number of such strings of length 5 that are possible is _______. (Answer in integer)
Show answer without attempting

Answer: 195

Q48

GATE CS 2023 CSDiscrete MathematicsMCQ2 marks−2/3 if wrong
Let U={1,2,…,n}U = \{1, 2, \dots, n\}, where nn is a large positive integer greater than 1000. Let kk be a positive integer less than nn. Let A,BA, B be subsets of UU with ∣A∣=∣B∣=k|A| = |B| = k and A∩B=∅A \cap B = \emptyset. We say that a permutation of UU separates AA from BB if one of the following is true.
- All members of AA appear in the permutation before any of the members of BB.
- All members of BB appear in the permutation before any of the members of AA.

How many permutations of UU separate AA from BB?
Show answer without attempting

Answer: D

Q32

GATE CS 2022 CSDiscrete MathematicsNAT1 mark
The number of arrangements of six identical balls in three identical bins is______.
Show answer without attempting

Answer: 7

Q19

GATE CS 2021 CS-1Discrete MathematicsNAT1 mark
There are 6 jobs with distinct difficulty levels, and 3 computers with distinct processing speeds. Each job is assigned to a computer such that:
- The fastest computer gets the toughest job and the slowest computer gets the easiest job.
- Every computer gets at least one job.
The number of ways in which this can be done is ______.
Show answer without attempting

Answer: 65

Q50

GATE CS 2021 CS-2Discrete MathematicsNAT2 marks
Let SS be a set consisting of 10 elements. The number of tuples of the form (A,B)(A, B) such that AA and BB are subsets of SS, and A⊆BA \subseteq B is ____________.
Show answer without attempting

Answer: 59049

Q42

GATE CS 2020 CSDiscrete MathematicsNAT2 marks
The number of permutations of the characters in LILAC so that no character appears in its original position, if the two L’s are indistinguishable, is __________.
Show answer without attempting

Answer: 12

Q5

GATE CS 2019 CSDiscrete MathematicsMCQ1 mark−1/3 if wrong
Let U={1,2,...,n}U = \{1, 2, ..., n\}. Let A={(x,X)∣x∈X,X⊆U}A = \{(x, X) \mid x \in X, X \subseteq U\}. Consider the following two statements on ∣A∣|A|.
I. ∣A∣=n2n−1\quad |A| = n 2^{n-1}
II. ∣A∣=∑k=1nk(nk)\quad |A| = \sum_{k=1}^n k \binom{n}{k}
Which of the above statements is/are TRUE?
Show answer without attempting

Answer: C

Q54

GATE CS 2019 CSDiscrete MathematicsNAT2 marks
In an RSA cryptosystem, the value of the public modulus parameter nn is 30073007. If it is also known that ϕ(n)=2880\phi(n) = 2880, where ϕ\phi denotes Euler's Totient Function, then the prime factor of nn which is greater than 5050 is __________.
Show answer without attempting

Answer: 97

Q44

GATE CS 2017 CS-1Discrete MathematicsNAT2 marks
In a RSA cryptosystem, a participant A uses two prime numbers p=13p = 13 and q=17q = 17 to generate her public and private keys. If the public key of A is 3535, then the private key of A is ____________.
Show answer without attempting

Answer: 11.0

Q47

GATE CS 2017 CS-1Discrete MathematicsNAT2 marks
The number of integers between 11 and 500500 (both inclusive) that are divisible by 33 or 55 or 77 is ____________.
Show answer without attempting

Answer: 271.0

Q26

GATE CS 2016 CS-1Discrete MathematicsNAT2 marks
The coefficient of x12x^{12} in (x3+x4+x5+x6+⋯ )3(x^3 + x^4 + x^5 + x^6 + \cdots)^3 is ________.
Show answer without attempting

Answer: 10.0

Q25

GATE CS 2015 CS-3Discrete MathematicsNAT1 mark
The number of 4 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set {1,2,3}\{1, 2, 3\} is ____________.
Show answer without attempting

Answer: 15

Q58

GATE CS 2015 CS-2Discrete MathematicsNAT2 marks
The number of onto functions (surjective functions) from set X={1,2,3,4}X = \{1, 2, 3, 4\} to set Y={a,b,c}Y = \{a, b, c\} is ____________.
Show answer without attempting

Answer: 36

Q42

GATE CS 2014 CS-1Discrete MathematicsMCQ2 marks−2/3 if wrong
Consider the following pseudo code. What is the total number of multiplications to be performed?
D = 2
for i = 1 to n do
    for j = i to n do
        for k = j + 1 to n do
            D = D * 3
Show answer without attempting

Answer: C

Q50

GATE CS 2014 CS-1Discrete MathematicsNAT2 marks
Let SS denote the set of all functions f:{0,1}4→{0,1}f:\{0,1\}^4 \to \{0,1\}. Denote by NN the number of functions from SS to the set {0,1}\{0,1\}. The value of log⁡2log⁡2N\log_2 \log_2 N is ______.
Show answer without attempting

Answer: 16

Q37

GATE CS 2012 CSDiscrete MathematicsMCQ2 marks−2/3 if wrong
How many onto (or surjective) functions are there from an nn-element (n≥2)(n \geq 2) set to a 2-element set?
Show answer without attempting

Answer: C

Q38

GATE CS 2012 CSDiscrete MathematicsMCQ2 marks−2/3 if wrong
Let G be a complete undirected graph on 6 vertices. If vertices of G are labeled, then the number of distinct cycles of length 4 in G is equal to
Show answer without attempting

Answer: Marks to all

0/200 correct0 marks

Related topics in Discrete Mathematics