Professional Documents
Culture Documents
1. *When the addition of two valid 4 bit BCD results in an invalid 4 Bit BCD code, what must be
added to the result to make the code valid?
2. *
3. *Evaluate 104
7. Where N is the number of variables in a Boolean How many rows would a truth table representing
the following expression have (not including the row headers)? (A VB)V C V D
10. *X OR 1=?
Section B
Answer Ten of 15
3.Let U = {1,2,3,4,5,6,7,8,9,10}, S = {2,4,6,7}, and T = {x | x < 10 and x belongs to the odd counting
numbers}. Find: S' and T'
7. *Convert and add the following two numbers in 4 BIT BCD: 9 and 8
13. Write out the truth table for the proposition (A^B)^C
14.
15. *Name the two sets and explain briefly the difference between them, mentioning the terms
Proper Subset and Subset in your answer.
A A
3
5 B B
5
8 3
8 4 4
12 9 7 12 9 7
Section C
Answer any two (2) questions from the four (4) questions listed in this section
1a. Write an algorithm for a program which requests a 10 numbers from a user then sorts them
in order of largest to smallest.
1b. Draw a flow chart to represent the solution to the problem stated in question 1a of Section C
(above).
1c. Why is the writing of pseudocode a vital part of solving computer related problems?
2a. *Draw a venn diagram to represent the following scenario: 100 people seated at different tables
in a Mexican restaurant were asked if their party had ordered any of the following items:
margaritas, chili con queso, or quesadillas
29 people had ordered chili con queso or quesadillas but did not order margaritas.
13 people had ordered margaritas and quesadillas but had not ordered chili con queso.
2b. Let a card be selected at random from an ordinary pack of 52 cards. Let A= {the card is a
spade} and B = {the card is a face card}. What is P(A), P(B) and P(A ∩ B)?
2c. Let a pair of dice be tossed. If the sum is 6, find the probability that one of the dice is 2.
3b. Simplify the expression [A ^ (¬A v B)] v B Using K Maps the Laws of Boolean Algebra
4 3 2 5
7 2
9 0 1 6
4c. ?
Detail the process of adding the 3x3 Matrix above and show the result as part of your answer.
Vectors and Matrices
Diagram
2. B – not possible
4. 13579
Section B