Python MCQ’s | Basic Operators 2

6.
Operators with the same precedence are evaluated in which manner?

a) Left to Right
b) Right to Left
c) Can’t say
d) None of the mentioned

7.
What is the output of this expression, 3*1**3?

a) 27
b) 9
c) 3
d) 1

8.
Which one of the following has the same precedence level?

a) Addition and Subtraction
b) Multiplication, Division and Addition
c) Multiplication, Division, Addition and Subtraction
d) Addition and Multiplication

9.
The expression Int(x) implies that the variable x is converted to integer.

a) True
b) False

10.
Which one of the following has the highest precedence in the expression?

a) Exponential
b) Addition
c) Multiplication
d) Parentheses

Visitor Counter

0056755