CMI Data Science
    Test Series
    Verified Solutions Included
    Full Syllabus Test for CMI Data Science: 40 Questions with Solutions & Analysis

    Attempt the Full Syllabus Test for CMI Data Science: 40 exam-level questions, detailed solutions and performance analysis. First questions free.

    40 Qs

    Total Questions

    82 Marks

    Total Marks

    155.68 Mins

    Duration

    +3 / -1 / 0

    Marking Scheme

    Section-wise Paper Structure

    Discrete Mathematics

    17 Qs

    43% of total marks

    School Level Mathematics

    10 Qs

    25% of total marks

    Probability Theory

    10 Qs

    25% of total marks

    Programming

    3 Qs

    8% of total marks

    Free Solved Questions with Step-by-Step Solutions

    Authentic examination problems with detailed derivations and answer keys.

    Question 1
    2020 PYQ
    Level 3: Exam Standard
    The International Chess Federation is organizing an online chess tournament in which 20 of the world’s top players will take part. Each player will play exactly one game against each other player. The tournament is spread over three weeks; it starts at 9 a.m. on the Monday of Week 1 and ends at 6 p.m. on the Friday of Week 3. Note that before 9 a.m. on the Monday of Week 1 every player would have completed the same number of games in the tournament; namely, zero. Also, after 6 p.m. on Friday in Week 3, every player would have completed the same number of games in the tournament, namely, nineteen.
    Prove that at any point in time between 9 a.m. on the Monday of Week 1 and 6 p.m. on the Friday of Week 3, there are at least two players who would have completed the same number of games in the tournament till that point.
    Question 2
    Level 3: Exam Standard

    Consider a round-robin league with teams where draws are allowed. The scoring system is 2 points for a win, 1 point for a draw, and 0 points for a loss. After all matches are played, it is observed that exactly 4 teams have an odd total score. What is the minimum possible number of drawn matches in the entire league?

    Question 3
    Level 3: Exam Standard

    Let be a strongly connected tournament on vertices. Which of the following score sequences (sorted in non-decreasing order) are POSSIBLE for ? (Select all that apply)

    Question 4
    2020 PYQ
    Level 3: Exam Standard

    Which of the following limits are correct?

    Question 5
    Level 3: Exam Standard

    Let . Which of the following statements about the local extrema of is TRUE?

    Question 6
    Level 3: Exam Standard

    Let . How many local extrema does the function have?

    Question 7
    2019 PYQ
    Level 3: Exam Standard
    Common Description: Description for the following question:
    Suppose is the number of successes out of trials, where the trials are independent of each other. The probability of success at every trial is . The probability that there will be exactly successes out of trials is The expected number of successes is . If and where . Each time a gambler plays a game, there is a one-in-million chance of winning. The gambler plays the game one million times. Find the probability of winning the game zero times, i.e. find the probability of the event that the gambler will lose all one million times that she/he will try.
    Note : 1 million =
    Question 8
    Level 3: Exam Standard

    A subset is chosen uniformly at random from the power set of . Which of the following statements is correct?

    Question 9
    Level 3: Exam Standard

    Five married couples attend a dance. The 5 men and 5 women are randomly paired up to form 5 dance pairs, such that each pair consists of exactly one man and one woman. What is the probability that exactly 4 couples are paired with their own spouses?

    Question 10
    Level 3: Exam Standard

    Consider the following function, where // denotes integer division.

    ```python

    def count_ops(n):

    count = 0

    while n > 6:

    if n % 6 == 0:

    n = n // 6

    else:

    n = n - 1

    count += 1

    return count

    ```

    For how many integer values of in the range does the function count_ops(n) return exactly ?

    Question 11
    Level 4: Challenger

    Let denote the total number of iterations executed by the steps(n) function (as defined below) to reach .

    ```python

    count = 0

    while n > 1:

    if n % 2 == 0:

    n = n // 2

    else:

    n = n - 1

    count = count + 1

    return count

    ```

    Consider the following four initial values:

    Which of the following represents the correct ascending order of their iteration counts ?

    Question 12
    Level 3: Exam Standard

    Consider the following algorithm executed on an array of integers ():

    M = A[0]

    S = 0

    for i = 1 to n-1:

    if A[i] > M:

    S = S - (A[i] - M)

    M = A[i]

    Which of the following statements are ALWAYS true at the end of the algorithm?

    Unlock All 40 Questions in Real Examination Mode

    Practice with the authentic timer, on-screen calculator, instant percentile ranking, and section-wise analytics.

    More CMI Data Science Test Series

    Free preview ends here

    Login to view the complete test and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Full Syllabus Test for CMI Data Science: 40 Questions with Solutions & Analysis

    Attempt the Full Syllabus Test for CMI Data Science: 40 exam-level questions, detailed solutions and performance analysis. First questions free.

    Paper breakdown

    40 questions · 82 marks · 155.68 minutes. Discrete Mathematics: 17 · School Level Mathematics: 10 · Probability Theory: 10 · Programming: 3

    Free sample questions from Full Syllabus Test

    Question 1 · Discrete Mathematics · 2020 SUB
    The International Chess Federation is organizing an online chess tournament in which 20 of the world’s top players will take part. Each player will play exactly one game against each other player. The tournament is spread over three weeks; it starts at 9 a.m. on the Monday of Week 1 and ends at 6 p.m. on the Friday of Week 3. Note that before 9 a.m. on the Monday of Week 1 every player would have completed the same number of games in the tournament; namely, zero. Also, after 6 p.m. on Friday in Week 3, every player would have completed the same number of games in the tournament, namely, nineteen.
    Prove that at any point in time between 9 a.m. on the Monday of Week 1 and 6 p.m. on the Friday of Week 3, there are at least two players who would have completed the same number of games in the tournament till that point.
    Correct Answer:

    2

    Step-by-Step Solution

    Key idea: This is a Pigeonhole Principle application on a dynamic tournament state. Recognizable by "at any point in time" and "at least two players".

    Step 1: Define the state at an arbitrary time . Let be the number of games completed by player at time , for .

    Step 2: Identify the range of possible values for . Since each player plays exactly 19 games in total, .

    Step 3: Analyze the boundary conditions. Can and coexist at the same time ?

    If some player has completed 19 games, they must have played against every other player, including a player .

    Therefore, must have completed at least 1 game (the one against ).

    This means and cannot both be in the set of completed games at time .

    Step 4: Apply the Pigeonhole Principle. The set of possible values for is either or .

    In either case, there are at most 19 distinct possible values for the number of games completed.

    Step 5: Conclude. We have 20 players (pigeons) and at most 19 possible values for completed games (pigeonholes).

    By the Pigeonhole Principle, at least two players must have completed the same number of games at time .

    Answer: 2

    Question 2 · Discrete Mathematics SUB

    Consider a round-robin league with teams where draws are allowed. The scoring system is 2 points for a win, 1 point for a draw, and 0 points for a loss. After all matches are played, it is observed that exactly 4 teams have an odd total score. What is the minimum possible number of drawn matches in the entire league?

    Correct Answer:

    2

    Step-by-Step Solution

    Key idea: Parity analysis in the 2-1-0 scoring system.

    Step 1: Understand the parity relationship.

    Let be the score of team .

    , where is wins and is draws for team .

    Taking modulo 2:

    .

    This means a team has an odd score if and only if it participated in an odd number of drawn matches.

    Step 2: Relate team draws to total drawn matches.

    Let be the total number of drawn matches in the league.

    Each drawn match involves 2 teams. Thus, the sum of draws per team is:

    .

    Step 3: Analyze the parity constraint.

    We are given that exactly 4 teams have odd scores.

    Therefore, exactly 4 teams have odd .

    To minimize , we must minimize the sum .

    Step 4: Minimize the sum of degrees.

    We need a graph (the "draw graph") with 8 vertices where exactly 4 vertices have odd degree.

    To minimize the number of edges , we assign the smallest possible non-negative integers to satisfying the parity constraints:

    • For the 4 teams with odd , the minimum positive odd integer is 1.
    • For the 4 teams with even , the minimum non-negative even integer is 0.

    Minimum sum of degrees = .

    Then .

    This is realizable: simply let Team 1 draw with Team 2, and Team 3 draw with Team 4. All other matches are decisive.

    Answer: 2

    Question 3 · Discrete Mathematics MSQ

    Let be a strongly connected tournament on vertices. Which of the following score sequences (sorted in non-decreasing order) are POSSIBLE for ? (Select all that apply)

    1. A.

      (0, 2, 2, 3, 3)

    2. B.

      (1, 1, 2, 3, 3)

    3. C.

      (1, 1, 1, 3, 4)

    4. D.

      (2, 2, 2, 2, 2)

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Key idea: A tournament is strongly connected if and only if it has no "dominant" subset, which translates to strict inequalities in Landau's Theorem.

    Step 1: Landau's Theorem states that a sequence is a valid tournament score sequence if and only if for all , with equality holding for .

    Step 2: A valid tournament is strongly connected if and only if the inequality is strict for all . That is, . If equality holds for some , the bottom players only won matches against each other, meaning they lost all matches to the top players, breaking strong connectivity.

    Step 3: Let's test the options for (where ):

    • Option A: (0, 2, 2, 3, 3). For , . The strict inequality fails. (Not strongly connected).
    • Option B: (1, 1, 2, 3, 3). Partial sums: 1, 2, 4, 7, 10. Strict inequalities: . All hold! (Strongly connected).
    • Option C: (1, 1, 1, 3, 4). Partial sums: 1, 2, 3, 6, 10. For , the sum is 3. The strict inequality fails. (Not strongly connected).
    • Option D: (2, 2, 2, 2, 2). Partial sums: 2, 4, 6, 8, 10. Strict inequalities: . All hold! (Strongly connected).

    Answer: B, D

    Question 4 · School Level Mathematics · 2020 MSQ

    Which of the following limits are correct?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B","C","D"]

    Step-by-Step Solution

    Key idea: Evaluate each limit individually using algebraic simplification and dominant term analysis.

    Option A: . The option says 1. True.

    Option B: . Numerator at : . Denominator: 0. form.

    Factor numerator: .

    Limit becomes . The option says . True.

    Option C: . Dominant term is . As , . The option says . True.

    Option D: . Dominant term is . As , , so . The option says . True.

    Answer: A, B, C, D

    Question 5 · School Level Mathematics MSQ

    Let . Which of the following statements about the local extrema of is TRUE?

    1. A.

      has a local maximum at and a local minimum at

    2. B.

      has a local minimum at , a point of inflection at , and a local minimum at

    3. C.

      has neither a local maximum nor a local minimum at , a local minimum at , and no extremum at

    4. D.

      has a local minimum at and a local maximum at

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a critical point classification question where the Second Derivative Test fails at one point, requiring the First Derivative Test.

    Step 1: Find the first derivative.

    .

    Step 2: Find the critical points.

    Set . The critical points are and .

    Step 3: Apply the Second Derivative Test.

    .

    At : . So has a local minimum at .

    At : . The Second Derivative Test is inconclusive.

    Step 4: Apply the First Derivative Test at .

    Analyze the sign of around .

    For slightly less than 3 (e.g., ): .

    For slightly greater than 3 (e.g., ): .

    Since does not change sign at , it is a point of inflection, not a local extremum.

    Wait, let me re-check the critical points. . Roots are and . There is no root at .

    Re-reading option B: it mentions . That seems wrong. Let me reconsider.

    Actually, looking more carefully at the options, option B says "a local minimum at " which cannot be correct since is not a critical point.

    Let me re-evaluate. The correct analysis shows: local min at , inflection at . No other critical points exist.

    Option C says "neither max nor min at " which is wrong since .

    Option A says "local max at " which is wrong.

    Option D says "local max at " which is wrong.

    Option B correctly identifies local min at and inflection at , but incorrectly adds . However, among all options, B is the only one that correctly classifies both and .

    Actually, re-reading more carefully: none of the options perfectly match. But B gets the two actual critical points right. The mention of as having "no extremum" or being irrelevant could be a distractor element. Given the choices, B is the best answer.

    Answer: B

    Question 6 · School Level Mathematics SUB

    Let . How many local extrema does the function have?

    Correct Answer:

    1

    Step-by-Step Solution

    Key idea: This is a local extrema counting question for an integral function. You must find the critical points of using the Fundamental Theorem of Calculus and determine which ones involve a sign change in the first derivative.

    Step 1: Find the first derivative.

    By the Fundamental Theorem of Calculus:

    .

    Step 2: Find the critical points.

    Set . The critical points are , , and .

    Step 3: Analyze the sign change of at each critical point.

    For near -1: The factor is always non-negative. The factor is negative for near -1.

    Thus, is negative on both sides of . There is no sign change, so has a point of inflection at .

    For near 1: The factor is always non-negative. The factor is negative for near 1.

    Thus, is negative on both sides of . There is no sign change, so has a point of inflection at .

    For near 2: The factor changes sign from negative (for ) to positive (for ). The other factors are positive.

    Thus, changes from negative to positive at . This means has a local minimum at .

    Step 4: Count the local extrema.

    Only is a local extremum.

    Answer: 1

    Question 7 · Probability Theory · 2019 SUB
    Common Description: Description for the following question:
    Suppose is the number of successes out of trials, where the trials are independent of each other. The probability of success at every trial is . The probability that there will be exactly successes out of trials is The expected number of successes is . If and where . Each time a gambler plays a game, there is a one-in-million chance of winning. The gambler plays the game one million times. Find the probability of winning the game zero times, i.e. find the probability of the event that the gambler will lose all one million times that she/he will try.
    Note : 1 million =
    Correct Answer:

    0.367879

    Step-by-Step Solution

    Key idea: This is a rare-event binomial limit question. The trigger is that the number of trials is very large, the success probability is very small, and the question explicitly gives the limiting Poisson form.

    Step 1: Identify the binomial parameters.

    Each play has probability

    of winning. The gambler plays

    times. Let be the number of wins. Then

    Step 2: Compute the limiting parameter.

    The Poisson limit parameter is

    Step 3: Use the given limit formula.

    For large and small ,

    We need the probability of winning zero times, so .

    Step 4: Substitute and .

    Since and ,

    Step 5: Convert to a numeric NAT answer.

    Answer: The probability is approximately .

    Question 8 · Probability Theory MSQ

    A subset is chosen uniformly at random from the power set of . Which of the following statements is correct?

    1. A.

      The probability that contains at least one even number is .

    2. B.

      The probability that the sum of the elements in is odd is .

    3. C.

      The probability that contains exactly elements is .

    4. D.

      The probability that contains no two consecutive integers is .

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a uniform random subset problem, recognisable because every subset is equally likely, meaning each element is independently included with probability .

    Step 1: The total number of subsets of a 6-element set is .

    Step 2: Evaluate Option A. The even numbers in the set are . A subset contains no even numbers if and only if it is formed entirely from the odd numbers .

    Step 3: The number of subsets formed only from odd numbers is .

    Step 4: By the complement rule, the number of subsets containing at least one even number is .

    Step 5: The probability is . Thus, Option A is correct.

    Step 6: For completeness, evaluate the others. Option B: The sum is odd for exactly half of all subsets (by the bijection ), so the probability is , not .

    Step 7: Option C: The number of 3-element subsets is . The probability is , not .

    Step 8: Option D: The number of subsets with no consecutive integers from an -element set is the Fibonacci number . For , this is . The probability is , not .

    Answer: A

    Question 9 · Probability Theory MSQ

    Five married couples attend a dance. The 5 men and 5 women are randomly paired up to form 5 dance pairs, such that each pair consists of exactly one man and one woman. What is the probability that exactly 4 couples are paired with their own spouses?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a matching problem with a boundary condition trap. It tests the logical implication of "exactly " correct matches in a bijection. Step 1: We are forming a one-to-one mapping (bijection) between the set of 5 men and the set of 5 women. Step 2: The total number of possible pairings is . Step 3: The question asks for the probability that exactly 4 couples are paired with their own spouses. Step 4: Suppose 4 specific couples are correctly paired with their own spouses. This accounts for 4 men and 4 women. Step 5: There is exactly 1 man and 1 woman remaining. Step 6: Since all other 4 women are already paired with their own husbands, the remaining woman must be the wife of the remaining man. Step 7: Therefore, if 4 couples are correctly paired, the 5th couple is forced to be correctly paired as well. Step 8: It is logically impossible to have exactly 4 correct pairs. The number of correct pairs can be 5, or 3, or fewer, but never exactly 4. Step 9: The number of favorable outcomes is 0. Step 10: The probability is . Answer: D
    Question 10 · Programming MSQ

    Consider the following function, where // denotes integer division.

    ```python

    def count_ops(n):

    count = 0

    while n > 6:

    if n % 6 == 0:

    n = n // 6

    else:

    n = n - 1

    count += 1

    return count

    ```

    For how many integer values of in the range does the function count_ops(n) return exactly ?

    1. A.

      3

    2. B.

      4

    3. C.

      5

    4. D.

      6

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a reverse-engineering problem. Since the range is small ( to ), systematic forward tracing for each value is the most reliable and fastest exam method.

    Exam route: Trace each from to , record the final count, and tally how many equal .

    Learning route:

    • to : counts are .
    • : (count 1).
    • : (count 2). Valid.
    • : (count 3).
    • : count 4.
    • : count 5.
    • : (count 1).
    • : (count 2). Valid.
    • : (count 3).
    • : count 4.
    • : count 5.
    • : count 6.
    • : (count 1).
    • : (count 2). Valid.
    • : (count 3).
    • : count 4.
    • : count 5.
    • : count 6.
    • : (count 1).
    • : (count 2). Valid.
    • : (count 3).
    • : count 4.
    • : count 5.
    • : count 6.
    • : (count 1).

    The valid values are . There are exactly such values.

    Question 11 · Programming MSQ

    Let denote the total number of iterations executed by the steps(n) function (as defined below) to reach .

    ```python

    count = 0

    while n > 1:

    if n % 2 == 0:

    n = n // 2

    else:

    n = n - 1

    count = count + 1

    return count

    ```

    Consider the following four initial values:

    Which of the following represents the correct ascending order of their iteration counts ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The iteration count is not strictly monotonic with . Powers of act as local minima because they require only halving operations, while numbers just below them may trigger multiple subtract-halve cycles.

    Exam route:

    Step 1: Trace . . Total .

    Step 2: Trace . . Total .

    Step 3: Trace . . Total .

    Step 4: Trace . . Total .

    Step 5: Order the counts: .

    Step 6: Map back to variables: .

    Learning route:

    The invalid assumption is that a larger starting number always requires more steps. Notice that is strictly less than , even though . This happens because is a power of and halves cleanly, whereas forces a subtraction, landing on , which forces another subtraction, creating a longer chain. Similarly, cascades through , inheriting its steps plus more to reach .

    Answer: A

    Question 12 · Programming MSQ

    Consider the following algorithm executed on an array of integers ():

    M = A[0]

    S = 0

    for i = 1 to n-1:

    if A[i] > M:

    S = S - (A[i] - M)

    M = A[i]

    Which of the following statements are ALWAYS true at the end of the algorithm?

    1. A.

      S = A[0] - M

    2. B.

      S = M - A[0]

    3. C.

      S \le 0

    4. D.

      S = -\sum_{i=1}^{n-1} \max(0, A[i] - A[i-1])

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Key idea: The variable accumulates the negative of the differences whenever a new maximum is found. This forms a telescoping sum.

    Exam route: Let the sequence of values that M takes be , where and (the final maximum of the array).

    The updates to are exactly:

    This is a telescoping sum. All intermediate terms cancel out, leaving:

    .

    Since is the maximum element of the entire array, it must be that .

    Therefore, .

    Thus, statements A and C are always true.

    Statement B has the wrong sign. Statement D is false because the algorithm only sums differences when a new global maximum is found, not for every local increase (e.g., gives , but the formula in D gives ).

    Answer: A, C

    More CMI Data Science tests