You are on page 1of 4

1. SHA-512 is a hash function that maps a message of any length to a digest, which is binary string of size 512.

What is the total number of possible digests that could be generated from all messages? 2. How many byte values have an equal number of 1s and 0s? 8! = 70 4!4! 3. When tossing a fair coin four times, how many events will form a full group of events? List all of these events in which the first toss results in a heads. 4. What are the odds that a randomly selected number between 1 and 100 will not have a digit 7? (For instance, 23 does not have a digit 7, but 73 does.) Set of numbers between 1 and 100 having a digit 7 = {7,17,27,37,47,57,67,70,71,72,73,74,75,76,77,78,79,87,97} There are 19 numbers between 1 and 100 that have digit 7. There are 100 19 = 81 numbers that do not have digit 7. Odds that a randomly selected number between 1 and 100 will not have a digit 7 = 81 19

5. There are 4 slots, each containing any of letters a, m, h, t. What are the odds that letters stored in these slots read the word math?

6. Consider strings of length 9 with elements being a, b or c. How many strings will contain at least 6 bs? possible number of a,b and c.
a b c 0 6 3 1 6 2 2 6 1 3 6 0 0 7 2 1 7 1 2 7 0 0 8 1 1 8 0 0 9 0

Number of strings that contain at least 6 bs = 9! 9! 9! 9! 9! 9! 9! 9! 9! 9! + + + + + + + + + 0!6!3! 1!6!2! 2!6!1! 3!6!0! 0!7!2! 1!7!1! 2!7!0! 0!8!1! 1!8!0! 0!9!0!

= 84 +252 + 252 + 84 + 36 + 72 + 36+ 9 +9 + 1 = 835

7. Let A (4,3) and B (7,11) be two points in a plane. If all paths are equally likely, what would be the probability of choosing a path that begins with an up move and ends with an up move? (Each path is made up of moves that either go up one unit or over one unit to the right.) B (7,11) is 8 units up and 3 units to the right of A (4,3). 11! = 165 8!3! Number of paths that begins with an up move and ends with an up move 9! = =84 6!3! Total number of paths = probability of choosing a path that begins with an up move and ends with an up move = 84 165 28 55

8. In a state lottery game, anyone who picks 6 numbers out of 36 wins $50,000, no matter how many people correctly guessed the winning numbers. What are the odds of winning in this game?

1 1 Probability of winning = 36 = 1,947,792 6 1 Probability of losing = 1 1,947,792 1 1 1,947,792 Odds of winning = = 1 1,947,791 1 1,947,792

9. The first three characters of a car license plate number are letter characters. a) Whats the probability of the first three characters being BAZ? b) Whats the probability of the second character being K? c) Whats the probability that the first character is either A, B, or C? 10. A cube has all of its sides painted in red and then is cut into 216 cubes of the same size. All cubes are placed in an urn and are thoroughly mixed, so that the probability of being randomly picked from the urn is the same for all cubes. What is the probability that a randomly picked cube has at least one of its sides painted red? The table only shows one side of a big cube. The number indicates the number of faces of small cubes that are painted in red
3 2 2 2 2 3 2 1 1 1 1 2 2 1 1 1 1 2 2 1 1 1 1 2 2 1 1 1 1 2 3 2 2 2 2 3

From the above table, there are 16 cubes with one side painted red. There are 16 cubes with two sides painted red. There are 4 cubes with three sides painted red The number of cubes with at least one of its sides painted red is equal to = (16 6) + (16 3) + ( 4 2 ) = 152 probability that a randomly picked cube has at least one of its sides painted red

152 216 19 27 11. There are ten raffle tickets, two of which are winners. Find the probability that in a sample of 6 tickets there will be no more than one winning ticket. 2 8 2 8 0 6 1 5 + Probability = 10 10 6 6 28 112 + = 210 210 140 = 210 2 = 3

You might also like