McqMate
| Q. |
What will be the value of the following Python expression? 4 + 3 % 5 |
| A. | 4 |
| B. | 7 |
| C. | 2 |
| D. | 0 |
| Answer» B. 7 | |
|
Explanation: the order of precedence is: %,+. Hence the expression above, on simplification results in 4 + 3 = 7. Hence the result is 7. |
|
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet