Beruflich Dokumente
Kultur Dokumente
Sample Assignment
Page 1 of 2
(a)
(b)
[3 marks]
[2 marks]
(2)
A computer stores the floating number in 16 bit where 1 bit for the sign, 6 bits for the
exponent having a biased or (+31) and mantissa has a hidden bit. Show how the
floating-point value of 20.25 would be represented in that computer.
[6 marks]
(3)
(4)
(5)
Find |A A|.
[2 marks]
(c)
(6)
Let A be the set of students who live within one mile of school and let B be the set of
students who walk to classes. Describe the students in each of these sets.
A B
(a)
[2 marks]
A B
(b)
[2 marks]
B A
(c)
[2 marks]
(7)
Draw a tree diagram to find the number of bit strings of length four that have two 1s.
[5 marks]
(8)
Suppose a group of twelve staff consist of five men and seven women.
(a)
How many five-person teams can be chosen that consists of three men and two
women?
[3 marks]
(b)
How many five-person teams contain at least one man?
Diploma
Sample Assignment
Page 2 of 2
[3 marks]
(9)
Three officers of a president, a secretary, and a treasurer are to be chosen from among
four people. The four people are Alan, Brian, Cindy and Dan.
(a)
How many ways can the officers be chosen?
[2 marks]
(b)
If Alan has to be the president, how many ways can the officers be chosen?
[2 marks]
(c)
If Cindy cant be the treasurer, then how many ways can the officers be
chosen?
[2 marks]
(10)
Two ordinary dice are thrown, giving the individual scores p and q each ranging from
1 to 6.
(a)
How many total possible outcomes of the experiment above?
[2 marks]
(b)
What is the probability that the sum of p and q is exactly 6?
[3 marks]
(c)
What is the probability that p = q?
[3 marks]
(d)
What is the probability that p = q and p + q = 6?
[2 marks]
(Note: List out the possible values of p and q in part (b) to (d))
(11)
p q p q
(a)
Show that
equivalences.
(b)
(c)
(i)
[5 marks]
~ p q q ~ r
[5 marks]
Write a negation for the statement below.
(A)
Today is Wednesday and it is a holiday.
[2 marks]
(B)
x < 2 or x > 5
[2 marks]
(ii)
(12)
(a)
(b)
(13)
Diploma
Diploma
Sample Assignment
Page 3 of 2