Functions · Discrete Mathematics
12 questions · asked in 9 of 27 years (2000–2026)
MCQ 8 · MSQ 2 · NAT 21-mark 8 · 2-mark 4
2000Questions per year2026
Questions 6–10 of 12
If and , then is:
Answer: (A)
Check each part:
- Find g(h(x)):
- Find h(g(x)):
The ratio:
Also, h(x)/g(x): , which is the same.
Answer:
- Find g(h(x)):
- Find h(g(x)):
The ratio:
Also, h(x)/g(x): , which is the same.
Answer:
Let S denote the set of all functions f:. Denote by N the number of functions from S to the set {0,1}. The value of is______.
Answer: 16
Size of the domain: , so .
Number of functions from S to {0, 1}: .
Final value:
Answer: 16
Number of functions from S to {0, 1}: .
Final value:
Answer: 16
Consider the set of all functions f:{0,1,...,2014}{0,1...,2014} such that f(f(i))=i, for 0i2014 . Consider the following statements.
P. For each such function it must be the case that for every i, f(i) = i,
Q. For each such function it must be the case that for some i,f(i) = i,
R. Each such function must be onto.
Which one of the following is CORRECT?
P. For each such function it must be the case that for every i, f(i) = i,
Q. For each such function it must be the case that for some i,f(i) = i,
R. Each such function must be onto.
Which one of the following is CORRECT?
Answer: (B)
f(f(i)) = i says that f is its own inverse. So f is a bijection and R is true.
- P is false. f can swap a pair, for example f(0) = 1 and f(1) = 0.
- Q is true. f divides the 2015 elements into fixed points and swapped pairs. 2015 is odd, so there must be at least one fixed point.
Answer: Only Q and R are true
- P is false. f can swap a pair, for example f(0) = 1 and f(1) = 0.
- Q is true. f divides the 2015 elements into fixed points and swapped pairs. 2015 is odd, so there must be at least one fixed point.
Answer: Only Q and R are true
How many onto (or surjective) functions are there from an n-element ( ) set to a 2-element set?
Answer: (C)
Count every function into the set {a, b}: . Take away the 2 constant functions (everything goes to a, or everything goes to b), because they are not onto.
Answer:
Answer:
Let be a function from a set A to a set B, a function from B to C, and a function from A to C, such that for all . Which of the following statements is always true for all such functions and ?
Answer: (C)
Here . Assume is onto C. Take any . Then some has . So is an element of B with . Every c has a preimage under g, so is onto. This proves (C).
The other options fail:
- (A): take , , , and g the identity. g is onto, but reaches only , so it is not onto.
- (B) and (D): take , , , , and . Then h is onto but f is not onto (it misses ).
Answer: (C)
The other options fail:
- (A): take , , , and g the identity. g is onto, but reaches only , so it is not onto.
- (B) and (D): take , , , , and . Then h is onto but f is not onto (it misses ).
Answer: (C)
Keep practising