MCQ Single Best Answer Not Set

QIn mathematics and computer programming, which is the correct order of mathematical operators ?

ID: #1372 Operators and Enums in C Language 18,711 views
Question Info
#1372Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Addition, Subtraction, Multiplication, Division
  • B Division, Multiplication, Addition, Subtraction
  • C Multiplication, Addition, Division, Subtraction
  • D Addition, Division, Modulus, Subtraction
Correct Answer: Option B

Explanation

Option B

Simply called as BODMAS (Brackets, Order, Division, Multiplication, Addition and Subtraction). Mnemonics are often used to help students remember the rules, but the rules taught by the use of acronyms can be misleading. In the United States the acronym PEMDAS is common. It stands for Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. In other English speaking countries, Parentheses may be called Brackets, or symbols of inclusion and Exponentiation may be called either Indices, Powers or Orders, and since multiplication and division are of equal precedence, M and D are often interchanged, leading to such acronyms as BEDMAS, BIDMAS, BODMAS, BERDMAS, PERDMAS, and BPODMAS.

Operator precedence determines the grouping of terms in an expression and decides how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has a higher precedence than the addition operator.

For example, x = 7 + 3 * 2; here, x is assigned 13, not 20 because operator * has a higher precedence than +, so it first gets multiplied with 3*2 and then adds into 7.

Learn More Click Here: Operator Precedance in C Programming Lanaguage

Share This Question

Challenge a friend or share with your study group.