MCQ
Single Best Answer
Easy
QThe output of 42/6%2 is:
ID: #24152
ICSE Computer Application - Class X - 2025 PYQ
107 views
Question Info
#24152Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 PYQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option 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 ✅
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic