Confirming your payment

Skip to content

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

Two programmers describe the same search filter in different ways.

Question 61 markMCQMedium

Two programmers describe the same search filter in different ways. In which pair do the two descriptions give equal sets?

Select your answer
  • (A) {x∈R:2∣x∣=x2}\{x \in \mathbf{R} : 2|x| = x^2\} and {x∈Z:∣x∣≤2,x is even}\{x \in \mathbf{Z} : |x| \le 2, x \text{ is even}\}

    Correct answer
  • (B) {x∈N:x2=4x}\{x \in \mathbf{N} : x^2 = 4x\} and {x∈Z:x2=4x and x is not negative}\{x \in \mathbf{Z} : x^2 = 4x \text{ and } x \text{ is not negative}\}

  • (C) {x∈R:x2+1=0}\{x \in \mathbf{R} : x^2 + 1 = 0\} and {x∈R:x2=0}\{x \in \mathbf{R} : x^2 = 0\}

  • (D) {2,4,6,8,…}\{2, 4, 6, 8, \ldots\} and {x∈Z:x=2n for some integer n}\{x \in \mathbf{Z} : x = 2n \text{ for some integer } n\}