Computer AwarenessVery hardIBPS PO Mains · SBI PO Mains

In Excel, A1 = TRUE, A2 = 2 and A3 holds the text "3". What do =SUM(A1:A3) and =SUM(TRUE, 2, "3") return respectively?

  1. A. 6 and 6
  2. B. 2 and 2
  3. C. 2 and 6
  4. D. 6 and 2

Correct answer: C. 2 and 6

SUM ignores logical values and numbers stored as text inside a range, so the first gives 2. Typed directly as arguments, TRUE counts as 1 and "3" as 3, so the second gives 6.

हिंदी में

Excel में A1 = TRUE, A2 = 2 है और A3 में पाठ "3" है। =SUM(A1:A3) और =SUM(TRUE, 2, "3") क्रमशः क्या लौटाते हैं?

  1. A. 6 और 6
  2. B. 2 और 2
  3. C. 2 और 6
  4. D. 6 और 2

उत्तर: C. SUM रेंज के भीतर तार्किक मानों और पाठ के रूप में संग्रहीत संख्याओं को अनदेखा करता है, इसलिए पहला 2 देता है। सीधे तर्क के रूप में टाइप करने पर TRUE 1 गिना जाता है और "3" 3, इसलिए दूसरा 6 देता है।

More MS Office, Internet and Cyber Security questions

Exams that ask this topic