MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2025 PYQ

Q The output of 42/6%2 is:

Question ID
#24152
Subchapter
ICSE Computer Application - Class X - 2025 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A 1
  • B 10
  • C 2
  • D 00
Correct Answer: A

Explanation

The output of \( 42 \div 6 \mod 2 \) is:

  • (a) \( 1 \)
  • (b) \( 10 \)
  • (c) \( 2 \)
  • (d) \( 0 \)

Let's break down the expression step by step:

\[ 42 \div 6 \mod 2 \]

Step 1: Division

\[ 42 \div 6 = 7 \]

Step 2: Modulus Operation

\[ 7 \mod 2 \]

The modulus operator (\%) gives the remainder when dividing 7 by 2.

\[ 7 \div 2 = 3 \text{ remainder } 1 \]

So,

\[ 7 \mod 2 = 1 \]

Final Answer:

(a) 1 ✅

Share This Question

Share this MCQ with your friends or study group.