adplus-dvertising
frame-decoration

Question

What is the order of precedence in python?

i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction

a.

i,ii,iii,iv,v,vi

b.

ii,i,iii,iv,v,vi

c.

ii,i,iv,iii,v,vi

d.

i,ii,iii,iv,vi,v

Posted under Python

Answer: (a).i,ii,iii,iv,v,vi

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the order of precedence in python? i) Parentheses ii) Exponential iii) Multiplication iv) Division v) Addition vi) Subtraction

Similar Questions

Discover Related MCQs

Q. What is answer of this expression, 22 % 3 is?

Q. Mathematical operations can be performed on a string. State whether true or false.

Q. Which of these in not a core data type?

Q. Given a function that does not return any value, What value is thrown by default when executed in shell.

Q. Which of the following will run without errors ?

Q. What is the return type of function id ?

Q. In python we do not specify types,it is directly interpreted by the compiler, so consider the following operation to be performed.

>>>x = 13 ? 2

objective is to make sure x has a integer value, select all that apply (python 3.xx)

Q. What data type is the object below ?

L = [1, 23, ‘hello’, 1].

Q. In order to store values in terms of key and value we use what core data type.

Q. Which of the following results in a SyntaxError ?

Q. The following is displayed by a print function call:

tom
dick
harry

Select all of the function calls that result in this output

Q. Select all options that print:

hello-how-are-you

Q. What is the return value of trunc() ?

Q. What is the output of print 0.1 + 0.2 == 0.3?

Q. Which of the following is not a complex number?

Q. What is the type of inf?

Q. What does ~4 evaluate to?

Q. What does ~~~~~~5 evaluate to?

Q. Which of the following is incorrect?

Q. What is the result of cmp(3, 1)?