Updated: Mar 2026
Mock 1 - 100% FREE

CMI Data Science Mock Tests

Practice CMI Data Science mock tests with 10 full-length tests and 400+ questions. Real exam interface, All India ranking, and detailed analytics. First mock FREE!

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

Available Mock Tests

FREE

Mock Test 7

55 Questions • 3 Hours • Full Analytics
Start Free →

Mock Test 8

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 5

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 9

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 4

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 1

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

Mock Test 2

55 Questions • 3 Hours • Full Analytics
Unlock

Mock Test 3

55 Questions • 3 Hours • Full Analytics
Unlock

Free Mock Preview

1 Single Choice
Consider the following pseudocode for a function that processes a non-negative integer: ``` function calculateSpecialSum(n) { if n < 0 { return -1; } current_sum = 0; place_value_multiplier = 1; while n > 0 { digit = n % 10; if digit % 2 == 0 { // If digit is even current_sum = current_sum + (digit * place_value_multiplier); } else { // If digit is odd current_sum = current_sum - (digit * place_value_multiplier); } place_value_multiplier = place_value_multiplier * 10; n = n // 10; } return current_sum; } ``` Here, * `a % b` represents the remainder when `a` is divided by `b`. For example, 23%10=323 \% 10 = 3. * `a // b` represents integer division. For example, 23//10=223 // 10 = 2. What will `calculateSpecialSum(1524)` return?
View Solution
**Step 1: Initialize variables.** When `calculateSpecialSum(1524)` is called, the function first checks if n<0n < 0. Since 152401524 \not< 0, it proceeds to initialize the variables:
n=1524n = 1524
current_sum=0\text{current\_sum} = 0
place_value_multiplier=1\text{place\_value\_multiplier} = 1
**Step 2: Execute the while loop for each digit.** The `while` loop continues as long as n>0n > 0. The digits are processed from right to left (least significant to most significant). * **Iteration 1:** * Current n=1524n = 1524 * digit=1524%10=4digit = 1524 \% 10 = 4 * Since 4%2==04 \% 2 \text{==} 0 (even),
current_sum=current_sum+(digit×place_value_multiplier)=0+(4×1)=4\begin{aligned} \text{current\_sum} & = \text{current\_sum} + (\text{digit} \times \text{place\_value\_multiplier}) \\ & = 0 + (4 \times 1) \\ & = 4\end{aligned}
*
place_value_multiplier=place_value_multiplier×10=1×10=10\begin{aligned} \text{place\_value\_multiplier} & = \text{place\_value\_multiplier} \times 10 \\ & = 1 \times 10 \\ & = 10\end{aligned}
*
n=n// 10=1524// 10=152\begin{aligned} n & = n \text{// } 10 \\ & = 1524 \text{// } 10 \\ & = 152\end{aligned}
* **Iteration 2:** * Current n=152n = 152 * digit=152%10=2digit = 152 \% 10 = 2 * Since 2%2==02 \% 2 \text{==} 0 (even),
current_sum=current_sum+(digit×place_value_multiplier)=4+(2×10)=4+20=24\begin{aligned} \text{current\_sum} & = \text{current\_sum} + (\text{digit} \times \text{place\_value\_multiplier}) \\ & = 4 + (2 \times 10) \\ & = 4 + 20 \\ & = 24\end{aligned}
*
place_value_multiplier=place_value_multiplier×10=10×10=100\begin{aligned} \text{place\_value\_multiplier} & = \text{place\_value\_multiplier} \times 10 \\ & = 10 \times 10 \\ & = 100\end{aligned}
*
n=n// 10=152// 10=15\begin{aligned} n & = n \text{// } 10 \\ & = 152 \text{// } 10 \\ & = 15\end{aligned}
* **Iteration 3:** * Current n=15n = 15 * digit=15%10=5digit = 15 \% 10 = 5 * Since 5%205 \% 2 \ne 0 (odd),
current_sum=current_sum(digit×place_value_multiplier)=24(5×100)=24500=476\begin{aligned} \text{current\_sum} & = \text{current\_sum} - (\text{digit} \times \text{place\_value\_multiplier}) \\ & = 24 - (5 \times 100) \\ & = 24 - 500 \\ & = -476\end{aligned}
*
place_value_multiplier=place_value_multiplier×10=100×10=1000\begin{aligned} \text{place\_value\_multiplier} & = \text{place\_value\_multiplier} \times 10 \\ & = 100 \times 10 \\ & = 1000\end{aligned}
*
n=n// 10=15// 10=1\begin{aligned} n & = n \text{// } 10 \\ & = 15 \text{// } 10 \\ & = 1\end{aligned}
* **Iteration 4:** * Current n=1n = 1 * digit=1%10=1digit = 1 \% 10 = 1 * Since 1%201 \% 2 \ne 0 (odd),
current_sum=current_sum(digit×place_value_multiplier)=476(1×1000)=4761000=1476\begin{aligned} \text{current\_sum} & = \text{current\_sum} - (\text{digit} \times \text{place\_value\_multiplier}) \\ & = -476 - (1 \times 1000) \\ & = -476 - 1000 \\ & = -1476\end{aligned}
*
place_value_multiplier=place_value_multiplier×10=1000×10=10000\begin{aligned} \text{place\_value\_multiplier} & = \text{place\_value\_multiplier} \times 10 \\ & = 1000 \times 10 \\ & = 10000\end{aligned}
*
n=n// 10=1// 10=0\begin{aligned} n & = n \text{// } 10 \\ & = 1 \text{// } 10 \\ & = 0\end{aligned}
**Step 3: Return the final sum.** The loop terminates because nn is now 00. The function returns the final value of current_sum\text{current\_sum}. **Answer:** 1476\boxed{-1476}
2 Multiple Select
Let AA and BB be arbitrary n×nn \times n matrices with real entries. A square matrix MM is called symmetric if MT=MM^T = M and skew-symmetric if MT=MM^T = -M, where MTM^T is the transpose of MM. Which of the following statements are always true?
A
For any square matrix AA, the matrix A+ATA + A^T is symmetric.
B
If AA is a skew-symmetric matrix, then A2A^2 is a symmetric matrix.
C
If AA and BB are symmetric matrices, then their product ABAB is also a symmetric matrix.
D
For any two matrices AA and BB, the identity (AB)(A+B)=A2B2(A-B)(A+B) = A^2 - B^2 holds.
View Solution
We analyze each statement based on the properties of matrix transpose and multiplication. **Step 1: For any square matrix AA, the matrix A+ATA + A^T is symmetric.** To check if a matrix MM is symmetric, we must verify if MT=MM^T = M. Let M=A+ATM = A + A^T. We compute its transpose:
MT=(A+AT)TM^T = (A + A^T)^T
Using the property that the transpose of a sum is the sum of the transposes, (X+Y)T=XT+YT(X+Y)^T = X^T + Y^T, we get:
MT=AT+(AT)TM^T = A^T + (A^T)^T
Using the property (XT)T=X(X^T)^T = X, we have:
MT=AT+A=A+AT=MM^T = A^T + A = A + A^T = M
Since MT=MM^T = M, the matrix A+ATA + A^T is always symmetric. Thus, this statement is **true**. **Step 2: If AA is a skew-symmetric matrix, then A2A^2 is a symmetric matrix.** Given that AA is skew-symmetric, we have AT=AA^T = -A. We need to check if (A2)T=A2(A^2)^T = A^2. Let's compute the transpose of A2A^2:
(A2)T=(AA)T(A^2)^T = (A \cdot A)^T
Using the property of the transpose of a product, (XY)T=YTXT(XY)^T = Y^T X^T, we get:
(A2)T=ATAT(A^2)^T = A^T A^T
Now, substitute the skew-symmetric property AT=AA^T = -A:
(A2)T=(A)(A)=A2(A^2)^T = (-A)(-A) = A^2
Since (A2)T=A2(A^2)^T = A^2, the matrix A2A^2 is symmetric. Thus, this statement is **true**. **Step 3: If AA and BB are symmetric matrices, then their product ABAB is also a symmetric matrix.** Given that AA and BB are symmetric, we have AT=AA^T = A and BT=BB^T = B. We check if the product ABAB is symmetric by computing its transpose:
(AB)T=BTAT(AB)^T = B^T A^T
Using the symmetric property of AA and BB, we substitute BT=BB^T=B and AT=AA^T=A:
(AB)T=BA(AB)^T = BA
For ABAB to be symmetric, we would need (AB)T=AB(AB)^T = AB, which implies BA=ABBA = AB. However, matrix multiplication is not commutative in general. We can provide a counterexample. Let A=(1221)A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} and B=(3445)B = \begin{pmatrix} 3 & 4 \\ 4 & 5 \end{pmatrix}. Both are symmetric.
AB=(1221)(3445)=(11141013)AB = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} \begin{pmatrix} 3 & 4 \\ 4 & 5 \end{pmatrix} = \begin{pmatrix} 11 & 14 \\ 10 & 13 \end{pmatrix}
(AB)T=(11101413)(AB)^T = \begin{pmatrix} 11 & 10 \\ 14 & 13 \end{pmatrix}
Since AB(AB)TAB \neq (AB)^T, the product ABAB is not symmetric. Thus, this statement is **false**. **Step 4: For any two matrices AA and BB, the identity (AB)(A+B)=A2B2(A-B)(A+B) = A^2 - B^2 holds.** Let's expand the left-hand side using the distributive property of matrix multiplication:
(AB)(A+B)=A(A+B)B(A+B)=A2+ABBAB2(A-B)(A+B) = A(A+B) - B(A+B) = A^2 + AB - BA - B^2
For this to be equal to A2B2A^2 - B^2, we must have ABBA=OAB - BA = O, where OO is the zero matrix. This means AB=BAAB = BA, i.e., the matrices AA and BB must commute. Since this is not true for all pairs of matrices, the identity does not hold in general. Thus, this statement is **false**. Answer: \boxed{Statements 1 and 2 are true, while Statements 3 and 4 are false.}
3 Single Choice
Seven distinct individuals, including two siblings (Alice and Bob) and a married couple (Carol and David), are to be seated around a circular table. Find the number of distinct seating arrangements such that Alice and Bob are never seated next to each other, but Carol and David are always seated next to each other.
View Solution
**Step 1: Identify the total number of individuals and the primary constraint.** We have 7 distinct individuals to be seated around a circular table. The primary constraint is that Carol and David (the married couple) must always sit together. The secondary constraint is that Alice and Bob (the siblings) must never sit next to each other. **Step 2: Treat Carol and David as a single unit.** Since Carol and David must always sit together, we can treat them as a single block. Let's denote this block as (CD). The remaining 5 individuals are Alice, Bob, and 3 other distinct individuals (let's call them X, Y, Z). So, we are effectively arranging 6 units around the circular table: (CD), A, B, X, Y, Z. The number of ways to arrange nn distinct units around a circular table is (n1)!(n-1)!. Here, n=6n=6 units. So, the number of circular arrangements for these 6 units is:
(61)!=5!=120(6-1)! = 5! = 120
Within the (CD) block, Carol and David can be arranged in 2!2! ways (CD or DC). Therefore, the total number of arrangements where Carol and David are together is:
N(CD together)=5!×2!=120×2=240N(\text{CD together}) = 5! \times 2! = 120 \times 2 = 240
**Step 3: Calculate arrangements where Carol and David are together AND Alice and Bob are together.** Now, we need to consider the arrangements from Step 2 where Alice and Bob are also seated together. If Alice and Bob are together, we treat them as another single block, (AB). So, we have 5 units to arrange: (CD), (AB), X, Y, Z. The number of ways to arrange these 5 units around a circular table is:
(51)!=4!=24(5-1)! = 4! = 24
Within the (CD) block, Carol and David can be arranged in 2!2! ways. Within the (AB) block, Alice and Bob can be arranged in 2!2! ways. Therefore, the total number of arrangements where Carol and David are together AND Alice and Bob are together is:
N(CD together and AB together)=4!×2!×2!=24×2×2=96N(\text{CD together and AB together}) = 4! \times 2! \times 2! = 24 \times 2 \times 2 = 96
**Step 4: Subtract the unwanted arrangements to find the final count.** We want the number of arrangements where Carol and David are together, but Alice and Bob are *not* together. This can be found by subtracting the cases where both pairs are together from the cases where only Carol and David are together:
N(CD together and AB not together)=N(CD together)N(CD together and AB together)N(\text{CD together and AB not together}) = N(\text{CD together}) - N(\text{CD together and AB together})
N=24096=144N = 240 - 96 = 144
Answer: \boxed{144}
4 Multiple Select
Let AA, BB, and CC be three events in a sample space. Suppose that P(A)=0.5P(A)=0.5, P(B)=0.4P(B)=0.4, and P(C)=0.3P(C)=0.3. The events are pairwise independent, i.e., P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B), P(AC)=P(A)P(C)P(A \cap C) = P(A)P(C), and P(BC)=P(B)P(C)P(B \cap C) = P(B)P(C). Furthermore, it is given that P(ABC)=0.1P(A \cap B \cap C) = 0.1. Which of the following statement(s) is/are true?
A
P(ABC)=0.83P(A \cup B \cup C) = 0.83
B
The probability that exactly one of the three events occurs is 0.560.56.
C
The probability that at least two of the three events occur is 0.250.25.
D
Events AA and BCB \cup C are independent.
View Solution
The solution involves applying the principles of probability for unions and intersections of events, and checking for independence. **Step 1: Calculate pairwise intersection probabilities.** Given that the events are pairwise independent, we calculate the probabilities of their pairwise intersections:
P(AB)=P(A)P(B)=0.5×0.4=0.20P(A \cap B) = P(A)P(B) = 0.5 \times 0.4 = 0.20
P(AC)=P(A)P(C)=0.5×0.3=0.15P(A \cap C) = P(A)P(C) = 0.5 \times 0.3 = 0.15
P(BC)=P(B)P(C)=0.4×0.3=0.12P(B \cap C) = P(B)P(C) = 0.4 \times 0.3 = 0.12
We are also given P(ABC)=0.1P(A \cap B \cap C) = 0.1. **Step 2: Evaluate the probability of the union P(ABC)P(A \cup B \cup C).** Using the Principle of Inclusion-Exclusion for three events:
P(ABC)=P(A)+P(B)+P(C)[P(AB)+P(AC)+P(BC)]+P(ABC)P(A \cup B \cup C) = P(A) + P(B) + P(C) - [P(A \cap B) + P(A \cap C) + P(B \cap C)] + P(A \cap B \cap C)
Substituting the known values:
P(ABC)=(0.5+0.4+0.3)(0.20+0.15+0.12)+0.1P(A \cup B \cup C) = (0.5 + 0.4 + 0.3) - (0.20 + 0.15 + 0.12) + 0.1
P(ABC)=1.20.47+0.1=0.83P(A \cup B \cup C) = 1.2 - 0.47 + 0.1 = 0.83
Thus, the first option is **correct**. **Step 3: Evaluate the probability that exactly one event occurs.** The event that exactly one of A,B,CA, B, C occurs is given by the sum of probabilities of the mutually exclusive events (ABcCc)(A \cap B^c \cap C^c), (AcBCc)(A^c \cap B \cap C^c), and (AcBcC)(A^c \cap B^c \cap C). The probability can be calculated using the formula:
P(exactly one)=[P(A)+P(B)+P(C)]2[P(AB)+P(AC)+P(BC)]+3P(ABC)P(\text{exactly one}) = [P(A)+P(B)+P(C)] - 2[P(A \cap B)+P(A \cap C)+P(B \cap C)] + 3P(A \cap B \cap C)
P(exactly one)=(1.2)2(0.47)+3(0.1)P(\text{exactly one}) = (1.2) - 2(0.47) + 3(0.1)
P(exactly one)=1.20.94+0.3=0.56P(\text{exactly one}) = 1.2 - 0.94 + 0.3 = 0.56
Thus, the second option is **correct**. **Step 4: Evaluate the probability that at least two events occur.** The event that at least two of A,B,CA, B, C occur is the union of (AB)(A \cap B), (AC)(A \cap C), and (BC)(B \cap C). The probability is:
P(at least two)=P(AB)+P(AC)+P(BC)2P(ABC)P(\text{at least two}) = P(A \cap B) + P(A \cap C) + P(B \cap C) - 2P(A \cap B \cap C)
P(at least two)=(0.20+0.15+0.12)2(0.1)P(\text{at least two}) = (0.20 + 0.15 + 0.12) - 2(0.1)
P(at least two)=0.470.2=0.27P(\text{at least two}) = 0.47 - 0.2 = 0.27
The option states the probability is 0.250.25. Thus, the third option is **incorrect**. **Step 5: Check for independence of AA and BCB \cup C.** For AA and BCB \cup C to be independent, we must have P(A(BC))=P(A)P(BC)P(A \cap (B \cup C)) = P(A)P(B \cup C). First, calculate P(BC)P(B \cup C):
P(BC)=P(B)+P(C)P(BC)=0.4+0.30.12=0.58P(B \cup C) = P(B) + P(C) - P(B \cap C) = 0.4 + 0.3 - 0.12 = 0.58
Then,
P(A)P(BC)=0.5×0.58=0.29P(A)P(B \cup C) = 0.5 \times 0.58 = 0.29
Next, calculate P(A(BC))P(A \cap (B \cup C)):
P(A(BC))=P((AB)(AC))=P(AB)+P(AC)P(ABC)P(A \cap (B \cup C)) = P((A \cap B) \cup (A \cap C)) = P(A \cap B) + P(A \cap C) - P(A \cap B \cap C)
P(A(BC))=0.20+0.150.1=0.25P(A \cap (B \cup C)) = 0.20 + 0.15 - 0.1 = 0.25
Since P(A(BC))=0.250.29=P(A)P(BC)P(A \cap (B \cup C)) = 0.25 \neq 0.29 = P(A)P(B \cup C), the events are not independent. Thus, the fourth option is **incorrect**. Answer: \boxed{\text{Statements 1 and 2 are correct; Statements 3 and 4 are incorrect.}}
5 Single Choice
An e-commerce company's annual revenue distribution by product category is shown in Figure (a). Figure (b) details the units sold (in thousands) of the 'Electronics' category across its top 5 cities.
View Solution
Solution not provided

Frequently Asked Questions

How many CMI Data Science mock tests are available?

We offer 10 full-length mock tests with 400+ 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 CMIData 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