Question 1
If f: A → B and g: B → C are functions, what is the composite function g ∘ f?
g(f(x)) for all x in A
f(g(x)) for all x in B
Both A and B
Both A and B
Question 3
Which of the following is not a type of function?
One-to-one function
Onto function
Objective function
Bijective function
Question 4
Which of the following statements about functions is not correct?
A one-to-one function maps each element of the domain to a unique element in the range.
An onto function maps every element of the range to at least one element in the domain.
A bijective function is both one-to-one and onto.
A injective function can have multiple elements in the range corresponding to the same element in the domain.
Question 5
The function f:R→R defined by f(x)=(x−1)|(x−2)(x−3)| is
One-one but not onto
Onto but not one-one
Both one-one and onto
Neither one-one nor onto
Question 6
Let f: N → N defined by f(x) = x2 + x + 1, x ∈ N, then f is
One-one onto
Many-one onto
One-one but not onto
None of These
Question 7
If f:[0, ∞)→[0, ∞) and f(x) = x/(1 + x), then f is
One-one and onto
One-one but not onto
Onto but not one-one
Neither one-one nor onto
Question 8
What is a function used for in real life?
Just for decoration
To relate inputs to outputs
To memorize numbers
To draw pictures
Question 9
What is the purpose of a function in programming?
To make code harder
To repeat code unnecessarily
To break code into reusable parts
To decorate websites
Question 10
Which of the following is an advantage of using functions in programming?
Increases code length
Makes debugging harder
Helps reuse code and reduce repetition
Confuses new programmers
There are 10 questions to complete.