![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-white.png)
McqMate
Q. |
The expression 2**2**3 is evaluates as: (2**2)**3. |
A. | true |
B. | false |
Answer» B. false | |
Explanation: the value of the expression (2**2)**3 = 4**3 = 64. when the expression 2**2**3 is evaluated in python, we get the result as 256, because this expression is evaluated as 2**(2**3). this is because the associativity of exponentiation operator (**) is from right to left and not from left to right. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet