This question was asked in Example 3

Is it necessary to take 1or 0 in these types of questions.

Google user's image