Professional Documents
Culture Documents
Score
Full
marks
Name
ID UiTM
TOTAL
30
Lecturer
f : Z Z such that f x x 1.
Sketch the graph of f.
State the domain and range of f.
Determine if the function f is one-to-one. Give a reason for your answer.
Determine if the function f is onto. Give a reason for your answer.
(4 marks)
0.03
4. Find the value of
trunc 2.01
3.4
.
(2 marks)
Figure 1
a.
b.
c.
d.
e.
6. Draw a full binary tree that represents the following mathematical expression.
a
d
c
1
b
xy
Question 2
A 3,2,1,0,1,2,3 and subsets A1 - 3,-1,1,3, A2 - 2,0,2
, hence A1 and A2 form a partition of A.
A1 A2 A and A1 A2 O
Question 3
a.
7
6
5
4
3
2
1
Question 4
0.03
trunc 2.01
3.4
1 4
4
2 16
2
Question 5
a. Path of length 4: A B E H I
b. Eulerian circuit does not exist in the graph because there are vertices with odd
degree.
d.
e.
D
Question 6
^
b
/
x
a. Leaves: a, c, d, b, 1, x, y, 1, 2
b. Ancestors of x: *, / , +, ^
c. Size of the tree: 17