You are on page 1of 9

STUDENT ID NO

MULTIMEDIA UNIVERSITY
SECOND TRIMESTER FINAL EXAMINATION, 2012/2013 SESSION

DCS 5028 DISCRETE STRUCTURES


(Diploma)

30 JANUARY 2013 9.00 A.M 11.00 A.M (2 Hours)

____________________________________________________________________________ INSTRUCTIONS TO STUDENT 1. This Question paper consists of 8 pages (excluding the cover page). There are TWO sections in this Question paper. Please attempt ALL questions in the two sections. Section A: Multiple Choice Questions, Question 1 15 (30 marks) Section B: 3 Structured Questions (70 marks) 2. For Section A, please mark your answers in the OMR sheet provided. 3. For Section B, please write your answers in the Answer Booklet provided.

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

SECTION A: MULTIPLE CHOICE QUESTIONS (each question 2 marks) Answers for this section should be shaded on the OMR form. 1. Which of the following compound proposition is TRUE? A. B. C. D. If 1 + 1 = 2 then 2+2 = 3. 1 + 1 = 2 if and only if 1 0 =0. If 1 +1 = 3 or 1 + 1 = 11 then 2 + 2 = 3. If 1 + 1 = 2 and 1 0 = 1 then 2 + 2 = 3.

2.

Given that proposition r is FALSE, proposition s is TRUE and proposition t is TRUE, which of the following proposition is TRUE? A. B. C. D.

3.

Let P(x) denote the statement {0, 1, 2, 3, 4}. Which of the statement below is TRUE? A. B. C. D. , counterexample is 4. The truth value for is TRUE. The truth value for is FALSE. P(1) is FALSE.

, where the universe of discourse is

4.

Use Hypothetical Syllogism rule to fill in valid conclusions for the argument below: If Samatha gets GPA = 4.00 in this trimester, then she will further her study. If Samatha further her study, then she will become a lawyer. A. B. C. D. If Samatha further her study, then she gets GPA=4.00. If Samatha gets GPA = 4.00 in this trimester, then she will become a lawyer. If Samatha will become a lawyer, then she gets GPA = 4.00. If Samatha gets GPA4.00, then she will not become a lawyer.

Continued
NSH/MAS 1/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

5.

Let p, q, and r be the propositions: p: The input for height is 5. q:The input for width is 6. r: The area of a rectangle is 5 * 6 = 30. Express the following English sentence using appropriate propositions and logical connectives. The area of a rectangle is 5 * 6 =30 if the input for height is not 5 and the input for width is not 6. A. B. C. D.

6.

A = {a,b,c,d}. How many subsets does the set A have? A. B. 4 6 C. 16 D. 65

7.

Which of the following statement is FALSE about set A= {1,2,3}? A. B. C. D. A= {1,2,3} is equal to B = {3,1,2,2} The number of elements in power set of A is 8. |A|=3 {1,2,3} is a proper subset of A.

8.

The relation R on {x,y,z} where R= {(x, x), (y,y),(z,z), (x,z), (x,y), (y,z)} is: A. B. C. D. Reflexive, Symmetric, Not Antisymmetric, Transitive Reflexive, Not Symmetric, Antisymmetric, Transitive Reflexive, Not Symmetric, Not Antisymmetric, Transitive Not Reflexive, Symmetric, Antisymmetric, Transitive

Continued
NSH/MAS 2/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

Question 9-11 will be based on the following information:Let the Universal Set, U = {x | x is a positive even number less than 24}. Let P = {4, 6, 8, 12, 20}, Q = {2, 6, 10, 16, 18, 22} and R = {2, 4, 6, 10, 12, 18, 22}. 9. What are the elements of A. B. 10. {4, 8, 14,16, 20,24} {2, 6, 10, 18, 22} ? C. {8, 14, 20} D. {4,8,14, 12, 16,20}

What are the elements of ? A. B. {14, 16} {16} ? C. {4, 6, 12} D. {8, 12, 20} C. {2, 8, 10, 14, 16, 18, 20, 22} D. {8, 14, 20}

11.

What are the elements of A. B. {8, 14, 20} {8, 20}

Question 12- 13 will be based on the information below: There is a survey about hobbies conducted on 250 teenagers. From the survey, it concluded that 30 teenagers like bowling, swimming and singing; 50 like swimming and singing; 65 like bowling and singing; 55 like bowling and swimming; 90 like swimming; 122 like bowling; and 111 like singing.

12.

How many teenagers like swimming and singing but not bowling? A. B. C. D. 50 20 61 110

13.

How many teenagers like bowling or singing or swimming? A. B. C. D. 30 250 73 183 Continued

NSH/MAS

3/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

Question 14- 15 will be based on the information below: 14. Given a box containing 12 balls, of which 8 are blue and 4 are red. In how many ways 2 blue balls and 3 red balls been chosen? A. B. C. D. 15. 672 112 338 6

Jones is the Chairman of a committee. In how many ways can a committee of 5 be chosen from 10 people given that Jones must be one of them? A. B. C. D. 126 252 495 3024

SECTION B:STRUCTURED QUESTIONS(TOTAL:70 Marks) Answer all questions and show necessary workings in the answer booklet provided. QUESTION 1 (25 Marks) A. By using mathematical induction, prove that the equation below is TRUE for every positive integer n. [9M]

B. Explain and trace the following program segment if the values for a=95, b= 75, c = 0 and d = 0. Give the final value for a, b, c and d. [4M] Line 1: Line 2: Line 3: Line 4: Line 5: Line 6: c= a+b; if (c>100) d =c*0.20; if (c>150) d= c * 0.25; d=c-d;

Continued
NSH/MAS 4/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

C. Consider the following function: int fun(int x, int y) { if (x==y) return 0; else return x+ fun(x+1,y); } Show the tracing process to derive the result by this function call: fun(4,7). D. By using the Euclidean Algorithm, find : i. GCD for the numbers of 225 and 115. ii. The value of s and t satisfying that 225s + 115t = GCD (225, 115). iii. LCM (225, 115)

[5M]

[2M] [3M] [2M]

QUESTION 2 (25 Marks) A. Given the following Graph A: a b

c GRAPH A

Determine whether Graph A is planar. If yes, state the number of faces, vertices and edges and sketch a graph to show that no edges cross each other. [2M]

Continued
NSH/MAS 5/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

B. For the following Graph B: i. Determine whether the Graph B is bipartite. Specify the disjoint sets. ii. Find if any, Euler circuit and provide the path sequence. Explain. iii. Find if any, Hamiltonian circuit and provide the path sequence. Explain. A B

[4M] [2M] [2M]

D C

E
F GRAPH B

C. Construct a binary search tree from the following information. DO WHAT YOU LOVE AND THE MONEY WILL SURELY FOLLOW.

[5M]

D. Derive the order in which the binary tree is processed using inorder and preorder traversal. [6M]
J K M N L O Q

P
R

S T

Continued
NSH/MAS 6/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

E. Determine the minimum spanning tree using Prims algorithm. State the order of the edges that are added to the solution. Then, find the total minimum weighted edges. [4M] J 2 K 5 3 7 L 8 4 7 6 7 M

QUESTION 3 (20 Marks) A. Write the logical expressions that corresponding to these circuits. i. x y [6M]

ii. a b c d

B. Based on the following Boolean expression:

i. Draw the Karnaugh map ii. Write the minimized expression

[5M] [2M]

Continued
NSH/MAS 7/8

DCS5028

DISCRETE STRUCTURES

30 JANUARY 2013

C. Given a finite state automaton table (I, O, S, f, g, S0): I ={x, y, z}, S ={So, S1, S2, S3, S4}, A= {S2, S3, S4}. Draw the transition diagram of the finite-state automaton. [7M] f y
S2 S0 S2 S1 S4

I S
S0 S1 S2 S3 S4

x
S1 S3 S3 S3 S3

z
S3 S1 S0 S2 S2

End of Page.
NSH/MAS 8/8

You might also like