Chapter 6 Practice Test
Chapter 6 Practice Test
Chapter 6: Congruences
INSTRUCTIONS: Answer each question below. Once you finish taking the test, check
the answers provided in the Answer Key at the end of this test.
7. How many choices are there for the digit x be so that 235x4 is divisible by 6?
A: 1
B: 3
C: 4
D: 7
8. How many choices are there for the digits x and y so that 37542xy is divisible by
8?
A: 10
B: 11
C: 12
D: 13
9. If the first 9 digits of an ISBN are 0-534- 93189, then what is the check digit?
A: 3
B: 6
C: 8
D: X
11. If the first 11 digits of a12 digit UPC are 0 74182 29082, then what is the check
13. Could 4368 2358 9683 1135 be a Master card or a Visa card number?
A: Mastercard
B: Visa
C: neither
D: could be either
14. If is 4368 2358 9683 1135 a Master card or a Visa card number, what is the check
digit?
A: 4
B: 5
C: 3
D: cannot be determined
15. Is 4368 2358 9683 1135 a valid Master card or a Visa card number?
A: no, because of the leading digit
B: yes
C: no, because of the last digit
D: cannot be determined
18. How many solutions does 15x 7( mod 19) have modulo 19?
A: 0
B: 1
C: 7
D: 14
x 2 (mod 3)
x 1 (mod 5)
x 3 (mod 7)
22. Find the positive integer m < 105 that has modular representation (2,1,3) with
respect to the moduli 3, 5, and 7.
A: 101
B: 93
C: 1
D: there is not one
23. Find the smallest positive integer greater than 100 that when divided by 2, 5, and
7 leaves a remainder of 1, 2, and 4 respectively.
A: 133
B: 137
C: 167
D: there is not one
24. Suppose there are five workers in a shop and there ID’s are 942, 105, 286, 715,
and 809. Suppose the hash table is of size 7 indexed by 0, 1, 2, ... , 6. If the hash
function h(k) = k (mod 7) will there be collisions?
A: yes, 105 and 715 collide
B: yes, 942 and 286 collide
C: yes, 942 and 809 collide
D: no there are no collisions
1. A 2. A 3. C 4. B 5. C 6. D 7. B 8. D 9. C 10. C
11. B 12. A 13. B 14. B 15. C 16. B 17. A 18. B 19. D 20. B
21. A 22. A 23. B 24. C 25. A 26. C 27. B 28. C 29. D 30. A