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

Find the slope of a line perpendicular to 2y = -6x +8
What was george h.w. bush's response to nelson mandela's release from prison?bush met with him publicly.bush cut diplomatic ties with south africa.bush announce
The value of x is..............???​
what statement best describes a mixed market economy
Which is one way to revise for word choice?
6. The ratio of red ribbons to green ribbons is 4 to 6. If there are a total of 30 red ribbons, then how many green ribbons are there?
how are cars made in georgia
Which of the following gases is the best choice for inflating a balloon that must remain inflated for a long period of time?
why is it easier for water to flow through rock and sediment with larger pores than through rock and sediment with smaller pores
if my friend and i went to get ice cream, I have $30 and each ice cream is $5. What equation would help me solve this?