Updated: Mar 2026
First Chapter - 100% FREE

CMI M.Sc. and Ph.D. Computer Science Chapter-wise PYQs

Practice CMI M.Sc. and Ph.D. Computer Science previous year questions organized by chapter. 230+ PYQs from 10 years with detailed solutions. First chapter FREE!

230+
Total PYQs
10
Years
38
Chapters
FREE
First Chapter
Start Free Test →

Year-wise PYQ Distribution

2025
24
2024
21
2023
23
2022
39
2021
10
2020
26
2019
23
2018
24

All Chapters

Basic Probability

FREE

Probability Theory • 6 PYQs

Start Free

Conditional Probability and Independence

Probability Theory • 6 PYQs

Unlock

Probabilistic Bounds

Probability Theory • 1 PYQs

Unlock

Expectation and Variance

Probability Theory • 3 PYQs

Unlock

Foundations of Propositional Logic

Logic and Boolean Algebra • 11 PYQs

Unlock

Boolean Algebra

Logic and Boolean Algebra • 2 PYQs

Unlock

Special Graph Structures

Graph Theory • 3 PYQs

Unlock

Graph Definitions and Types

Graph Theory • 23 PYQs

Unlock

Minimum Spanning Trees

Graph Theory • 1 PYQs

Unlock

Matchings and Coloring

Graph Theory • 6 PYQs

Unlock

Graph Traversal

Graph Theory • 4 PYQs

Unlock

Shortest Path Algorithms

Graph Theory • 5 PYQs

Unlock

Fundamentals of Vector Spaces

Linear Algebra • 1 PYQs

Unlock

Advanced Counting Techniques

Discrete Mathematics • 6 PYQs

Unlock

Permutations and Combinations

Discrete Mathematics • 9 PYQs

Unlock

Fundamental Counting Principles

Discrete Mathematics • 8 PYQs

Unlock

Set Theory

Discrete Mathematics • 4 PYQs

Unlock

Relations

Discrete Mathematics • 7 PYQs

Unlock

Functions

Discrete Mathematics • 5 PYQs

Unlock

Mathematical Induction

Discrete Mathematics • 1 PYQs

Unlock

Basic Probability - PYQs

Free sample questions from Probability Theory

100% FREE
1 Multiple Select
2022
The Telvio mobile service provider allows each customer to choose a part of their 10-digit mobile number when they get a new connection. The first two digits of the number are fixed by the company based on the customer region. The customer can choose the last four digits that they wish. The company chooses each of the remaining four digits uniformly at random and without replacement from the digits {0,1,2,,9}\{0,1,2,\ldots,9\}. Note that this means that the digits in positions 3, 4, 5 and 6 in a Telvio number are all different. What is the probability that, in the mobile number assigned to a new customer by Telvio, the digits in positions 3, 4, 5 and 6 appear in increasing order when read from left to right?
A
14\frac{1}{4}
B
116\frac{1}{16}
C
124\frac{1}{24}
D
132\frac{1}{32}
View Solution
The company chooses four distinct digits for positions
3,4,5,63,4,5,6
Since the digits are chosen without replacement, all four chosen digits are different. Now fix any particular set of four distinct digits. There are exactly
4!4!
possible orders in which these four digits can appear in the four positions. Among these
4!4!
orders, exactly one order is strictly increasing from left to right. Therefore, conditioned on any chosen set of four distinct digits, the probability that they appear in increasing order is
14!\frac{1}{4!}
That is,
124\frac{1}{24}
Since this value does not depend on which four digits were chosen, the overall probability is also
124\frac{1}{24}
Therefore, the correct answer is
124\frac{1}{24}
2 Multiple Select
2021
In the chamber containing the Philosopher's stone, Harry sees a deck of
55
cards, each with a distinct number from
11
to
55
Harry removes two cards from the deck, one at a time. What is the probability that the two cards selected are such that the first card's number is exactly one more than the number on the second card?
A
1/51/5
B
4/254/25
C
1/41/4
D
2/52/5
View Solution
Let the ordered pair
(i,j)(i,j)
mean that the first card drawn is
ii
and the second card drawn is
jj
Since two different cards are drawn from
{1,2,3,4,5}\{1,2,3,4,5\}
the sample space is
{(i,j)i,j{1,2,3,4,5}, ij}\{(i,j)\mid i,j \in \{1,2,3,4,5\},\ i \ne j\}
The total number of outcomes is
5×4=205 \times 4 = 20
We want the first number to be exactly one more than the second. So the favorable ordered pairs are
(2,1), (3,2), (4,3), (5,4)(2,1),\ (3,2),\ (4,3),\ (5,4)
There are
44
favorable outcomes. Hence the probability is
420=15\frac{4}{20} = \frac{1}{5}
So the correct answer is
1/51/5
3 Multiple Select
2020
A fair coin is repeatedly tossed. Each time a head appears, 11 rupee is added to the first bag. Each time a tail appears, 22 rupees are put in the second bag. What is the probability that both the bags have the same amount of money after 66 coin tosses?
A
126\frac{1}{2^6}
B
6!2!4!26\frac{6!}{2!\,4!\,2^6}
C
2226\frac{2^2}{2^6}
D
6!26\frac{6!}{2^6}
View Solution
Let the number of heads be
hh
and the number of tails be
tt
Then after
66
tosses we have
h+t=6h+t=6
The first bag gets
hh
rupees, because each head contributes
11
rupee. The second bag gets
2t2t
rupees, because each tail contributes
22
rupees. For the two amounts to be equal, we need
h=2th=2t
Together with
h+t=6h+t=6
this gives
2t+t=62t+t=6
so
3t=63t=6
and therefore
t=2,h=4t=2,\quad h=4
So the desired event is exactly:
in 6 tosses, there are 2 tails and 4 heads\text{in 6 tosses, there are 2 tails and 4 heads}
The number of such sequences is
(62)=6!2!4!\binom{6}{2} = \frac{6!}{2!\,4!}
Since all
262^6
toss sequences are equally likely, the probability is
(62)26=6!2!4!26\frac{\binom{6}{2}}{2^6} = \frac{6!}{2!\,4!\,2^6}
Therefore, the correct answer is
6!2!4!26\frac{6!}{2!\,4!\,2^6}
4 Multiple Select
2018
Let
CnC_n
be the number of strings
ww
consisting of
nn
X's and
nn
Y's such that no initial segment of
ww
has more Y's than X's. Now consider the following problem. A person stands in the middle of a swimming pool holding a bag of
nn
red and
nn
blue balls. He draws a ball out one at a time and discards it. If he draws a blue ball, he takes one step back, if he draws a red ball, he moves one step forward. What is the probability that the person remains dry?
A
Cn22n\frac{C_n}{2^{2n}}
B
Cn(2nn)\frac{C_n}{\binom{2n}{n}}
C
nCn(2n)!\frac{n \cdot C_n}{(2n)!}
D
nCn(2nn)\frac{n \cdot C_n}{\binom{2n}{n}}
View Solution
Each sequence of draws is determined only by the order of the
nn
red balls and
nn
blue balls. So the total number of possible color sequences is
(2nn)\binom{2n}{n}
because we only need to choose which
nn
of the
2n2n
positions contain the red balls. Now the person remains dry exactly when, at every stage, he has never moved too far backward. This corresponds to the condition that in every initial segment, the number of red moves is at least the number of blue moves. If we encode
X=redX=\text{red}
and
Y=blueY=\text{blue}
then the number of such favorable sequences is precisely
CnC_n
by the definition given in the question. Therefore the required probability is
Cn(2nn)\frac{C_n}{\binom{2n}{n}}
Hence the correct answer is
Cn(2nn)\frac{C_n}{\binom{2n}{n}}
5 Multiple Select
2017
An FM radio channel has a repository of 1010 songs. Each day, the channel plays 33 distinct songs that are chosen randomly from the repository. Mary decides to tune in to the radio channel on the weekend after her exams. What is the probability that no song gets repeated during these 22 days?
A
(103)2(106)1\binom{10}{3}^2 \cdot \binom{10}{6}^{-1}
B
(106)(103)2\binom{10}{6}\cdot \binom{10}{3}^{-2}
C
(103)(73)(103)2\binom{10}{3}\cdot \binom{7}{3}\cdot \binom{10}{3}^{-2}
D
(103)(73)(106)1\binom{10}{3}\cdot \binom{7}{3}\cdot \binom{10}{6}^{-1}
View Solution
On day 11, the channel chooses any 33 distinct songs out of 1010. So the number of possibilities for day 11 is
(103)\binom{10}{3}
If no song is to be repeated on day 22, then after choosing the 33 songs of day 11, only
103=710-3=7
songs remain available for day 22. So the number of valid choices for day 22 is
(73)\binom{7}{3}
Hence the number of favourable outcomes is
(103)(73)\binom{10}{3}\binom{7}{3}
Now count the total number of possible choices over the two days without any restriction. Each day independently has
(103)\binom{10}{3}
choices, so the total number of outcomes is
(103)(103)=(103)2\binom{10}{3}\binom{10}{3}=\binom{10}{3}^2
Therefore the required probability is
(103)(73)(103)2\frac{\binom{10}{3}\binom{7}{3}}{\binom{10}{3}^2}
which is exactly
(103)(73)(103)2\binom{10}{3}\cdot \binom{7}{3}\cdot \binom{10}{3}^{-2}
Hence the correct answer is option (c).
6 Multiple Select
2016
Varsha lives alone and dislikes cooking, so she goes out for dinner every evening. She has two favourite restaurants, Dosa Paradise and Kababs Unlimited, which she travels by local train. The train to Dosa Paradise runs every 1010 minutes, at 00, 1010, 2020, 3030, 4040 and 5050 minutes past the hour. The train to Kababs Unlimited runs every 2020 minutes, at 88, 2828 and 4848 minutes past the hour. She reaches the station at a random time between 7:157{:}15 pm and 8:158{:}15 pm and chooses between the two restaurants based on the next available train. What is the probability that she ends up in Kababs Unlimited?
A
15\frac{1}{5}
B
13\frac{1}{3}
C
25\frac{2}{5}
D
12\frac{1}{2}
View Solution
Varsha chooses the restaurant whose train comes next. So we must find all arrival times for which the next train to Kababs Unlimited comes before the next train to Dosa Paradise. Between 7:157{:}15 and 8:158{:}15, the relevant Dosa Paradise trains are at
7:20, 7:30, 7:40, 7:50, 8:00, 8:10, 8:207{:}20,\ 7{:}30,\ 7{:}40,\ 7{:}50,\ 8{:}00,\ 8{:}10,\ 8{:}20
and the relevant Kababs Unlimited trains are at
7:28, 7:48, 8:08, 8:287{:}28,\ 7{:}48,\ 8{:}08,\ 8{:}28
Now compare the next available train in each interval. Kababs Unlimited is chosen exactly when the arrival time lies in these intervals:
7:20 to 7:287{:}20 \text{ to } 7{:}28
7:40 to 7:487{:}40 \text{ to } 7{:}48
8:00 to 8:088{:}00 \text{ to } 8{:}08
Each of these intervals has length
8 minutes8 \text{ minutes}
So the total favourable time is
8+8+8=24 minutes8 + 8 + 8 = 24 \text{ minutes}
The total time window is from 7:157{:}15 to 8:158{:}15, which has length
60 minutes60 \text{ minutes}
Therefore the required probability is
2460=25\frac{24}{60} = \frac{2}{5}
Hence the correct answer is
25\frac{2}{5}

Why Practice PYQs?

📈

Understand Pattern

Know what to expect in the actual exam

🎯

Topic Weightage

Focus on high-yield topics

Build Confidence

Practice with real exam questions

Frequently Asked Questions

How are CMI PYQs organized?

PYQs are organized chapter-wise across 38 topics, making it easy to practice specific areas. Each question shows its year and slot.

How many years of PYQs are available?

We have 10 years of CMI M.Sc. and Ph.D. Computer Science PYQs from 2016 to 2025, totaling 230+ questions.

Is the first chapter free?

Yes! The first chapter's PYQs are completely FREE with full solutions. Practice and evaluate before upgrading.

Do PYQs have detailed solutions?

Every PYQ comes with step-by-step solutions and explanations to help you understand the concepts thoroughly.

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