Updated: Mar 2026
First Chapter - 100% FREE

CMI M.Sc. and Ph.D. Computer Science Chapter Practice

Practice CMI M.Sc. and Ph.D. Computer Science questions chapter-wise. 1000+ practice questions across 50 topics with detailed solutions. First chapter FREE!

1000+
Questions
50
Chapters
~34h
Total Time
72%
Avg Score
Start Free Test →

Question Type Distribution

0
MCQ
Single Choice
251
MSQ
Multiple Select
0
NAT
Numerical

All Chapters

Basic Probability

FREE

Probability Theory

13
Questions
26m
Est. Time
Start Free

Conditional Probability and Independence

Probability Theory

21
Questions
42m
Est. Time
Unlock

Random Variables

Probability Theory

6
Questions
12m
Est. Time
Unlock

Elementary Distributions

Probability Theory

4
Questions
8m
Est. Time
Unlock

Probabilistic Bounds

Probability Theory

6
Questions
12m
Est. Time
Unlock

Expectation and Variance

Probability Theory

6
Questions
12m
Est. Time
Unlock

Foundations of Propositional Logic

Logic and Boolean Algebra

32
Questions
64m
Est. Time
Unlock

Predicate Logic

Logic and Boolean Algebra

2
Questions
4m
Est. Time
Unlock

Boolean Algebra

Logic and Boolean Algebra

8
Questions
16m
Est. Time
Unlock

Logic Gates and Circuits

Logic and Boolean Algebra

5
Questions
10m
Est. Time
Unlock

Partial Derivatives

Calculus

1
Questions
2m
Est. Time
Unlock

Limits and Continuity

Calculus

2
Questions
4m
Est. Time
Unlock

Derivatives

Calculus

1
Questions
2m
Est. Time
Unlock

Integrals

Calculus

2
Questions
4m
Est. Time
Unlock

Special Graph Structures

Graph Theory

21
Questions
42m
Est. Time
Unlock

Graph Definitions and Types

Graph Theory

116
Questions
232m
Est. Time
Unlock

Minimum Spanning Trees

Graph Theory

8
Questions
16m
Est. Time
Unlock

Matchings and Coloring

Graph Theory

29
Questions
58m
Est. Time
Unlock

Graph Traversal

Graph Theory

31
Questions
62m
Est. Time
Unlock

Shortest Path Algorithms

Graph Theory

23
Questions
46m
Est. Time
Unlock

Basic Probability - Practice

Free sample questions from Probability Theory

100% FREE
1 Multiple Select
Let S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. An experiment consists of choosing two distinct numbers sequentially from SS to form an ordered pair (x,y)(x, y). Let Ω\Omega be the sample space. Consider the following events: * E1E_1: The sum x+yx+y is even. * E2E_2: The first number xx is greater than the second number yy. * E3E_3: The product xyxy is a multiple of 3. Which of the following statements are correct?
A
The size of the sample space Ω|\Omega| is 20.
B
The size of event E1E_1 is 8.
C
The size of event E2E_2 is 12.
D
The size of event E3E_3 is 8.
View Solution
**Step 1: Determine the size of the sample space Ω|\Omega|.** The experiment involves choosing two distinct numbers sequentially from the set S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. This forms an ordered pair (x,y)(x, y) where xyx \neq y. The number of choices for the first number xx is 5. After choosing xx, there are 4 remaining choices for the second number yy. Thus, the total number of ordered pairs is 5×4=205 \times 4 = 20.
Ω=20|\Omega| = 20
Therefore, the statement "The size of the sample space Ω|\Omega| is 20." is **correct**. **Step 2: Determine the size of event E1E_1.** Event E1E_1 is that the sum x+yx+y is even. For the sum of two integers to be even, both integers must be even, or both must be odd. From S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}: * Odd numbers: O={1,3,5}O = \{1, 3, 5\} (3 numbers) * Even numbers: V={2,4}V = \{2, 4\} (2 numbers) Case 1: Both xx and yy are odd. Since xyx \neq y, we choose 2 distinct odd numbers sequentially. The number of ways is 3×2=63 \times 2 = 6. Case 2: Both xx and yy are even. Since xyx \neq y, we choose 2 distinct even numbers sequentially. The number of ways is 2×1=22 \times 1 = 2. The total size of event E1E_1 is the sum of these cases:
E1=6+2=8|E_1| = 6 + 2 = 8
Therefore, the statement "The size of event E1E_1 is 8." is **correct**. **Step 3: Determine the size of event E2E_2.** Event E2E_2 is that the first number xx is greater than the second number yy (i.e., x>yx > y). Since xx and yy are distinct, for any pair of distinct numbers chosen from SS, say aa and bb, either a>ba > b or b>ab > a. The total number of ordered pairs is 20. By symmetry, exactly half of these pairs will have the first element greater than the second, and the other half will have the second element greater than the first.
E2=Ω2=202=10|E_2| = \frac{|\Omega|}{2} = \frac{20}{2} = 10
Alternatively, we can list them: * If x=2,y=1x=2, y=1: (2,1) * If x=3,y{1,2}x=3, y \in \{1,2\}: (3,1), (3,2) * If x=4,y{1,2,3}x=4, y \in \{1,2,3\}: (4,1), (4,2), (4,3) * If x=5,y{1,2,3,4}x=5, y \in \{1,2,3,4\}: (5,1), (5,2), (5,3), (5,4) Summing these up: 1+2+3+4=101 + 2 + 3 + 4 = 10. Therefore, the statement "The size of event E2E_2 is 12." is **incorrect**. **Step 4: Determine the size of event E3E_3.** Event E3E_3 is that the product xyxy is a multiple of 3. For the product xyxy to be a multiple of 3, at least one of xx or yy must be a multiple of 3. From S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}, the only number that is a multiple of 3 is 3. Let M3={3}M_3 = \{3\} and SM3={1,2,4,5}S \setminus M_3 = \{1, 2, 4, 5\} (4 numbers). Case 1: xx is 3. If x=3x=3, then yy can be any of the other 4 distinct numbers from SS (i.e., y{1,2,4,5}y \in \{1, 2, 4, 5\}). This gives 4 pairs: (3,1),(3,2),(3,4),(3,5)(3,1), (3,2), (3,4), (3,5). Case 2: yy is 3. If y=3y=3, then xx can be any of the other 4 distinct numbers from SS (i.e., x{1,2,4,5}x \in \{1, 2, 4, 5\}). This gives 4 pairs: (1,3),(2,3),(4,3),(5,3)(1,3), (2,3), (4,3), (5,3). Since xyx \neq y, there is no overlap between these two cases (i.e., (3,3)(3,3) is not a possible outcome). The total size of event E3E_3 is the sum of these cases:
E3=4+4=8|E_3| = 4 + 4 = 8
Therefore, the statement "The size of event E3E_3 is 8." is **correct**. **Conclusion:** The correct statements are: * The size of the sample space Ω|\Omega| is 20. * The size of event E1E_1 is 8. * The size of event E3E_3 is 8.
2 Multiple Select
A random binary string of length 4 is generated, where each bit is chosen independently and uniformly at random from {0,1}\{0, 1\}. Let Ω\Omega be the sample space of all such strings. Consider the following events: * E1E_1: The string contains an even number of '1's. * E2E_2: The string starts with '1' and ends with '0'. * E3E_3: The string is a palindrome (reads the same forwards and backward). * E4E_4: The string contains at least three '1's. Which of the following statements are correct?
A
E1=8|E_1| = 8
B
E3E1E_3 \subseteq E_1
C
E2E4=8|E_2 \cup E_4| = 8
D
E1E4=2|E_1 \cap E_4| = 2
View Solution
**1. Define the Sample Space and its Size:** The sample space Ω\Omega consists of all possible binary strings of length 4. Since each of the 4 positions can be either '0' or '1' independently, the total number of possible strings is 24=162^4 = 16.
Ω=16|\Omega| = 16
**2. Calculate the Size of Each Event:** * **Event E1E_1: The string contains an even number of '1's.** This means the string can have 0, 2, or 4 '1's. * Number of strings with 0 '1's: (40)=1\binom{4}{0} = 1 (0000) * Number of strings with 2 '1's: (42)=4×32=6\binom{4}{2} = \frac{4 \times 3}{2} = 6 (e.g., 1100, 1010, 1001, 0110, 0101, 0011) * Number of strings with 4 '1's: (44)=1\binom{4}{4} = 1 (1111) Thus, E1=1+6+1=8|E_1| = 1 + 6 + 1 = 8. * **Event E2E_2: The string starts with '1' and ends with '0'.** The format of such a string is 1b2b301 b_2 b_3 0. The bits b2b_2 and b3b_3 can each be '0' or '1'. There are 1×2×2×1=41 \times 2 \times 2 \times 1 = 4 such strings. E2={1000,1010,1100,1110}E_2 = \{1000, 1010, 1100, 1110\}. Thus, E2=4|E_2| = 4. * **Event E3E_3: The string is a palindrome.** A binary string b1b2b3b4b_1 b_2 b_3 b_4 is a palindrome if b1=b4b_1 = b_4 and b2=b3b_2 = b_3. We need to choose b1b_1 (2 options: 0 or 1) and b2b_2 (2 options: 0 or 1). The bits b3b_3 and b4b_4 are then determined. There are 2×2=42 \times 2 = 4 palindromic strings. E3={0000,0110,1001,1111}E_3 = \{0000, 0110, 1001, 1111\}. Thus, E3=4|E_3| = 4. * **Event E4E_4: The string contains at least three '1's.** This means the string can have 3 '1's or 4 '1's. * Number of strings with 3 '1's: (43)=4\binom{4}{3} = 4 (e.g., 1110, 1101, 1011, 0111) * Number of strings with 4 '1's: (44)=1\binom{4}{4} = 1 (1111) Thus, E4=4+1=5|E_4| = 4 + 1 = 5. E4={1110,1101,1011,0111,1111}E_4 = \{1110, 1101, 1011, 0111, 1111\}. **3. Evaluate Each Statement:** * **Statement 1: E1=8|E_1| = 8** From our calculation, E1=8|E_1| = 8. This statement is **Correct**. * **Statement 2: E3E1E_3 \subseteq E_1** A string in E3E_3 is a palindrome of the form b1b2b2b1b_1 b_2 b_2 b_1. The number of '1's in such a string is 2×(value of b1)+2×(value of b2)2 \times (\text{value of } b_1) + 2 \times (\text{value of } b_2). This sum is always an even number (0, 2, or 4). For example, the strings in E3E_3 are: * 0000 (0 '1's - even) * 0110 (2 '1's - even) * 1001 (2 '1's - even) * 1111 (4 '1's - even) Since all strings in E3E_3 have an even number of '1's, they are all included in E1E_1. Therefore, E3E1E_3 \subseteq E_1. This statement is **Correct**. * **Statement 3: E2E4=8|E_2 \cup E_4| = 8** Using the Principle of Inclusion-Exclusion, E2E4=E2+E4E2E4|E_2 \cup E_4| = |E_2| + |E_4| - |E_2 \cap E_4|. We know E2=4|E_2| = 4 and E4=5|E_4| = 5. We need to find E2E4|E_2 \cap E_4|. E2E4E_2 \cap E_4 consists of strings that start with '1', end with '0', AND contain at least three '1's. Comparing E2={1000,1010,1100,1110}E_2 = \{1000, 1010, 1100, 1110\} and E4={1110,1101,1011,0111,1111}E_4 = \{1110, 1101, 1011, 0111, 1111\}, the only common string is 11101110. So, E2E4={1110}E_2 \cap E_4 = \{1110\}, and E2E4=1|E_2 \cap E_4| = 1. Therefore, E2E4=4+51=8|E_2 \cup E_4| = 4 + 5 - 1 = 8. This statement is **Correct**. * **Statement 4: E1E4=2|E_1 \cap E_4| = 2** E1E4E_1 \cap E_4 consists of strings that have an even number of '1's AND contain at least three '1's. From E4={1110,1101,1011,0111,1111}E_4 = \{1110, 1101, 1011, 0111, 1111\}, let's check which strings have an even number of '1's: * 1110 (3 '1's - odd) * 1101 (3 '1's - odd) * 1011 (3 '1's - odd) * 0111 (3 '1's - odd) * 1111 (4 '1's - even) So, E1E4={1111}E_1 \cap E_4 = \{1111\}. Therefore, E1E4=1|E_1 \cap E_4| = 1. This statement is **Incorrect**. The correct statements are 1, 2, and 3.
3 Multiple Select
An urn contains 5 distinct balls. Each ball has a specific color and a distinct number: * Ball 1: Red (R), Number 1 * Ball 2: Red (R), Number 2 * Ball 3: Blue (B), Number 3 * Ball 4: Blue (B), Number 4 * Ball 5: Green (G), Number 5 Two balls are drawn sequentially without replacement from the urn. Consider the following statements about the sample space Ω\Omega and various events:
A
The size of the sample space, Ω|\Omega|, is 20.
B
Let E1E_1 be the event that both balls drawn are of the same color. Then E1=4|E_1| = 4.
C
Let E2E_2 be the event that the sum of the numbers on the two drawn balls is odd. Then E2=10|E_2| = 10.
D
Let E3E_3 be the event that the first ball drawn is Red and the second ball drawn is Green. Then E3=2|E_3| = 2.
View Solution
**1. Determining the Sample Space Ω|\Omega|:** Since two balls are drawn sequentially without replacement from 5 distinct balls, the order of drawing matters. The number of ways to choose the first ball is 5, and the number of ways to choose the second ball from the remaining 4 is 4.
Ω=P(5,2)=5×4=20|\Omega| = P(5, 2) = 5 \times 4 = 20
Therefore, the statement "The size of the sample space, Ω|\Omega|, is 20." is **CORRECT**. **2. Determining the size of Event E1E_1 (both balls of the same color):** The balls are: R1, R2, B3, B4, G5. For both balls to be of the same color, they must either both be Red or both be Blue, as there is only one Green ball. * **Both Red:** The possible ordered pairs are (R1, R2) and (R2, R1). There are 2×1=22 \times 1 = 2 outcomes. * **Both Blue:** The possible ordered pairs are (B3, B4) and (B4, B3). There are 2×1=22 \times 1 = 2 outcomes. * **Both Green:** Not possible, as there is only one green ball. Thus, the total number of outcomes in E1E_1 is E1=2+2=4|E_1| = 2 + 2 = 4. Therefore, the statement "Let E1E_1 be the event that both balls drawn are of the same color. Then E1=4|E_1| = 4." is **CORRECT**. **3. Determining the size of Event E2E_2 (sum of numbers is odd):** The numbers on the balls are {1, 2, 3, 4, 5}. Odd numbers: {1, 3, 5} (3 balls) Even numbers: {2, 4} (2 balls) The sum of two numbers is odd if and only if one number is odd and the other is even. * **Case 1: First ball is Odd, second ball is Even.** There are 3 choices for the first (odd) ball and 2 choices for the second (even) ball. This gives 3×2=63 \times 2 = 6 ordered pairs. Examples: (1,2), (1,4), (3,2), (3,4), (5,2), (5,4). * **Case 2: First ball is Even, second ball is Odd.** There are 2 choices for the first (even) ball and 3 choices for the second (odd) ball. This gives 2×3=62 \times 3 = 6 ordered pairs. Examples: (2,1), (2,3), (2,5), (4,1), (4,3), (4,5). Thus, the total number of outcomes in E2E_2 is E2=6+6=12|E_2| = 6 + 6 = 12. Therefore, the statement "Let E2E_2 be the event that the sum of the numbers on the two drawn balls is odd. Then E2=10|E_2| = 10." is **INCORRECT**. **4. Determining the size of Event E3E_3 (first ball Red, second ball Green):** * **First ball is Red:** There are 2 red balls (R1, R2). So, 2 choices for the first ball. * **Second ball is Green:** There is 1 green ball (G5). So, 1 choice for the second ball. Since the draws are sequential and without replacement, the number of outcomes in E3E_3 is 2×1=22 \times 1 = 2. The specific outcomes are (R1, G5) and (R2, G5). Therefore, the statement "Let E3E_3 be the event that the first ball drawn is Red and the second ball drawn is Green. Then E3=2|E_3| = 2." is **CORRECT**.
4 Multiple Select
Consider the set of digits S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. A 3-digit number is formed by selecting three distinct digits from SS and arranging them. Let Ω\Omega be the sample space of all such possible 3-digit numbers. Which of the following statements are true?
A
The size of the sample space Ω\Omega is 60.
B
Let E1E_1 be the event that the number formed is even. The size of E1E_1 is 36.
C
Let E2E_2 be the event that the number formed is greater than 300. The size of E2E_2 is 36.
D
Let E3E_3 be the event that the digits of the number are in strictly increasing order. The size of E3E_3 is 10.
View Solution
We are given the set of digits S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. A 3-digit number is formed by selecting three distinct digits from SS and arranging them. **1. Determine the size of the sample space Ω\Omega:** The sample space Ω\Omega consists of all possible 3-digit numbers formed by selecting three distinct digits from SS and arranging them. This is a permutation problem. The number of ways to choose 3 distinct digits from 5 and arrange them is given by the permutation formula P(n,k)=n!(nk)!P(n, k) = \frac{n!}{(n-k)!}. Here, n=5n=5 and k=3k=3.
Ω=P(5,3)=5!(53)!=5!2!=5×4×3=60|\Omega| = P(5,3) = \frac{5!}{(5-3)!} = \frac{5!}{2!} = 5 \times 4 \times 3 = 60
Thus, the statement "The size of the sample space Ω\Omega is 60" is **true**. **2. Determine the size of event E1E_1 (number formed is even):** For a 3-digit number to be even, its last digit must be an even number from SS. The even digits in SS are {2,4}\{2, 4\}. We consider two cases: * **Case A: The last digit is 2.** The first digit can be any of the remaining 4 digits (S{2}S \setminus \{2\}). The second digit can be any of the remaining 3 digits. Number of such arrangements = 4×3=124 \times 3 = 12. * **Case B: The last digit is 4.** The first digit can be any of the remaining 4 digits (S{4}S \setminus \{4\}). The second digit can be any of the remaining 3 digits. Number of such arrangements = 4×3=124 \times 3 = 12. The total number of even numbers is the sum of numbers from Case A and Case B:
E1=12+12=24|E_1| = 12 + 12 = 24
Thus, the statement "Let E1E_1 be the event that the number formed is even. The size of E1E_1 is 36" is **false**. **3. Determine the size of event E2E_2 (number formed is greater than 300):** For a 3-digit number to be greater than 300, its first digit must be 3, 4, or 5. We consider three cases: * **Case A: The first digit is 3.** The remaining two digits must be chosen from S{3}={1,2,4,5}S \setminus \{3\} = \{1, 2, 4, 5\} and arranged. Number of such arrangements = P(4,2)=4×3=12P(4,2) = 4 \times 3 = 12. * **Case B: The first digit is 4.** The remaining two digits must be chosen from S{4}={1,2,3,5}S \setminus \{4\} = \{1, 2, 3, 5\} and arranged. Number of such arrangements = P(4,2)=4×3=12P(4,2) = 4 \times 3 = 12. * **Case C: The first digit is 5.** The remaining two digits must be chosen from S{5}={1,2,3,4}S \setminus \{5\} = \{1, 2, 3, 4\} and arranged. Number of such arrangements = P(4,2)=4×3=12P(4,2) = 4 \times 3 = 12. The total number of numbers greater than 300 is the sum of numbers from Case A, B, and C:
E2=12+12+12=36|E_2| = 12 + 12 + 12 = 36
Thus, the statement "Let E2E_2 be the event that the number formed is greater than 300. The size of E2E_2 is 36" is **true**. **4. Determine the size of event E3E_3 (digits are in strictly increasing order):** If the digits of the 3-digit number are in strictly increasing order, then once we choose a set of 3 distinct digits from SS, there is only one way to arrange them in increasing order (e.g., if we choose {1,2,3}\{1, 2, 3\}, the only number is 123). So, the size of E3E_3 is simply the number of ways to choose 3 distinct digits from the 5 available digits in SS. This is a combination problem.
E3=(53)=5!3!(53)!=5!3!2!=5×42×1=10|E_3| = \binom{5}{3} = \frac{5!}{3!(5-3)!} = \frac{5!}{3!2!} = \frac{5 \times 4}{2 \times 1} = 10
Thus, the statement "Let E3E_3 be the event that the digits of the number are in strictly increasing order. The size of E3E_3 is 10" is **true**. Therefore, the correct statements are options 1, 3, and 4.
5 Multiple Select
A box contains 3 red balls, 2 blue balls, and 1 green ball. Three balls are drawn simultaneously and without replacement. Let Ω\Omega be the sample space of this experiment, and let E1E_1, E2E_2, E3E_3 be events defined as follows: * E1E_1: All three balls drawn are of different colors. * E2E_2: Exactly two balls drawn are of the same color. * E3E_3: All three balls drawn are red. Which of the following statements are correct?
A
The size of the sample space Ω|\Omega| is 20.
B
The size of event E1E_1 is 6.
C
The size of event E2E_2 is 12.
D
The size of event E3E_3 is 2.
View Solution
**Step 1: Determine the total number of balls and the number of balls drawn.** The box contains: * Red balls: R=3R = 3 * Blue balls: B=2B = 2 * Green balls: G=1G = 1 Total number of balls N=R+B+G=3+2+1=6N = R + B + G = 3 + 2 + 1 = 6. Number of balls drawn simultaneously: k=3k = 3. **Step 2: Calculate the size of the sample space Ω|\Omega|.** Since the balls are drawn simultaneously and without replacement, the order does not matter. The size of the sample space is the number of ways to choose 3 balls from 6, which is given by the combination formula (Nk)\binom{N}{k}.
Ω=(63)=6!3!(63)!=6×5×43×2×1=20|\Omega| = \binom{6}{3} = \frac{6!}{3!(6-3)!} = \frac{6 \times 5 \times 4}{3 \times 2 \times 1} = 20
Thus, the statement "The size of the sample space Ω|\Omega| is 20." is **correct**. **Step 3: Calculate the size of event E1E_1 (All three balls drawn are of different colors).** For all three balls to be of different colors, we must draw 1 red ball, 1 blue ball, and 1 green ball. * Number of ways to choose 1 red ball from 3: (31)=3\binom{3}{1} = 3. * Number of ways to choose 1 blue ball from 2: (21)=2\binom{2}{1} = 2. * Number of ways to choose 1 green ball from 1: (11)=1\binom{1}{1} = 1.
E1=(31)×(21)×(11)=3×2×1=6|E_1| = \binom{3}{1} \times \binom{2}{1} \times \binom{1}{1} = 3 \times 2 \times 1 = 6
Thus, the statement "The size of event E1E_1 is 6." is **correct**. **Step 4: Calculate the size of event E2E_2 (Exactly two balls drawn are of the same color).** This event can occur in two mutually exclusive ways: * **Case A: Two Red balls and one ball of a different color (Blue or Green).** * Choose 2 red balls from 3: (32)=3\binom{3}{2} = 3. * Choose 1 non-red ball from the remaining 2 blue balls or 1 green ball (total 3 non-red balls): (21)+(11)=2+1=3\binom{2}{1} + \binom{1}{1} = 2 + 1 = 3, or simply (31)=3\binom{3}{1} = 3. * Number of ways for Case A: (32)×(31)=3×3=9\binom{3}{2} \times \binom{3}{1} = 3 \times 3 = 9. * **Case B: Two Blue balls and one ball of a different color (Red or Green).** * Choose 2 blue balls from 2: (22)=1\binom{2}{2} = 1. * Choose 1 non-blue ball from the remaining 3 red balls or 1 green ball (total 4 non-blue balls): (31)+(11)=3+1=4\binom{3}{1} + \binom{1}{1} = 3 + 1 = 4, or simply (41)=4\binom{4}{1} = 4. * Number of ways for Case B: (22)×(41)=1×4=4\binom{2}{2} \times \binom{4}{1} = 1 \times 4 = 4. * **Case C: Two Green balls.** This is not possible as there is only 1 green ball. Total size of event E2E_2: E2=9+4=13|E_2| = 9 + 4 = 13. Thus, the statement "The size of event E2E_2 is 12." is **incorrect**. **Step 5: Calculate the size of event E3E_3 (All three balls drawn are red).** * Number of ways to choose 3 red balls from 3: (33)=1\binom{3}{3} = 1.
E3=(33)=1|E_3| = \binom{3}{3} = 1
Thus, the statement "The size of event E3E_3 is 2." is **incorrect**. **Summary of Correct Statements:** * The size of the sample space Ω|\Omega| is 20. * The size of event E1E_1 is 6.
6 Multiple Select
A box contains 6 distinct balls, numbered 1,2,3,4,5,61, 2, 3, 4, 5, 6. Balls 1,2,31, 2, 3 are red, and balls 4,5,64, 5, 6 are blue. Two balls are drawn sequentially without replacement. Let Ω\Omega be the sample space of all possible ordered pairs of drawn balls. Consider the following events: * E1E_1: Both balls drawn are red. * E2E_2: The first ball drawn is blue and the second ball drawn is red. * E3E_3: The sum of the numbers on the two balls is even. Which of the following statements are true?
A
Ω=30\left|\Omega\right| = 30
B
E1=6\left|E_1\right| = 6
C
E1E2=E_1 \cap E_2 = \emptyset
D
E3=10\left|E_3\right| = 10
View Solution
Let R={1,2,3}R = \{1, 2, 3\} be the set of red balls and B={4,5,6}B = \{4, 5, 6\} be the set of blue balls. The total number of balls is N=6N=6. We draw two balls sequentially without replacement. **1. Size of the sample space Ω\Omega:** The sample space Ω\Omega consists of all ordered pairs of distinct balls drawn from the 6 balls. The number of ways to choose the first ball is 6, and the number of ways to choose the second ball from the remaining 5 is 5.
Ω=P(6,2)=6×5=30\left|\Omega\right| = P(6, 2) = 6 \times 5 = 30
Thus, the statement
Ω=30\left|\Omega\right| = 30
is **true**. **2. Size of event E1E_1: Both balls drawn are red.** For E1E_1, both balls must be chosen from the set of red balls R={1,2,3}R = \{1, 2, 3\}. There are 3 red balls. The number of ways to choose two distinct red balls sequentially is P(3,2)P(3, 2).
E1=P(3,2)=3×2=6\left|E_1\right| = P(3, 2) = 3 \times 2 = 6
Thus, the statement
E1=6\left|E_1\right| = 6
is **true**. **3. Intersection of E1E_1 and E2E_2:** Event E1E_1 means the first ball drawn is red AND the second ball drawn is red. (e.g., (R1,R2)(R_1, R_2)) Event E2E_2 means the first ball drawn is blue AND the second ball drawn is red. (e.g., (B4,R1)(B_4, R_1)) Since the color of the first ball is different for E1E_1 (red) and E2E_2 (blue), there can be no common outcomes between these two events. Therefore, E1E_1 and E2E_2 are disjoint.
E1E2=E_1 \cap E_2 = \emptyset
Thus, the statement
E1E2=E_1 \cap E_2 = \emptyset
is **true**. **4. Size of event E3E_3: The sum of the numbers on the two balls is even.** Let the numbers on the two drawn balls be x1x_1 and x2x_2. The sum x1+x2x_1 + x_2 is even if and only if both x1x_1 and x2x_2 are odd, or both x1x_1 and x2x_2 are even. Identify the odd and even numbers among the 6 balls: Odd numbers: O={1,3,5}O = \{1, 3, 5\} (3 balls) Even numbers: V={2,4,6}V = \{2, 4, 6\} (3 balls) Case 1: Both balls drawn are odd. We choose 2 distinct odd balls sequentially from OO. The number of ways is P(3,2)P(3, 2).
P(3,2)=3×2=6P(3, 2) = 3 \times 2 = 6
Case 2: Both balls drawn are even. We choose 2 distinct even balls sequentially from VV. The number of ways is P(3,2)P(3, 2).
P(3,2)=3×2=6P(3, 2) = 3 \times 2 = 6
The total number of outcomes for E3E_3 is the sum of outcomes from Case 1 and Case 2 (since these cases are mutually exclusive):
E3=6+6=12\left|E_3\right| = 6 + 6 = 12
Thus, the statement
E3=10\left|E_3\right| = 10
is **false**. Based on the analysis, the true statements are
Ω=30\left|\Omega\right| = 30
,
E1=6\left|E_1\right| = 6
, and
E1E2=E_1 \cap E_2 = \emptyset
.
7 Multiple Select
Consider a set of five distinct cards, S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. Three cards are drawn sequentially without replacement. Let Ω\Omega be the sample space of ordered sequences of three distinct cards drawn from SS. Let Ω\Omega' be the sample space of unordered sets of three distinct cards drawn from SS. Which of the following statements are true?
A
The size of Ω\Omega is 6060.
B
The size of Ω\Omega' is 1010.
C
Let AA be the event that the sum of the numbers on the three drawn cards is even, considering Ω\Omega'. Then A=6|A| = 6.
D
Let BB be the event that the cards are drawn in strictly increasing order, considering Ω\Omega. Then B=10|B| = 10.
View Solution
Let the set of cards be S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}. Three cards are drawn sequentially without replacement. **Analysis of Statement 1:** Ω\Omega is the sample space of ordered sequences of three distinct cards drawn from SS. The number of ways to choose 3 distinct items from 5 and arrange them in order is given by the number of permutations P(n,k)=n!(nk)!P(n, k) = \frac{n!}{(n-k)!}. Here, n=5n=5 and k=3k=3.
Ω=P(5,3)=5!(53)!=5!2!=5×4×3=60|\Omega| = P(5,3) = \frac{5!}{(5-3)!} = \frac{5!}{2!} = 5 \times 4 \times 3 = 60
Thus, the statement 'The size of Ω\Omega is 6060.' is **true**. **Analysis of Statement 2:** Ω\Omega' is the sample space of unordered sets of three distinct cards drawn from SS. The number of ways to choose 3 distinct items from 5 without regard to order is given by the number of combinations C(n,k)=n!k!(nk)!C(n, k) = \frac{n!}{k!(n-k)!}. Here, n=5n=5 and k=3k=3.
Ω=C(5,3)=5!3!(53)!=5!3!2!=5×4×3×2×1(3×2×1)(2×1)=12012=10|\Omega'| = C(5,3) = \frac{5!}{3!(5-3)!} = \frac{5!}{3!2!} = \frac{5 \times 4 \times 3 \times 2 \times 1}{(3 \times 2 \times 1)(2 \times 1)} = \frac{120}{12} = 10
Thus, the statement 'The size of Ω\Omega' is 1010.' is **true**. **Analysis of Statement 3:** Let AA be the event that the sum of the numbers on the three drawn cards is even, considering Ω\Omega'. We need to find the number of unordered sets of 3 cards whose sum is even. The set SS contains: Odd numbers: O={1,3,5}O = \{1, 3, 5\} (3 numbers) Even numbers: E={2,4}E = \{2, 4\} (2 numbers) For the sum of three numbers to be even, the parities of the chosen numbers must be either: 1. All three are even (E + E + E = E). This is not possible since there are only 2 even numbers in SS. 2. One is even and two are odd (E + O + O = E). This is possible. Number of ways to choose 1 even number from EE: C(2,1)=2C(2,1) = 2. Number of ways to choose 2 odd numbers from OO: C(3,2)=3C(3,2) = 3. So, the number of sets in event AA is A=C(2,1)×C(3,2)=2×3=6|A| = C(2,1) \times C(3,2) = 2 \times 3 = 6. The sets are: \{1, 3, 2\}, \{1, 3, 4\}, \{1, 5, 2\}, \{1, 5, 4\}, \{3, 5, 2\}, \{3, 5, 4\}. Thus, the statement 'Let AA be the event that the sum of the numbers on the three drawn cards is even, considering Ω\Omega'. Then A=6|A| = 6.' is **true**. **Analysis of Statement 4:** Let BB be the event that the cards are drawn in strictly increasing order, considering Ω\Omega. This means that if the sequence of drawn cards is (c1,c2,c3)(c_1, c_2, c_3), then c1<c2<c3c_1 < c_2 < c_3. For any unique set of 3 cards (e.g., \{1, 2, 3\}), there is exactly one way to arrange them in strictly increasing order (e.g., (1,2,3)(1, 2, 3)). Therefore, the number of such ordered sequences is equal to the number of ways to choose 3 distinct cards from 5, which is C(5,3)C(5,3).
B=C(5,3)=10|B| = C(5,3) = 10
Thus, the statement 'Let BB be the event that the cards are drawn in strictly increasing order, considering Ω\Omega. Then B=10|B| = 10.' is **true**. All four statements are true.
8 Multiple Select
Consider an experiment where a fair coin is tossed repeatedly until the first Head (H) appears. Let NN be the number of tosses required. After NN tosses, a real number XX is chosen uniformly at random from the interval [0,N][0, N]. Let Ω\Omega be the sample space of this entire experiment. Which of the following statements about the sample space Ω\Omega or its events are true?
A
The sample space Ω\Omega is discrete.
B
The set A={(n,x)Ω:n is even and x>1}A = \{ (n, x) \in \Omega : n \text{ is even and } x > 1 \} is an an event.
C
An individual outcome of the experiment is fully described by the value of NN.
D
The sample space Ω\Omega is an uncountably infinite set.
View Solution
First, let's formally define the sample space Ω\Omega for this experiment. An outcome consists of two parts: the number of tosses NN until the first Head, and the real number XX chosen from [0,N][0, N]. The possible values for NN are 1,2,3,1, 2, 3, \ldots, so NZ+N \in \mathbb{Z}^+. For each nZ+n \in \mathbb{Z}^+, the corresponding XX can be any real number in the interval [0,n][0, n]. Thus, the sample space is:
Ω={(n,x):nZ+,x[0,n]}\Omega = \{ (n, x) : n \in \mathbb{Z}^+, x \in [0, n] \}
Let's evaluate each option: **The sample space Ω\Omega is discrete.** This statement is false. A discrete sample space has a finite or countably infinite number of outcomes. In this experiment, for any fixed nn, the set of possible values for XX is the interval [0,n][0, n], which is an uncountably infinite set. Since Ω\Omega contains uncountably many outcomes (e.g., for n=1n=1, it contains all pairs (1,x)(1, x) where x[0,1]x \in [0, 1]), it is not discrete. Instead, it is a continuous sample space due to the continuous component XX. **The set A={(n,x)Ω:n is even and x>1}A = \{ (n, x) \in \Omega : n \text{ is even and } x > 1 \} is an an event.** This statement is true. An event is any well-defined subset of the sample space Ω\Omega. The set AA is clearly defined as a collection of outcomes (n,x)(n, x) that satisfy certain conditions (nn is even and x>1x > 1). For nn to be even, n{2,4,6,}n \in \{2, 4, 6, \ldots \}. For such nn, x[0,n]x \in [0, n]. The condition x>1x > 1 is perfectly valid for these values of nn (since n2n \ge 2, the interval [0,n][0, n] always includes values greater than 1). For example, (2,1.5)(2, 1.5) is an outcome in AA because n=2n=2 is even and 1.5>11.5 > 1 and 1.5[0,2]1.5 \in [0, 2]. Therefore, AA is a valid subset of Ω\Omega and thus an event. **An individual outcome of the experiment is fully described by the value of NN.** This statement is false. An individual outcome of this experiment is a pair (n,x)(n, x), where nn is the number of tosses until the first head, and xx is the real number chosen from [0,n][0, n]. Specifying only NN (e.g., N=3N=3) does not fully describe the outcome, as the value of XX (e.g., X=0.5X=0.5 or X=2.1X=2.1) is also part of the outcome. For example, (3,0.5)(3, 0.5) and (3,2.1)(3, 2.1) are two distinct outcomes, both having N=3N=3. **The sample space Ω\Omega is an uncountably infinite set.** This statement is true. As established in the analysis of the first option, Ω\Omega contains uncountably many outcomes. More formally, we can write Ω\Omega as a countable union of uncountably infinite sets:
Ω=n=1{(n,x):x[0,n]}=n=1({n}×[0,n])\Omega = \bigcup_{n=1}^{\infty} \{ (n, x) : x \in [0, n] \} = \bigcup_{n=1}^{\infty} (\{n\} \times [0, n])
Each set {n}×[0,n]\{n\} \times [0, n] for a fixed nn is uncountably infinite because the interval [0,n][0, n] is uncountably infinite. A countable union of uncountably infinite sets is itself uncountably infinite. Therefore, Ω\Omega is an uncountably infinite set. Based on the analysis, the second and fourth statements are true.

Practice Features

📚 Topic-wise

Organized by chapters

⏱️ Timed Mode

Build exam speed

📝 Solutions

Detailed explanations

🔖 Bookmarks

Save for revision

Frequently Asked Questions

How many practice questions are available?

We have 1000+ practice questions across 50 chapters for CMI M.Sc. and Ph.D. Computer Science, all with detailed solutions.

Is the first chapter free?

Yes! The first chapter is completely FREE. Practice all questions with solutions to evaluate before upgrading.

What types of questions are included?

Practice includes MCQ (0), MSQ (251), and NAT (0) questions - same as the actual CMI exam format.

How long does it take to complete all chapters?

At ~2 minutes per question, completing all 1000+ questions takes approximately 34 hours of focused practice.

More CMIM.Sc. and Ph.D. Computer Science Resources

Why Choose MastersUp?

🎯

AI-Powered Plans

Personalized study schedules based on your exam date and learning pace

📚

15,000+ Questions

Verified questions with detailed solutions from past papers

📊

Smart Analytics

Track your progress with subject-wise performance insights

🔖

Bookmark & Revise

Save important questions for quick revision before exams

Start Your Free Preparation →

No credit card required • Free forever for basic features