Discrete Math: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. Which connective is false only when p is true and q is false?
2. What is the contrapositive of 'if it rains then the ground is wet'?
3. How many subsets does a set with 6 elements have?
4. What is the value of C(6, 2)?
5. What is 100 mod 7?
6. The degrees of a graph are 4, 3, 3, 2. How many edges does it have?
7. Which of these is the negation of 'for every x, P(x)'?
8. To prove 'if n squared is even then n is even' you can prove the contrapositive, which is...
9. In an induction proof, the inductive step shows that...
10. An equivalence relation is reflexive, transitive and...
11. A function from a 5-element set to a 5-element set is onto. Is it one-to-one?
12. There are 13 people. At least how many share a birth month?
13. What is gcd(a, b) if the numbers a and b are coprime?
14. A tree has 7 vertices. How many of its edges can you remove and still keep it connected?
15. How many ways can 4 identical sweets be shared among 3 children, a child possibly getting none?
16. The inverse of 7 modulo 40 is...
17. Why does RSA decryption return the message?
18. In BFS from vertex s, a vertex first reached at step 3 is at distance...

Practical assessment:

Final project

A mini RSA: Implement the RSA cipher from scratch with small primes: make a key pair, encrypt and decrypt messages, and show why knowing only the public key is not enough once the primes are large.

How it is evaluated

To complete this course