monkeypants101176 monkeypants101176
  • 09-05-2022
  • Computers and Technology
contestada

100 POINTS
What error will occur if this is the first line of a program?

num = 100/0

A.
NameError

B.
ZeroDivisionError

C.
TypeError

D.
SyntaxError

Respuesta :

djmolly9
djmolly9 djmolly9
  • 09-05-2022

Answer:

D. syntax error

Explanation:

num = 100/0 ;

Answer Link
Аноним Аноним
  • 14-05-2022

ZeroDivisionError

See

  • any no divided by 0 tends to infinity or equal to infinity
  • In math it's applicible but not in python or other codings.

So option B is correct

Answer Link

Otras preguntas

multiplying polynomials(3m-1)(8m+7)
A garden table and a bench cost $985 combined. The garden table costs $35 more than the bench. What is the cost of the bench?
Evaluate the expression, using the given value of the variable. 2 – 8x + 3x when x = 5   A. –53
What do you need to know to describe velocity?
MULTIPLY POLYNOMIALS (8p-2)(6p+2)
What is .03 as a percent and degree?
Select the first five terms in the arithmetic sequence an = 4n, starting with n = 1.
Patrick owns an apartment building. He knows that the money he earns in a month depends on the rent he charges. The relationship can be modelled by E=1/50R(1650
multiply polynomials(6p+8)(5p-8)
The energy required to completely separate the ions from a solid is (A) free energy (B) lattice energy (C) kinetic energy (D) activation energy (E) ionization e