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

Charlene wants to build a fence around her rectangular garden. The garden measures 20 meters by 60 meters.  a. in other to build a fence, does charlene need to
how do flukes breathe? (respiration)
how do flukes breathe? (respiration)
Writing a recursive formula.. 16, 10, 7, 5.5, 4.75... I know a1 is 16. But what is the formula? Help. Lol
where does the blood pick up oxygen
Sediment is deposited as a river enters a lake because the(1) velocity of the river decreases(2) force of gravity decreases(3) volume of water increases(4) slop
What is the radius of the circle given by the equation below?
A sample of chlorine gas is at 300. K and 1.00 atmosphere. At which temperature and pressure would the sample behave more like an ideal gas?(1) 0 K and 1.00 atm
It takes Tom 1 hour to lay 30 bricks. He has to lay 180 bricks. Tom starts to lay the bricks at 9 a.m He has half an hour break at 11 a.m He has another half
|2x-3| < 9 solve for x