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
10
Dmitrij [34]

Answer:

i need more \\

Explanation:

Chemical cold packs should be used for bone and joint injuries because they are generally colder than ice and stay cold longer.

A.  

True

B.  

False

Reset

4 0
3 years ago
Can someone please explain binary addition to me? i have a test tomorrow yikes
umka2103 [35]

Answer:

its easy

Explanation:

there are are 5 main rules

in binary there are 2 number 0 and 1

0 + 0 = 0

0 + 1 = 1

1+0=1

1+1=0 carry 1

e . g

1 1 1

1 0 1 0 1 0

+ 1 1 0 0 1 0

-------------------------

1 1 1 1 1 0 0

*in bold are the ones that you need to carry.

in decimal there are 10 possible numbers 0- 9

when you do 1 + 9 it becomes 10, this can be done easily, however if you do 1 + 9 in a table like above, you will get 0 for the first column and you will carry 1 to the next column .

in binary is the same idea but using on 2 numbers 1 and 0

e.g

1

1

+ 9

----------

1 0

*in bold are the ones that you need to carry.

hope it helps and good luck in your exam.

3 0
3 years ago
Which of the following is NOT a common grammar adjustment which is identified by grammar-check software?
Sedbober [7]

Answer:

Shortened versions of phrases Ex:(l ol, s mh, i dk, ect.)

Explanation:

Hope that this helps, if you have any more question please feel free to contact me, hope you have an amazing rest of your day. ;D

7 0
3 years ago
ONlY OnE pErcEnT oF pEOpLe CaN sOlvE tHiS!
igomit [66]

Answer:

yeeee

Explanation:

7 0
3 years ago
Read 2 more answers
Consider the function definition void Demo( int& intVal, float floatVal ) { intVal = intVal * 2; floatVal = float(intVal) +
Fynjy0 [20]

Answer:

myInt=40

myFloat=4.8

Explanation:

First look at the function definition .It has two arguments intVal is passed by reference while floatVal is passed by value.So the changes done on the myInt variable will be reflected on the original argument because when a variable is passed by reference the the changes are reflected on the original argument but when a variable is passed by value the function created a duplicate copy of it and work on them so changes are not reflected on the original argument.So myInt will get doubled while myFloat will remain the same.

5 0
3 years ago
Other questions:
  • What is the command to use the memory diagnostics tool?
    11·1 answer
  • With respect to the general classes of computers, a ________ is the most expensive and most powerful kind of computer, which is
    7·1 answer
  • You can access various sites on the WWW by using hyperlinks or by
    14·1 answer
  • ________ is installed into special, read-only memory of devices like printers and print servers or devices used for various type
    13·1 answer
  • ​In sql server, the cursor property ____________________ means that the cursor is used for retrieval purposes only.
    9·1 answer
  • Sulfur content is measured in
    11·1 answer
  • HELP 99PTS If Answered
    12·2 answers
  • Explain why there is an overlap of skills and qualities in design professions​
    14·1 answer
  • In a computer-controlled greenhouse, a temperature sensor and a window motor are connected to the computer.
    10·1 answer
  • In “Plugged In,” the author’s purpose is to persuade. Which of the following quotes from the text shows that the author’s purpos
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!