अभिव्यक्ति 3*1**3 का आउटपुट क्या है?
What is the output of the expression : 3*1**3 ?
A
27
B
9
C
3
D
1
Explanation
Let's break down the expression:
3 * 1 ** 3
Step-by-Step Explanation:
-
Operator Precedence:
- The
**operator (exponentiation) has higher precedence than multiplication (*). - So, the expression is evaluated as:
3 * (1 ** 3).
- The
-
Evaluate
1 ** 3: -
1 ** 3means1raised to the power of3, which is1.
-
Evaluate the final multiplication:
- Now the expression becomes
3 * 1, which equals3.
- Now the expression becomes
Answer:
(C) 3
-
पायथन में घातांक (Exponentiation
**) की प्राथमिकता गुणा (*) से अधिक होती है। -
गणना: $3 * (1 ** 3) \rightarrow 3 * 1 = 3$।
Correct Answer: C) 3