Capital University of Science and Technology
Capital University of Science and Technology
Technology
Department of Computer Science
CS2053– Discrete Structures
Midterm Exam (BS CS)
Semester: Spring 2021 Max Marks: 40
Date: May 22, 2021 Time: 90 Min
Instructors: Mr. Awais Haider (S4)
Instructions:
There are FOUR questions on TWO pages. Attempt all questions.
This exam carries 20% weight towards course evaluation.
PART I
II. You have these premises a→b,~c∨d, a∨c,~(~b→d). drive a valid conclusion
using rule of inferences.
I. Prove that If x and y are real positive integers and √ xy is not equal
2 x +4 y−2 y
then x≠ y
4
I. How many set of functions can be form with domain ($,&,%) and co-domain
(p,q,r). Write all set of functions and also their names.
1 0
II. Find A[n] for all positive integers n. if A=
1 1
3
p +2 p+ 7
III. Let f (p) = ⌈ ⌉ Find f (x) if
2
a) x = {your date of birth}. b) x = {your registration number digit}.
Note: for example your date of birth is 12-04-1990 so x={1,2,0,4,1,9,9,0}, and if your
registration number is BCS 203111 then x={2,0,3,1,1,1}
n 1 2 3 4 5 6 7 8 9 10 11 12
an 0 1 2
bn 1 0 1
an+1
100
III. Find ∑ (( j+ 1)2− 1j )
j=2