What will be the output of the following statement? Print (14 % 3 ** 2 * 4)
2025
What will be the output of the following statement? Print (14 % 3 ** 2 * 4)
- A.
16
- B.
64
- C.
20
- D.
256
Attempted by 966 students.
Show answer & explanation
Correct answer: C
To evaluate the expression Print (14 % 3 ** 2 * 4), we must follow the order of operations (operator precedence).
Step 1: Evaluate exponentiation first: 3 ** 2 = 9.
Step 2: Perform the modulo operation: 14 % 9 = 5.
Step 3: Multiply the result by 4: 5 * 4 = 20.
Thus, the output of the statement is 20.
हिन्दी उत्तर:
व्यंजक Print (14 % 3 ** 2 * 4) को हल करने के लिए, हमें ऑपरेटर प्राथमिकता का पालन करना होगा।
चरण 1: सबसे पहले घातांक की गणना करें: 3 ** 2 = 9।
चरण 2: मॉड्यूलो ऑपरेशन करें: 14 % 9 = 5।
चरण 3: परिणाम को 4 से गुणा करें: 5 * 4 = 20।
इसलिए, विधि का आउटपुट 20 है।