1. Home
  2. Data Science
  3. Python
  4. Which Python function returns the absolute value?

Added 16 Sep 2025

Which Python function returns the absolute value?

  1. absolute()
  2. abs() Correct answer
  3. modulus()
  4. value()

Correct answer

B. abs()

15 views

MCQSEXAM

Explanation

The abs() function returns the absolute value of a number (integer, float, or complex).

Reference

Asked in: GATE CS, UGC NET

https://docs.python.org/3/library/functions.html#abs

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs