1 .
Consider a set consisting of 20 integers; 5 of these are even and the other 15 integers in
are odd. What is the number of 7-element subsets of having exactly 3 even integers?
(a)
(b)
(c)
(d)
2 .
Consider a set consisting of 20 integers; 5 of them are even and the other 15 integers in
are odd. What is the number of 7-element subsets of having at least 5 even integers or at least
5 odd integers?
(a)
(b)
None of the above.
(c)
(d)
3 .
How many bitstrings of length 77 start with 1111 or end with 0000?
(a)
(b)
(c)
(d)
4 .
What is the coefficient of in the expansion of ?
(a)
(b)
(c)
(d)
5 .
In a group of 20 people,
6 are blond,
7 have green eyes,
11 are not blond and do not have green eyes.
How many people in this group are blond and have green eyes?
(a)
5
(b)
3
(c)
4
(d)
6
6 .
Let be an integer. Why does the following equality hold:
(a)
Because both sides count the number of ways to choose 2 committees in a group of people, one committee has 5 members, the other committee has 2 members, and <strong>no</strong> person can be on both committees.
(b)
Because both sides count the number of pairs of subsets of the people, such that , , and .
(c)
Because both sides count the number of ways to choose 2 committees in a group of people, one committee has 5 members, the other committee has 2 members, and a person can be on both committees.
(d)
Because both sides count the number of pairs of subsets of the people, such that , , and .
7 .
Consider strings of characters, each character being , , or , that contain an odd number of
s. Let be the number of such strings having length . Which of the following is true?
(a)
(b)
(c)
(d)
8 .
Consider the following recursive function:
f(0) = ,
f(n) = .
Which of the following is true??
(a)
For all :
(b)
None of the above.
(c)
For all :
(d)
For all :
9 .
Consider the recursive algorithm , which takes as input an
integer :
If we run algorithm , how many calls are there to ?
(a)
4
(b)
6
(c)
3
(d)
5
10 .
Let be the set of ordered pairs of integers that is recursively defined in the following way:
.
If then .
If then .
Which of the following is true?
(a)
For every element in , is not divisible by 7.
(b)
None of the above.
(c)
and are integers and is divisible by 7.
(d)
For every element in , is divisible by 7.
11 .
How many solutions are there to the equation , where ,
, , are integers?
(a)
(b)
(c)
(d)
12 .
Consider two events and in a sample space . You are given that and
. What is ?
(a)
6/15
(b)
5/15
(c)
7/15
(d)
8/15
13 .
Consider three events, , , and in a sample space . Is the following true or false?
(a)
None of the above.
(b)
True
(c)
False
14 .
Let be a set of 100 integers; 30 of these are positive and the other 70 integers in are
negative. We choose, uniformly at random, a 20-element subset of . What is the probability that
at least one of the elements in this subset is positive?
(a)
None of the above.
(b)
(c)
(d)
15 .
Let be a set of 100 integers; 30 of these are positive and the other 70 integers in are
negative. We choose, uniformly at random, a 20-element subset of . Let be the product of the
integers in the chosen subset. What is the probability that ?
(a)
(b)
(c)
(d)
16 .
Consider a bitstring of length 77, in which each bit is 0 with probability 1/3 (and, thus, 1 with
probability 2/3), independently of the other bits. What is the probability that there are exactly
15 0s in this bitstring?
(a)
(b)
(c)
(d)
17 .
Consider a uniformly random bitstring of length 5. Define the events
A = "the bitstring contains exactly two 0s",
B = "the bitstring contains an even number of 0s".
(Note that zero is even.) What is the conditional probability ?
(a)
(b)
(c)
(d)
18 .
Consider a uniformly random bitstring of length 5. Define the events
A = "the bitstring contains an odd number of 0s"
and
B = "the first three bits in the bitstring are 111".
Which of the following is true?
(a)
None of the above.
(b)
The events and are not independent.
(c)
The events and are independent.
19 .
I flip a fair coin, independently, times. For each heads, you win $3, whereas for each tails,
you lose $1. Define the random variable to be the amount of dollars that you win. What is the
expected value of ?
(a)
(b)
(c)
(d)
20 .
Let be a graph with vertex set and edge set , let be the size of , and let
be the size of . For each vertex of , flip a fair and independent coin. Let be the
subset of consisting of all vertices of whose coin flip resulted in heads. Let be the
set consisting of all edges in for which both and are in . Define the random
variable to be the number of edges in . What is the expected value of ?
(a)
(b)
(c)
(d)
21 .
Consider a bitstring of length 5, in which each bit is 0 with probability 1/2 (and, thus, 1 with
probability 1/2), independently of the other bits. Define the random variables and as
follows:
X = the number of 0s in this bitstring
and
Y = the value of the first bit in this bitstring.
Which of the following is true?
(a)
None of the above.
(b)
The random variables and are not independent.
(c)
The random variables and are independent.
22 .
One of Lindsay and Simon is chosen uniformly at random. The person that is chosen wins $100.
Define the random variables and as follows:
L = the amount that Lindsay wins
and
S = the amount that Simon wins.
Which of the following is true?
(a)
and .
(b)
and .
(c)
and .
(d)
and .
23 .
Consider the following recursive algorithm , which takes as input a positive integer :
You run algorithm , i.e., with . Define the random variable to be the value of the
output of this algorithm.
Let be an integer. What is ?
(a)
(b)
(c)
(d)
24 .
You repeatedly, and independently, roll two fair dice, until the sum of the values of the two dice
is equal to 12. Define the random variable to be the number of times you roll the pair of dice.
What is the expected value of ?
(a)
30
(b)
20
(c)
36
(d)
12
25 .
Who is Lindsay Bangs?
(a)
Goalie of the Ottawa Senators, her nickname is The Hamburglar.
(b)
A world-renowned rapper.
(c)
Owner of the brewery that produces Leo's Early Breakfast IPA.
(d)
President of the Carleton Computer Science Society.