Updated: Mar 2026
Mock 1 - 100% FREE

CMI M.Sc. and Ph.D. Computer Science Mock Tests

Practice CMI M.Sc. and Ph.D. Computer Science mock tests with 10 full-length tests and 210+ questions. Real exam interface, All India ranking, and detailed analytics. First mock FREE!

10
Mock Tests
210+
Questions
FREE
First Mock
AIR
Ranking
Start Free Mock Test →

Available Mock Tests

FREE

Mock Test 1

55 Questions • 3 Hours • Full Analytics
Start Free →

Mock Test 2

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 3

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 4

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 9

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 5

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 7

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 8

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 6

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 10

55 Questions • 3 Hours • Full Analytics
Unlock

Free Mock Preview

1 Multiple Select
Let A={1,2,3,4}A = \{1, 2, 3, 4\} and B={a,b,c}B = \{a, b, c\}. A binary relation RR from AA to BB is defined as R={(x,y)A×Bx is even or y=a}R = \{(x, y) \in A \times B \mid x \text{ is even or } y = a\}.\nWhich of the following statements are true?
A
R=8|R| = 8
B
The range of RR is BB.
C
(3,b)R(3, b) \in R
D
The codomain of RR is the set of all first elements of the ordered pairs in RR.
View Solution
**Step 1: Determine the elements of the relation RR.**\nThe relation RR is defined as R={(x,y)A×Bx is even or y=a}R = \{(x, y) \in A \times B \mid x \text{ is even or } y = a\}.\n\nFirst, let's list the elements of the Cartesian product A×BA \times B:\nA×B={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c),(3,a),(3,b),(3,c),(4,a),(4,b),(4,c)}A \times B = \{(1,a), (1,b), (1,c), (2,a), (2,b), (2,c), (3,a), (3,b), (3,c), (4,a), (4,b), (4,c)\}.\n\nNow, we identify pairs (x,y)(x,y) from A×BA \times B that satisfy the condition (xx is even OR y=ay=a):\n* Pairs where xx is even (i.e., x{2,4}x \in \{2, 4\}):\n (2,a),(2,b),(2,c)(2,a), (2,b), (2,c)\n (4,a),(4,b),(4,c)(4,a), (4,b), (4,c)\n* Pairs where y=ay = a:\n (1,a),(2,a),(3,a),(4,a)(1,a), (2,a), (3,a), (4,a)\n\nCombining these sets and removing duplicates (e.g., (2,a)(2,a) and (4,a)(4,a) appear in both lists), we get the relation RR:\n
R={(1,a),(2,a),(2,b),(2,c),(3,a),(4,a),(4,b),(4,c)}R = \{(1,a), (2,a), (2,b), (2,c), (3,a), (4,a), (4,b), (4,c)\}
\n\n**Step 2: Evaluate each option.**\n\n* **Option 1: "R=8|R| = 8"**\n By counting the distinct elements in RR identified in Step 1, we find that RR contains 8 elements. Thus, R=8|R| = 8.\n Alternatively, using the Principle of Inclusion-Exclusion:\n Let S1={(x,y)A×Bx is even}S_1 = \{(x,y) \in A \times B \mid x \text{ is even}\}. There are 2 even numbers in AA (2 and 4) and 3 elements in BB, so S1=2×3=6|S_1| = 2 \times 3 = 6.\n Let S2={(x,y)A×By=a}S_2 = \{(x,y) \in A \times B \mid y = a\}. There are 4 elements in AA and 1 element aa in BB, so S2=4×1=4|S_2| = 4 \times 1 = 4.\n The intersection S1S2={(x,y)A×Bx is even and y=a}S_1 \cap S_2 = \{(x,y) \in A \times B \mid x \text{ is even and } y = a\}. These pairs are (2,a)(2,a) and (4,a)(4,a), so S1S2=2|S_1 \cap S_2| = 2.\n Therefore, R=S1S2=S1+S2S1S2=6+42=8|R| = |S_1 \cup S_2| = |S_1| + |S_2| - |S_1 \cap S_2| = 6 + 4 - 2 = 8.\n This statement is **true**.\n\n* **Option 2: "The range of RR is BB."**\n The range of RR, denoted Ran(R)\operatorname{Ran}(R), is the set of all second elements of the ordered pairs in RR. From the elements of RR determined in Step 1, the second elements are a,b,ca, b, c.\n Thus, Ran(R)={a,b,c}\operatorname{Ran}(R) = \{a, b, c\}.\n Given B={a,b,c}B = \{a, b, c\}, we see that Ran(R)=B\operatorname{Ran}(R) = B.\n This statement is **true**.\n\n* **Option 3: "(3,b)R(3, b) \in R"**\n For the pair (3,b)(3,b) to be in RR, it must satisfy the condition: 33 is even OR b=ab = a.\n Neither 33 is even (it's odd) nor b=ab = a (they are distinct elements). Since both parts of the 'OR' condition are false, the condition is false.\n Therefore, (3,b)R(3, b) \notin R.\n This statement is **false**.\n\n* **Option 4: "The codomain of RR is the set of all first elements of the ordered pairs in RR."**\n According to the definition, the codomain of a relation RR from AA to BB is the set BB. In this case, the codomain is B={a,b,c}B = \{a, b, c\}.\n The set of all first elements of the ordered pairs in RR is {1,2,3,4}\{1, 2, 3, 4\}, which is the set AA.\n Since BAB \neq A, the statement that the codomain of RR is the set of all first elements of the ordered pairs in RR is incorrect. It confuses the codomain with the domain (specifically, the set of first components that appear in the relation itself).\n This statement is **false**.\n\n**Conclusion:** The true statements are Option 1 and Option 2.
2 Multiple Select
A manufacturing process produces items, 55\\% of which are defective. Each item undergoes two independent quality checks, Check 1 and Check 2. - Check 1 detects a defective item with probability 0.90.9 and incorrectly flags a non-defective item with probability 0.050.05. - Check 2 detects a defective item with probability 0.80.8 and incorrectly flags a non-defective item with probability 0.020.02. The outcomes of Check 1 and Check 2 are conditionally independent given the true state of the item (defective or non-defective). An item is randomly selected from the production line. Which of the following statements are true?
A
The probability that an item is defective given it failed Check 1 is 1837\frac{18}{37}.
B
The probability that an item is defective given it failed Check 2 is 4059\frac{40}{59}.
C
The probability that an item is defective given it failed both Check 1 and Check 2 is less than 0.950.95.
D
The probability that an item is non-defective given it passed both Check 1 and Check 2 is greater than 0.990.99.
View Solution
Let DD be the event that an item is defective, and DcD^c be the event that an item is non-defective. Let C1FC_1^F be the event that Check 1 flags the item (i.e., it fails Check 1), and C1PC_1^P be the event that it passes Check 1. Let C2FC_2^F be the event that Check 2 flags the item (i.e., it fails Check 2), and C2PC_2^P be the event that it passes Check 2. We are given the following probabilities: P(D)=0.05    P(Dc)=10.05=0.95P(D) = 0.05 \implies P(D^c) = 1 - 0.05 = 0.95 For Check 1: P(C1FD)=0.9P(C_1^F|D) = 0.9 (defective item detected) P(C1FDc)=0.05P(C_1^F|D^c) = 0.05 (non-defective item incorrectly flagged) From these, we can infer: P(C1PD)=1P(C1FD)=10.9=0.1P(C_1^P|D) = 1 - P(C_1^F|D) = 1 - 0.9 = 0.1 P(C1PDc)=1P(C1FDc)=10.05=0.95P(C_1^P|D^c) = 1 - P(C_1^F|D^c) = 1 - 0.05 = 0.95 For Check 2: P(C2FD)=0.8P(C_2^F|D) = 0.8 (defective item detected) P(C2FDc)=0.02P(C_2^F|D^c) = 0.02 (non-defective item incorrectly flagged) From these, we can infer: P(C2PD)=1P(C2FD)=10.8=0.2P(C_2^P|D) = 1 - P(C_2^F|D) = 1 - 0.8 = 0.2 P(C2PDc)=1P(C2FDc)=10.02=0.98P(C_2^P|D^c) = 1 - P(C_2^F|D^c) = 1 - 0.02 = 0.98 The outcomes of Check 1 and Check 2 are conditionally independent given the true state of the item. **1. Evaluate Option 1: The probability that an item is defective given it failed Check 1.** We need to calculate P(DC1F)P(D|C_1^F). Using Bayes' Theorem:
P(DC1F)=P(C1FD)P(D)P(C1F)P(D|C_1^F) = \frac{P(C_1^F|D)P(D)}{P(C_1^F)}
First, calculate P(C1F)P(C_1^F):
P(C1F)=P(C1FD)P(D)+P(C1FDc)P(Dc)P(C_1^F) = P(C_1^F|D)P(D) + P(C_1^F|D^c)P(D^c)
P(C1F)=(0.9)(0.05)+(0.05)(0.95)=0.045+0.0475=0.0925P(C_1^F) = (0.9)(0.05) + (0.05)(0.95) = 0.045 + 0.0475 = 0.0925
Now, substitute into Bayes' Theorem:
P(DC1F)=0.0450.0925=450925=1837P(D|C_1^F) = \frac{0.045}{0.0925} = \frac{450}{925} = \frac{18}{37}
So, Option 1 is TRUE. **2. Evaluate Option 2: The probability that an item is defective given it failed Check 2.** We need to calculate P(DC2F)P(D|C_2^F). Using Bayes' Theorem:
P(DC2F)=P(C2FD)P(D)P(C2F)P(D|C_2^F) = \frac{P(C_2^F|D)P(D)}{P(C_2^F)}
First, calculate P(C2F)P(C_2^F):
P(C2F)=P(C2FD)P(D)+P(C2FDc)P(Dc)P(C_2^F) = P(C_2^F|D)P(D) + P(C_2^F|D^c)P(D^c)
P(C2F)=(0.8)(0.05)+(0.02)(0.95)=0.04+0.019=0.059P(C_2^F) = (0.8)(0.05) + (0.02)(0.95) = 0.04 + 0.019 = 0.059
Now, substitute into Bayes' Theorem:
P(DC2F)=0.040.059=4059P(D|C_2^F) = \frac{0.04}{0.059} = \frac{40}{59}
So, Option 2 is TRUE. **3. Evaluate Option 3: The probability that an item is defective given it failed both Check 1 and Check 2 is less than 0.950.95.** We need to calculate P(DC1FC2F)P(D|C_1^F \cap C_2^F). Using Bayes' Theorem:
P(DC1FC2F)=P(C1FC2FD)P(D)P(C1FC2F)P(D|C_1^F \cap C_2^F) = \frac{P(C_1^F \cap C_2^F|D)P(D)}{P(C_1^F \cap C_2^F)}
Due to conditional independence: P(C1FC2FD)=P(C1FD)P(C2FD)=(0.9)(0.8)=0.72P(C_1^F \cap C_2^F|D) = P(C_1^F|D)P(C_2^F|D) = (0.9)(0.8) = 0.72 P(C1FC2FDc)=P(C1FDc)P(C2FDc)=(0.05)(0.02)=0.001P(C_1^F \cap C_2^F|D^c) = P(C_1^F|D^c)P(C_2^F|D^c) = (0.05)(0.02) = 0.001 Now, calculate P(C1FC2F)P(C_1^F \cap C_2^F):
P(C1FC2F)=P(C1FC2FD)P(D)+P(C1FC2FDc)P(Dc)P(C_1^F \cap C_2^F) = P(C_1^F \cap C_2^F|D)P(D) + P(C_1^F \cap C_2^F|D^c)P(D^c)
P(C1FC2F)=(0.72)(0.05)+(0.001)(0.95)=0.036+0.00095=0.03695P(C_1^F \cap C_2^F) = (0.72)(0.05) + (0.001)(0.95) = 0.036 + 0.00095 = 0.03695
Substitute into Bayes' Theorem:
P(DC1FC2F)=0.0360.03695=36003695=720739P(D|C_1^F \cap C_2^F) = \frac{0.036}{0.03695} = \frac{3600}{3695} = \frac{720}{739}
To compare with 0.950.95, we calculate the decimal value:
7207390.974289\frac{720}{739} \approx 0.974289
Since 0.974289>0.950.974289 > 0.95, the statement that the probability is less than 0.950.95 is FALSE. **4. Evaluate Option 4: The probability that an item is non-defective given it passed both Check 1 and Check 2 is greater than 0.990.99.** We need to calculate P(DcC1PC2P)P(D^c|C_1^P \cap C_2^P). Using Bayes' Theorem:
P(DcC1PC2P)=P(C1PC2PDc)P(Dc)P(C1PC2P)P(D^c|C_1^P \cap C_2^P) = \frac{P(C_1^P \cap C_2^P|D^c)P(D^c)}{P(C_1^P \cap C_2^P)}
Due to conditional independence: P(C1PC2PDc)=P(C1PDc)P(C2PDc)=(0.95)(0.98)=0.931P(C_1^P \cap C_2^P|D^c) = P(C_1^P|D^c)P(C_2^P|D^c) = (0.95)(0.98) = 0.931 P(C1PC2PD)=P(C1PD)P(C2PD)=(0.1)(0.2)=0.02P(C_1^P \cap C_2^P|D) = P(C_1^P|D)P(C_2^P|D) = (0.1)(0.2) = 0.02 Now, calculate P(C1PC2P)P(C_1^P \cap C_2^P):
P(C1PC2P)=P(C1PC2PD)P(D)+P(C1PC2PDc)P(Dc)P(C_1^P \cap C_2^P) = P(C_1^P \cap C_2^P|D)P(D) + P(C_1^P \cap C_2^P|D^c)P(D^c)
P(C1PC2P)=(0.02)(0.05)+(0.931)(0.95)=0.001+0.88445=0.88545P(C_1^P \cap C_2^P) = (0.02)(0.05) + (0.931)(0.95) = 0.001 + 0.88445 = 0.88545
Substitute into Bayes' Theorem:
P(DcC1PC2P)=0.931×0.950.88545=0.884450.88545=1768917709P(D^c|C_1^P \cap C_2^P) = \frac{0.931 \times 0.95}{0.88545} = \frac{0.88445}{0.88545} = \frac{17689}{17709}
To compare with 0.990.99, we calculate the decimal value:
17689177090.9988706\frac{17689}{17709} \approx 0.9988706
Since 0.9988706>0.990.9988706 > 0.99, Option 4 is TRUE.
3 Single Choice
Consider a Binary Search Tree (BST) where elements are inserted one by one into an initially empty tree. An insertion operation involves searching for the correct position for the new element and then adding it as a new leaf node. The time complexity of an insertion is measured by the number of key comparisons performed during the search phase. 1. Describe the input sequence of nn distinct elements that achieves the **best-case** time complexity for inserting all nn elements into an initially empty BST. State this best-case total time complexity using Big-O notation, and provide a brief justification. 2. Describe the input sequence of nn distinct elements that achieves the **worst-case** time complexity for inserting all nn elements into an initially empty BST. State this worst-case total time complexity using Big-O notation, and provide a brief justification. 3. Explain, without detailed mathematical derivation, what kind of input sequence generally leads to the **average-case** performance for BST insertion. State its typical total time complexity using Big-O notation, and provide a brief intuition.
View Solution
**1. Best-Case Analysis for BST Insertion:** * **Input Sequence:** The best-case performance for inserting nn distinct elements into an initially empty BST occurs when the elements are inserted in an order that keeps the tree as balanced as possible. This means inserting the median element of the sorted set first, then recursively inserting the medians of the left and right sub-problems. For example, if inserting elements from 11 to nn, the sequence would begin with n/2\lfloor n/2 \rfloor, then n/4\lfloor n/4 \rfloor, 3n/4\lfloor 3n/4 \rfloor, and so on. This strategy ensures the tree maintains a height of O(logn)O(\log n). * **Total Time Complexity:** O(nlogn)O(n \log n) * **Justification:** In a perfectly balanced BST, the height of the tree is O(logn)O(\log n). Each insertion operation involves traversing a path from the root to a leaf node (or an empty slot where the new node will be placed). The length of this path (and thus the number of comparisons) is proportional to the current height of the tree. Since the tree remains balanced throughout the insertions, each of the nn insertions takes approximately O(logi)O(\log i) time, where ii is the number of nodes already in the tree. Summing these operations, the total number of comparisons for nn insertions is i=1nO(logi)=O(nlogn)\sum_{i=1}^{n} O(\log i) = O(n \log n). **2. Worst-Case Analysis for BST Insertion:** * **Input Sequence:** The worst-case performance occurs when the elements are inserted in a strictly increasing or strictly decreasing order. For example, inserting elements 1,2,3,,n1, 2, 3, \dots, n in that sequence, or n,n1,,1n, n-1, \dots, 1. This causes the BST to degenerate into a skewed tree, essentially a linked list, where each node has only one child. * **Total Time Complexity:** O(n2)O(n^2) * **Justification:** When elements are inserted in a strictly sorted order, each new element is always placed as the child of the deepest node (e.g., always the right child for increasing order). The ii-th element inserted will traverse a path of length i1i-1 (making ii comparisons) to find its position. For instance, the first element takes 1 comparison, the second takes 2, the third takes 3, and so on, up to nn comparisons for the nn-th element. The total number of comparisons is the sum of an arithmetic series: 1+2++n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}, which is O(n2)O(n^2). **3. Average-Case Analysis for BST Insertion:** * **Input Sequence:** The average-case performance is typically observed when the nn distinct elements are inserted in a **random permutation**. This means that any of the n!n! possible orderings of the nn elements is equally likely to be the input sequence. * **Total Time Complexity:** O(nlogn)O(n \log n) * **Intuition:** While individual insertions can still take O(n)O(n) time in a randomly built BST (e.g., if a few elements happen to form a short skewed path), the probability of the tree consistently degenerating into a worst-case (skewed) structure is very low for a truly random input sequence. On average, the randomness in the input order helps to distribute elements across the tree, preventing extreme skewness. This results in the tree's height growing proportionally to logn\log n. The expected number of comparisons for a single insertion into a randomly built BST of ii nodes is O(logi)O(\log i). Therefore, summing over nn insertions, the total expected number of comparisons is O(nlogn)O(n \log n). The average shape of a randomly built BST closely resembles that of a balanced tree.
4 Multiple Select
Consider the following functions. Which of them are continuous at x=0x=0?
A
f(x)={x2cos(1x)x00x=0f(x) = \begin{cases} x^2 \cos\left(\frac{1}{x}\right) & x \neq 0 \\ 0 & x = 0 \end{cases}
B
g(x)={sinxxx01x=0g(x) = \begin{cases} \frac{\sin x}{|x|} & x \neq 0 \\ 1 & x = 0 \end{cases}
C
h(x)={e1/xx00x=0h(x) = \begin{cases} e^{1/x} & x \neq 0 \\ 0 & x = 0 \end{cases}
D
k(x)=xsin(πx)k(x) = \lfloor x \rfloor \sin(\pi x)
View Solution
To determine if a function is continuous at x=0x=0, we must check three conditions: 1. f(0)f(0) is defined. 2. limx0f(x)\lim_{x \to 0} f(x) exists. 3. limx0f(x)=f(0)\lim_{x \to 0} f(x) = f(0). Let's analyze each function: **For f(x)={x2cos(1x)x00x=0f(x) = \begin{cases} x^2 \cos\left(\frac{1}{x}\right) & x \neq 0 \\ 0 & x = 0 \end{cases}** 1. f(0)=0f(0) = 0 (defined). 2. We need to evaluate limx0x2cos(1x)\lim_{x \to 0} x^2 \cos\left(\frac{1}{x}\right). We know that for x0x \neq 0, 1cos(1x)1-1 \le \cos\left(\frac{1}{x}\right) \le 1. Multiplying by x2x^2 (which is non-negative), we get -x^2 \le x^2 \cos\left(\frac{1}{x} ight) \le x^2. Since limx0(x2)=0\lim_{x \to 0} (-x^2) = 0 and limx0x2=0\lim_{x \to 0} x^2 = 0, by the Squeeze Theorem,
\lim_{x \to 0} x^2 \cos\left(\frac{1}{x} ight) = 0
3. Since limx0f(x)=0\lim_{x \to 0} f(x) = 0 and f(0)=0f(0) = 0, the third condition is satisfied. Therefore, f(x)f(x) is continuous at x=0x=0. **For g(x)={sinxxx01x=0g(x) = \begin{cases} \frac{\sin x}{|x|} & x \neq 0 \\ 1 & x = 0 \end{cases}** 1. g(0)=1g(0) = 1 (defined). 2. We need to evaluate limx0g(x)\lim_{x \to 0} g(x). We consider left-hand and right-hand limits. For x>0x > 0, x=x|x| = x, so g(x)=sinxxg(x) = \frac{\sin x}{x}.
limx0+g(x)=limx0+sinxx=1\lim_{x \to 0^+} g(x) = \lim_{x \to 0^+} \frac{\sin x}{x} = 1
For x<0x < 0, x=x|x| = -x, so g(x)=sinxxg(x) = \frac{\sin x}{-x}.
limx0g(x)=limx0sinxx=limx0sinxx=1\lim_{x \to 0^-} g(x) = \lim_{x \to 0^-} \frac{\sin x}{-x} = - \lim_{x \to 0^-} \frac{\sin x}{x} = -1
Since the left-hand limit (1-1) is not equal to the right-hand limit (11), limx0g(x)\lim_{x \to 0} g(x) does not exist. Therefore, g(x)g(x) is discontinuous at x=0x=0. **For h(x)={e1/xx00x=0h(x) = \begin{cases} e^{1/x} & x \neq 0 \\ 0 & x = 0 \end{cases}** 1. h(0)=0h(0) = 0 (defined). 2. We need to evaluate limx0h(x)\lim_{x \to 0} h(x). We consider left-hand and right-hand limits.
limx0+e1/x\lim_{x \to 0^+} e^{1/x}
As x0+x \to 0^+, 1/x1/x \to \infty, so e1/xe^{1/x} \to \infty.
limx0e1/x\lim_{x \to 0^-} e^{1/x}
As x0x \to 0^-, 1/x1/x \to -\infty, so e1/x0e^{1/x} \to 0. Since the left-hand limit (00) is not equal to the right-hand limit (\infty), limx0h(x)\lim_{x \to 0} h(x) does not exist. Therefore, h(x)h(x) is discontinuous at x=0x=0. **For k(x)=xsin(πx)k(x) = \lfloor x \rfloor \sin(\pi x)** 1. k(0)=0sin(π0)=0sin(0)=00=0k(0) = \lfloor 0 \rfloor \sin(\pi \cdot 0) = 0 \cdot \sin(0) = 0 \cdot 0 = 0 (defined). 2. We need to evaluate limx0k(x)\lim_{x \to 0} k(x). We consider left-hand and right-hand limits. For x(1,0)x \in (-1, 0), x=1\lfloor x \rfloor = -1.
limx0k(x)=limx0(1)sin(πx)=(1)sin(π0)=(1)0=0\lim_{x \to 0^-} k(x) = \lim_{x \to 0^-} (-1) \sin(\pi x) = (-1) \sin(\pi \cdot 0) = (-1) \cdot 0 = 0
For x(0,1)x \in (0, 1), x=0\lfloor x \rfloor = 0.
limx0+k(x)=limx0+(0)sin(πx)=0sin(π0)=00=0\lim_{x \to 0^+} k(x) = \lim_{x \to 0^+} (0) \sin(\pi x) = 0 \cdot \sin(\pi \cdot 0) = 0 \cdot 0 = 0
Since the left-hand limit (00) is equal to the right-hand limit (00), limx0k(x)\lim_{x \to 0} k(x) exists and is equal to 00. 3. Since limx0k(x)=0\lim_{x \to 0} k(x) = 0 and k(0)=0k(0) = 0, the third condition is satisfied. Therefore, k(x)k(x) is continuous at x=0x=0. **Conclusion:** Functions f(x)f(x) and k(x)k(x) are continuous at x=0x=0.
5 Multiple Select
A company manufactures widgets. Defects can be electrical (EE) or mechanical (MM), and these occur independently. The probability of an electrical defect is P(E)=0.02P(E) = 0.02, and the probability of a mechanical defect is P(M)=0.03P(M) = 0.03. A diagnostic test is performed on a randomly selected widget, yielding one of three results: 'Electrical Issue' (TET_E), 'Mechanical Issue' (TMT_M), or 'No Issue' (TNT_N). The test's conditional probabilities based on the actual defect status of the widget are given below: * If only an electrical defect is present (EMcE \cap M^c): * P(TEEMc)=0.90P(T_E | E \cap M^c) = 0.90 * P(TMEMc)=0.05P(T_M | E \cap M^c) = 0.05 * P(TNEMc)=0.05P(T_N | E \cap M^c) = 0.05 * If only a mechanical defect is present (EcME^c \cap M): * P(TEEcM)=0.10P(T_E | E^c \cap M) = 0.10 * P(TMEcM)=0.85P(T_M | E^c \cap M) = 0.85 * P(TNEcM)=0.05P(T_N | E^c \cap M) = 0.05 * If both electrical and mechanical defects are present (EME \cap M): * P(TEEM)=0.60P(T_E | E \cap M) = 0.60 * P(TMEM)=0.30P(T_M | E \cap M) = 0.30 * P(TNEM)=0.10P(T_N | E \cap M) = 0.10 * If no defects are present (EcMcE^c \cap M^c): * P(TEEcMc)=0.03P(T_E | E^c \cap M^c) = 0.03 * P(TMEcMc)=0.01P(T_M | E^c \cap M^c) = 0.01 * P(TNEcMc)=0.96P(T_N | E^c \cap M^c) = 0.96 Which of the following statements are true? (All probabilities are rounded to three decimal places where applicable.)
A
The probability that the widget has an electrical defect, given the test indicated 'Electrical Issue', is approximately 0.3620.362.
B
The probability that the widget has a mechanical defect, given the test indicated 'Mechanical Issue', is approximately 0.7060.706.
C
The probability that the widget has no defects, given the test indicated 'No Issue', is approximately 0.9900.990.
D
The probability that the widget has both defects, given the test indicated 'Electrical Issue', is approximately 0.0070.007.
View Solution
Let EE be the event of an electrical defect and MM be the event of a mechanical defect. Let TET_E, TMT_M, and TNT_N be the events of the test indicating 'Electrical Issue', 'Mechanical Issue', and 'No Issue', respectively. Given probabilities: P(E)=0.02P(E) = 0.02 P(M)=0.03P(M) = 0.03 EE and MM are independent. First, calculate the probabilities of the four mutually exclusive and exhaustive defect states: 1. Probability of both defects (EME \cap M): P(EM)=P(E)P(M)=0.02×0.03=0.0006P(E \cap M) = P(E)P(M) = 0.02 \times 0.03 = 0.0006 2. Probability of only an electrical defect (EMcE \cap M^c): P(EMc)=P(E)P(Mc)=P(E)(1P(M))=0.02×(10.03)=0.02×0.97=0.0194P(E \cap M^c) = P(E)P(M^c) = P(E)(1 - P(M)) = 0.02 \times (1 - 0.03) = 0.02 \times 0.97 = 0.0194 3. Probability of only a mechanical defect (EcME^c \cap M): P(EcM)=P(Ec)P(M)=(1P(E))P(M)=(10.02)×0.03=0.98×0.03=0.0294P(E^c \cap M) = P(E^c)P(M) = (1 - P(E))P(M) = (1 - 0.02) \times 0.03 = 0.98 \times 0.03 = 0.0294 4. Probability of no defects (EcMcE^c \cap M^c): P(EcMc)=P(Ec)P(Mc)=(1P(E))(1P(M))=0.98×0.97=0.9506P(E^c \cap M^c) = P(E^c)P(M^c) = (1 - P(E))(1 - P(M)) = 0.98 \times 0.97 = 0.9506 Check sum: 0.0006+0.0194+0.0294+0.9506=1.00000.0006 + 0.0194 + 0.0294 + 0.9506 = 1.0000. Next, calculate the marginal probabilities of the test results using the Law of Total Probability: P(TX)=P(TXEMc)P(EMc)+P(TXEcM)P(EcM)+P(TXEM)P(EM)+P(TXEcMc)P(EcMc)P(T_X) = P(T_X | E \cap M^c)P(E \cap M^c) + P(T_X | E^c \cap M)P(E^c \cap M) + P(T_X | E \cap M)P(E \cap M) + P(T_X | E^c \cap M^c)P(E^c \cap M^c) * **P(TE)P(T_E):** P(TE)=(0.90)(0.0194)+(0.10)(0.0294)+(0.60)(0.0006)+(0.03)(0.9506)P(T_E) = (0.90)(0.0194) + (0.10)(0.0294) + (0.60)(0.0006) + (0.03)(0.9506) P(TE)=0.01746+0.00294+0.00036+0.028518=0.049278P(T_E) = 0.01746 + 0.00294 + 0.00036 + 0.028518 = 0.049278 * **P(TM)P(T_M):** P(TM)=(0.05)(0.0194)+(0.85)(0.0294)+(0.30)(0.0006)+(0.01)(0.9506)P(T_M) = (0.05)(0.0194) + (0.85)(0.0294) + (0.30)(0.0006) + (0.01)(0.9506) P(TM)=0.00097+0.02499+0.00018+0.009506=0.035646P(T_M) = 0.00097 + 0.02499 + 0.00018 + 0.009506 = 0.035646 * **P(TN)P(T_N):** P(TN)=(0.05)(0.0194)+(0.05)(0.0294)+(0.10)(0.0006)+(0.96)(0.9506)P(T_N) = (0.05)(0.0194) + (0.05)(0.0294) + (0.10)(0.0006) + (0.96)(0.9506) P(TN)=0.00097+0.00147+0.00006+0.912576=0.915076P(T_N) = 0.00097 + 0.00147 + 0.00006 + 0.912576 = 0.915076 Check sum: P(TE)+P(TM)+P(TN)=0.049278+0.035646+0.915076=1.000000P(T_E) + P(T_M) + P(T_N) = 0.049278 + 0.035646 + 0.915076 = 1.000000. Now, evaluate each statement: **Option 0: The probability that the widget has an electrical defect, given the test indicated 'Electrical Issue', is approximately 0.3620.362.** We need to find P(ETE)P(E | T_E). This is P((EMc)(EM)TE)P((E \cap M^c) \cup (E \cap M) | T_E). Using Bayes' Theorem: P(ETE)=P(ETE)P(TE)P(E | T_E) = \frac{P(E \cap T_E)}{P(T_E)}. P(ETE)=P(TEEMc)P(EMc)+P(TEEM)P(EM)P(E \cap T_E) = P(T_E | E \cap M^c)P(E \cap M^c) + P(T_E | E \cap M)P(E \cap M) P(ETE)=(0.90)(0.0194)+(0.60)(0.0006)=0.01746+0.00036=0.01782P(E \cap T_E) = (0.90)(0.0194) + (0.60)(0.0006) = 0.01746 + 0.00036 = 0.01782 P(ETE)=0.017820.0492780.3616230.362P(E | T_E) = \frac{0.01782}{0.049278} \approx 0.361623 \approx 0.362. This statement is **True**. **Option 1: The probability that the widget has a mechanical defect, given the test indicated 'Mechanical Issue', is approximately 0.7060.706.** We need to find P(MTM)P(M | T_M). This is P((EcM)(EM)TM)P((E^c \cap M) \cup (E \cap M) | T_M). Using Bayes' Theorem: P(MTM)=P(MTM)P(TM)P(M | T_M) = \frac{P(M \cap T_M)}{P(T_M)}. P(MTM)=P(TMEcM)P(EcM)+P(TMEM)P(EM)P(M \cap T_M) = P(T_M | E^c \cap M)P(E^c \cap M) + P(T_M | E \cap M)P(E \cap M) P(MTM)=(0.85)(0.0294)+(0.30)(0.0006)=0.02499+0.00018=0.02517P(M \cap T_M) = (0.85)(0.0294) + (0.30)(0.0006) = 0.02499 + 0.00018 = 0.02517 P(MTM)=0.025170.0356460.7061940.706P(M | T_M) = \frac{0.02517}{0.035646} \approx 0.706194 \approx 0.706. This statement is **True**. **Option 2: The probability that the widget has no defects, given the test indicated 'No Issue', is approximately 0.9900.990.** We need to find P(EcMcTN)P(E^c \cap M^c | T_N). Using Bayes' Theorem: P(EcMcTN)=P(TNEcMc)P(EcMc)P(TN)P(E^c \cap M^c | T_N) = \frac{P(T_N | E^c \cap M^c)P(E^c \cap M^c)}{P(T_N)}. P(EcMcTN)=(0.96)(0.9506)0.915076=0.9125760.9150760.9972790.997P(E^c \cap M^c | T_N) = \frac{(0.96)(0.9506)}{0.915076} = \frac{0.912576}{0.915076} \approx 0.997279 \approx 0.997. The statement says 0.9900.990. This statement is **False**. **Option 3: The probability that the widget has both defects, given the test indicated 'Electrical Issue', is approximately 0.0070.007.** We need to find P(EMTE)P(E \cap M | T_E). Using Bayes' Theorem: P(EMTE)=P(TEEM)P(EM)P(TE)P(E \cap M | T_E) = \frac{P(T_E | E \cap M)P(E \cap M)}{P(T_E)}. P(EMTE)=(0.60)(0.0006)0.049278=0.000360.0492780.0073050.007P(E \cap M | T_E) = \frac{(0.60)(0.0006)}{0.049278} = \frac{0.00036}{0.049278} \approx 0.007305 \approx 0.007. This statement is **True**. Therefore, statements 0, 1, and 3 are true.

Frequently Asked Questions

How many CMI M.Sc. and Ph.D. Computer Science mock tests are available?

We offer 10 full-length mock tests with 210+ questions, designed to simulate the actual CMI exam experience.

Is the first mock test free?

Yes! Mock Test 1 is completely FREE. You can attempt it with full features including detailed solutions and performance analytics.

Do mock tests have the same pattern as CMI?

Yes, our mock tests follow the exact CMI exam pattern with MCQ, MSQ, and NAT questions, same marking scheme, and 3-hour duration.

Will I get All India Ranking?

Yes! After completing any mock test, you'll see your All India Rank compared to other students who attempted the same test.

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