Question: 16 -
Which one of the following has the same precedence level?
-
Power and Division
-
Subtraction and Division
-
Division and Multiplication
-
Division, Power, Multiplication, Addition and Subtraction
Answer:
Division and Multiplication
Solution not available.
Question: 17 -
Which one of the following has the highest precedence in the expression?
-
Parentheses
-
Subtraction
-
Division
-
Power
Answer:
Parentheses
Solution not available.
Question: 18 -
Which of the following precedence order is correct in Python?
-
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
-
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
-
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
-
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Answer:
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Solution:
PEMDAS (similar to BODMAS).
PEMDAS (similar to BODMAS).
Question: 19 -
Which of the following is correctly evaluated for this function?pow(x,y,z)
-
(x**y) % z
-
(x**y) / z
-
(x / y) * z
-
(x / y) / z
Answer:
(x**y) % z
Solution not available.
Question: 20 -
Which of the following functions is a built-in function in python language?
-
printf()
-
val()
-
print()
-
None of these
Answer:
print()