The output of \( 42 \div 6 \mod 2 \) is:
Let's break down the expression step by step:
\[ 42 \div 6 \mod 2 \]
\[ 42 \div 6 = 7 \]
\[ 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 \]
(a) 1 ✅