Confirming your payment

Skip to content

Competency-Based Questions (CBQ) · Question 26 of 80

A data team must pick an encoder.

Question 261 markMCQMedium

A data team must pick an encoder. An encoder is usable only if it can be decoded: every value of the stated codomain must be produced by exactly one input — that is, the map must be a bijection. Four encoders are proposed.

f1:N→Nf_1:\mathbb{N}\to\mathbb{N}, f1(x)=x2f_1(x)=x^2

f2:R→Rf_2:\mathbb{R}\to\mathbb{R}, f2(x)=x3f_2(x)=x^3

f3:Z→Zf_3:\mathbb{Z}\to\mathbb{Z}, f3(x)=2x+1f_3(x)=2x+1

f4:R→Rf_4:\mathbb{R}\to\mathbb{R}, f4(x)=sin⁡xf_4(x)=\sin x

Exactly one of the four is a bijection. Which statement is completely correct?

Select your answer
  • (A) f1f_1 is the bijection; f2f_2 fails because it is many-one.

  • (B) f2f_2 is the bijection; f3f_3 fails because it is not onto.

    Correct answer
  • (C) f3f_3 is the bijection; f4f_4 fails because it is not one-one.

  • (D) f4f_4 is the bijection; f1f_1 fails because it is not onto.