nerdexam
Huawei

H13-311_V3.5 · Question #122

The commonly used functions for mathematical operations in Python are basically in lhe math module and the cmath module.

The correct answer is A. True. Option A is correct because Python organizes its mathematical functionality into two primary modules: math (for real number operations like sqrt, log, sin, cos, floor, etc.) and cmath (for complex number operations using the same functions but extended to handle complex…

AI Overview

Question

The commonly used functions for mathematical operations in Python are basically in lhe math module and the cmath module.

Options

  • ATrue
  • BFalse

How the community answered

(44 responses)
  • A
    70% (31)
  • B
    30% (13)

Explanation

Option A is correct because Python organizes its mathematical functionality into two primary modules: math (for real number operations like sqrt, log, sin, cos, floor, etc.) and cmath (for complex number operations using the same functions but extended to handle complex inputs). These two modules together cover the vast majority of mathematical operations a Python programmer needs beyond basic arithmetic operators. Option B is wrong because it would imply these modules don't exist or aren't commonly used, which contradicts Python's standard library design - both modules are part of Python's built-in standard library and are widely documented and used.

Memory tip: Think "math = mundane (real) numbers, cmath = complex numbers" - the c prefix tells you it handles complex numbers, while plain math handles everyday real-number calculations.

Topics

#Python standard library#math module#cmath module#mathematical operations

Community Discussion

No community discussion yet for this question.

Full H13-311_V3.5 Practice