Computer AwarenessHardSBI PO · IBPS Clerk · SSC CGL

What does the Excel formula =-2^2 return?

  1. A. 4
  2. B. -4
  3. C. 0
  4. D. #VALUE!

Correct answer: A. 4

In Excel, negation has higher precedence than exponentiation, so it is evaluated as (-2)^2 = 4. In ordinary algebra (and in many programming languages) -2² would be -4, which is the trap.

हिंदी में

Excel का सूत्र =-2^2 क्या लौटाता है?

  1. A. 4
  2. B. -4
  3. C. 0
  4. D. #VALUE!

उत्तर: A. Excel में निषेध (negation) की प्राथमिकता घातांक से अधिक होती है, इसलिए इसका मान (-2)^2 = 4 निकलता है। सामान्य बीजगणित (और कई प्रोग्रामिंग भाषाओं) में -2² का मान -4 होता, यही जाल है।

More MS Office, Internet and Cyber Security questions

Exams that ask this topic