0% found this document useful (0 votes)
9 views

DICS 1106 DISCRETE STRUCTURES

This document is an examination paper for a Diploma in Computer Science course at St. Paul's University, focusing on Discrete Structures. It includes compulsory and optional questions covering topics such as set theory, Boolean algebra, mathematical induction, and logic. The exam is structured into sections with a variety of question types, including definitions, proofs, and problem-solving exercises.

Uploaded by

colindeveloper4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

DICS 1106 DISCRETE STRUCTURES

This document is an examination paper for a Diploma in Computer Science course at St. Paul's University, focusing on Discrete Structures. It includes compulsory and optional questions covering topics such as set theory, Boolean algebra, mathematical induction, and logic. The exam is structured into sections with a variety of question types, including definitions, proofs, and problem-solving exercises.

Uploaded by

colindeveloper4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ST.

PAUL’S UNIVERSITY

UN
P A U L ’
Private Bag 00217 Limuru, 00217, KENYA

I VE R S I TY
Tel: 020-2020505/2020510/0728-669000/0736-424440
.
S T

SE R TY
VANT
S OF GO D AND HUMANI

SCHOOL OF COMMUNICATION AND COMPUTER STUDIES


DIPLOMA IN COMPUTER SCIENCE
MAY - AUGUST 2022/2023 SEMESTER
DICS 1106: DISCRETE STRUCTURES

DATE: AUGUST, 2023 TIME: 2 hours


INSTRUCTIONS
Section A is compulsory. Answer any other two questions in section B.

SECTION A (COMPULSORY – this section carries 30 Marks)


a) Explain the following terms:
i. Set (1 Mark)
ii. Proposition (1 Mark)
iii. Truth table (1 Mark)
b) Given the sets A = {2, 4, 5, 6, 7, 8, 10}, B = {3, 5, 7, 9}and U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
use Venn diagrams to represent the following;
i. AUB (3 Marks)
ii. ¬ (A  B) (3 Marks)
iii. ¬A  B (3 Marks)
c) Evaluate the following expressions:
i) 25 (mod7) (1 Mark)
ii) 25 (mod5) (1 Mark)
iii) −35 (mod 11) (2 Marks)
iv) −3 (mod 8) (2 Marks)
d) Simplify the expression below early showing your working. (3 Marks)
14!
P (7 , 2 ) 
1 1!

e) Prove that A ( A + B) = A using Boolean algebra. (3 Marks)


f) Show the validity of the following statements using a truth table:
i) ((P∨H)˄¬H)⇒ P (3 Marks)
ii) P∨Q ⇔ Q∨ P (3 Marks)

Page 1 of 3
SECTION B (answer ANY TWO. Each question carries 20 Marks)

QUESTION TWO
a) Let U be a universal set and let A, B and C be subsets of U. State the following laws
i. Commutative law (2 Marks)
ii. Associative law (2 Marks)
b) Discuss how to use an arrow diagram to determine the following functions;
i. One-to-one function (3 Marks)
ii. Onto function (3 Marks)
c) Use mathematical induction to prove the proposition P ( n ) that the sum of the squares of the
1
P ( n )  1  2  3  ...  n  n ( n  1)( 2 n  1)
2 2 2 2
first n integers is: . (6 Marks)
6
d) Explain two methods that can be used for proofs in discrete mathematics. (4 Marks)

QUESTION THREE
a) Prove that P→ Q ↔ (¬P ˅ Q) is a tautology (4 Marks)
b) By use of examples briefly describe the following terms;
i. Universal sets (2 Marks)
ii. Disjointed sets (2 Marks)
c) Show that the conditional proposition P→Q and its contra positive P→ Q are logically
~ ~

equivalent (6 Marks)
d) In a survey of 120 people, it was found that: 65 read Newsweek magazine, 20 read both
Newsweek and Time, 45 read Time, 25 read both Newsweek and Fortune, 42 read Fortune,
15 read both Time and Fortune, and 8 read all three magazines. Find the number of people
who read at least one of the three magazines. (6 Marks)

QUESTION FOUR
a) Differentiate between the following terms;
i. Simple proposition and compound proposition (2 Marks)
ii. Tautology and contradiction (2 Marks)
iii. Permutation and combination (2 Marks)
b) Given that U ={a,b,c,d,e,f,g,h}, A={c,d,e,f} and B={b,c,d,g}. Find;
i. AB (3 Marks)
ii. A U B (3 Marks)
c) Find the inverse of the function F(x) =-3+5/2x-3 (3 Marks)
d) Some of the results of the campus blood drive survey indicated that 490 students were
willing to donate blood, 340 students were willing to help serve a free breakfast to blood
donors, and 120 students were willing to do both. Using a Venn diagram determine the
number of students who were willing to donate blood or serve breakfast? (5 Marks)

Page 2 of 3
QUESTION FIVE
a) Represent the following Boolean expressions using logic gates:
i) A(B + C) (4 Marks)
ii) (A+B)(BC) (4 Marks)
b) Simplify the propositional logic expression below:
Z= (A + B)(A + C)(B + C) (4 Marks)
c) Derive the simplified Boolean expression for the logic circuit shown below (4 Marks)

d) Calculate the number of permutations of the letters ABCDEFGH that contain the string
ABC as a (consecutive) substring. (4 Marks)

Page 3 of 3

You might also like