Evaluations

Evaluation: 2015 Winter Final

Author: Michiel Smid

1 . Consider a set S consisting of 20 integers; 5 of these are even and the other 15 integers in S are odd. What is the number of 7-element subsets of S having exactly 3 even integers?
(a)
(207)
(b)
(53)+(154)
(c)
(54)(153)
(d)
(53)(154)

2 . Consider a set S consisting of 20 integers; 5 of them are even and the other 15 integers in S are odd. What is the number of 7-element subsets of S having at least 5 even integers or at least 5 odd integers?
(a)
(55)(152)+(52)(155)+(51)(156)+(50)(157)
(b)
None of the above.
(c)
(55)(152)+(52)(155)(55)(155)
(d)
(207)(54)(154)

3 . How many bitstrings of length 77 start with 1111 or end with 0000?
(a)
274269
(b)
277269
(c)
277273273
(d)
273+273

4 . What is the coefficient of x4y11 in the expansion of (2x7y)15?
(a)
(1511)21174
(b)
(1511)21174
(c)
(1511)24711
(d)
(1511)24711

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 n7 be an integer. Why does the following equality hold: (n5)(n52)=(n2)(n25)
(a)
Because both sides count the number of ways to choose 2 committees in a group of n 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 (A,B) of subsets of the n people, such that |A|=5, |B|=2, and AB.
(c)
Because both sides count the number of ways to choose 2 committees in a group of n 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 (A,B) of subsets of the n people, such that |A|=2, |B|=5, and AB.

7 . Consider strings of characters, each character being a, b, or c, that contain an odd number of as. Let Sn be the number of such strings having length n. Which of the following is true?
(a)
Sn=2Sn1+Sn2
(b)
Sn=Sn1+Sn2
(c)
Sn=Sn1+(3n1Sn1)
(d)
Sn=2Sn1+(3n1Sn1)

8 . Consider the following recursive function:
  • f(0) = 7,
  • f(n) = f(n1)+6n3 for all integers n1.
Which of the following is true??
(a)
For all n0: f(n)=3n2+7
(b)
None of the above.
(c)
For all n0: f(n)=4n2+7
(d)
For all n0: f(n)=2n2+7

9 . Consider the recursive algorithm FIB, which takes as input an integer n0:

Algorithm FIB(n):
if n=0 or n=1
then f=n
else f=FIB(n1)+FIB(n2)
endif;
return f

If we run algorithm FIB(77), how many calls are there to FIB(73)?
(a)
4
(b)
6
(c)
3
(d)
5

10 . Let S be the set of ordered pairs of integers that is recursively defined in the following way:
  • (1,6)S.
  • If (a,b)S then (a+3,b+4)S.
  • If (a,b)S then (a+5,b+2)S.
Which of the following is true?
(a)
For every element (a,b) in S, a+b is not divisible by 7.
(b)
None of the above.
(c)
S={(a,b):a>0 and b>0 are integers and a+b is divisible by 7}.
(d)
For every element (a,b) in S, a+b is divisible by 7.

11 . How many solutions are there to the equation x1+x2+x3+x4=99, where x10, x20, x30, x40 are integers?
(a)
(1024)
(b)
(1033)
(c)
(1034)
(d)
(1023)

12 . Consider two events A and B in a sample space S. You are given that Pr(B)=2/3 and Pr(A|B)=4/5. What is Pr(AB)?
(a)
6/15
(b)
5/15
(c)
7/15
(d)
8/15

13 . Consider three events, A, B, and C in a sample space S. Is the following true or false?
Pr(A(BC))= Pr(A)+Pr(B)  Pr(C).
(a)
None of the above.
(b)
True
(c)
False

14 . Let S be a set of 100 integers; 30 of these are positive and the other 70 integers in S are negative. We choose, uniformly at random, a 20-element subset of S. What is the probability that at least one of the elements in this subset is positive?
(a)
None of the above.
(b)
(301)(7019)/(10020)
(c)
1(7020)/(10020)
(d)
(301)/(10020)

15 . Let S be a set of 100 integers; 30 of these are positive and the other 70 integers in S are negative. We choose, uniformly at random, a 20-element subset of S. Let x be the product of the integers in the chosen subset. What is the probability that x>0?
(a)
1(10020)k=010((702k)+(30202k))
(b)
1(10020)k=010(702k)(30202k)
(c)
1(10020)k=020((70k)+(3020k))
(d)
1(10020)k=020(70k)(3020k)

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)
(7715)((1/3)62+(2/3)15)
(b)
(7715)((1/3)15+(2/3)62)
(c)
(7715)(1/3)15(2/3)62
(d)
(7715)(1/3)62(2/3)15

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 Pr(A|B)?
(a)
25/(52)
(b)
(52)/23
(c)
(52)/24
(d)
(52)/25

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 A and B are not independent.
(c)
The events A and B are independent.

19 . I flip a fair coin, independently, n times. For each heads, you win $3, whereas for each tails, you lose $1. Define the random variable X to be the amount of dollars that you win. What is the expected value of X?
(a)
n
(b)
3n/2
(c)
n/2
(d)
2n

20 . Let G=(V,E) be a graph with vertex set V and edge set E, let n be the size of V, and let m be the size of E. For each vertex of V, flip a fair and independent coin. Let V be the subset of V consisting of all vertices of V whose coin flip resulted in heads. Let E be the set consisting of all edges (u,v) in E for which both u and v are in V. Define the random variable X to be the number of edges in E. What is the expected value of X?
(a)
m/16
(b)
m/2
(c)
m/4
(d)
m/8

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 X and Y 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 X and Y are not independent.
(c)
The random variables X and Y are independent.

22 . One of Lindsay and Simon is chosen uniformly at random. The person that is chosen wins $100. Define the random variables L and S as follows:
  • L = the amount that Lindsay wins
and
  • S = the amount that Simon wins.
Which of the following is true?
(a)
E(L)=100 and E(max(L,S))=100.
(b)
E(L)=100 and E(max(L,S))=50.
(c)
E(L)=50 and E(max(L,S))=50.
(d)
E(L)=50 and E(max(L,S))=100.

23 . Consider the following recursive algorithm TWOTAILS, which takes as input a positive integer k:
Algorithm TWOTAILS(k):
// all coin flips made are mutually independent
flip a fair coin twice;
if the coin came up heads exactly twice
then return 2k
else TWOTAILS(k+1)
endif
You run algorithm TWOTAILS(1), i.e., with k=1. Define the random variable X to be the value of the output of this algorithm. Let k1 be an integer. What is Pr(X=2k)?
(a)
(1/4)k3/4
(b)
(3/4)k1/4
(c)
(1/4)k13/4
(d)
(3/4)k11/4

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 X to be the number of times you roll the pair of dice. What is the expected value of X?
(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.