1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Fantom [35]
3 years ago
13

It is important to program your code efficiently. Efficient code manages errors and exceptions and cleans up memory after it end

s. The try-except statements are helpful in handling errors that are detected during execution. What are the two categories of errors when debugging code
Computers and Technology
1 answer:
BabaBlast [244]3 years ago
8 0

Answer:

1. Logical errors

These aren't actually errors, in that they compile correctly and run and finish executing.

These are errors, that produce results that don't match with what was intended by the programmer.

For e.g. if you write a program that computes 2+2, your expected result would be 4. If the program is outputting 5 or something other than 4, then you have made a logical error.

////////////////////////////////////////////////////////////////////////////////////////////////////

2. Run-time errors

Run time errors are errors that happen when the code is executing. It's not raised when compiling.

Run time errors occurs when you try to access unassigned memory, like accessing an index of array that is out of bounds.

Run time errors also occurs when your program requires too much of memory from the OS (Stack overflow).

Termination of program (or program crashes) is the result of run time errors.

You might be interested in
Play station account
Reika [66]
I have a PlayStation as well
4 0
3 years ago
Read 2 more answers
Virus warning don’t go on bit l y links it’s a virus
Alinara [238K]

Answer:

tysm

Explanation:

4 0
3 years ago
Read 2 more answers
Choose the term that best matches the definition.
Y_Kistochka [10]

Answer: it’s network protocol

Explanation:

4 0
2 years ago
The slide layout has placeholders for text, charts, and tables. true or false.
Ksju [112]
The answer to this is true
3 0
3 years ago
Read 2 more answers
To plan a pizza party, one may want to order enough pizza for everyone. Use the slicesInPizza, slicesPerPerson, and totalGuests
zheka24 [161]

Answer:

Explanation:

The following code was written in Javascript. It asks the user to enter the values for each of the variables and saves it to them. Then it uses those values to calculate the total number of pizzas needed to feed everyone at the party. Finally, it prints out the total to the screen as an alert. Both test cases were used and the outputs can be seen in the attached images below.

var slicesPerPizza = window.prompt("How many slices per pizza?");

var slicesPerPerson = window.prompt("How many slices per person?");

var totalPersons = window.prompt("How many total people will attend?");

var pizzasNeeded = Math.round((slicesPerPerson * totalPersons) / slicesPerPizza)

alert(`You need a total of ${pizzasNeeded} pizzas.`)

6 0
3 years ago
Other questions:
  • a computer that no longer works after having minor repair work done to it may have been damaged by ______.
    6·1 answer
  • Header and footer elements such as worksheet name, current date, and time are _____ elements, they change as your worksheet does
    12·1 answer
  • What the address for dns server that the eorkstation will use?
    10·1 answer
  • What is the resistance of a 1,000-foot length of #6 AWG wire at a temperature of 25 degrees C? A. 0.1593 ohm B. 0.4028 ohm C. 0.
    7·1 answer
  • Once sales are​ forecasted, ________ must be generated to estimate required raw materials. A. a pro forma statement B. a product
    8·1 answer
  • Network address 192.10.10.0<br>​
    12·1 answer
  • Which scenarios are examples of students managing their time well? Check all that apply. A student studies while watching her fa
    8·2 answers
  • Indica si los elementos de las imagenes son una materia prima o un material elaborado
    12·1 answer
  • Do yall think I should be lonely and quit life!!
    8·2 answers
  • Fill in the table below of the Interactive Word Wall. You are provided with the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!