What are some types of bugs in software?

1 Answer

Answer :

Examples of software bugs.1. Off by one. For instance, If you use an 8-bit register or area of memory, you can only have a range of 0 to 255. However, suppose your code is off by one in an operation. One possible outcome is that the program will crash with an overflow error.2. Using the wrong Boolean or numeric operator. You might use "less than" when you mean "less than or equal." Or you may interchange AND and OR. So the logic does not work as expected due to using the wrong word or symbol. You might be trying to trap errors and instead, you cause errors.3. Access after free. If you release a block of memory a program is using, you are not supposed to keep using it. Some other code could be using it. If you read after releasing the block, the data cannot be trusted, since something might have modified it. If you write after releasing the block, you could be corrupting what is used elsewhere.4. Buffer overrun. That is when a memory operation writes more data to a memory location than declared, and puts data past just the location you are modifying. So it ends up corrupting other data or even the program itself, another program, or the operating system. That will certainly lock up the computer with a blue screen.

Related questions

Description : Reinstalling Software To Fix Bugs?

Last Answer : Sometimes, your professional tax return software will not work as well as you would like it to work. This could be because of a bug that happened due to an incomplete installation. This sometimes happens, and ... bugs can be fixed. When you do this, you will often find that it will work flawlessly.

Description : Errors in a software program are referred to as: a) Viruses b) Bugs c) Computer Fault d) None of These

Last Answer : b) Bugs

Description : Which of the following is a myth in testing? a) Tester can find bugs b) Any user can test software c) Missed defects are not due to testers d) Complete testing is not possible

Last Answer : Ans : b

Description : Software Configuration Management is the discipline for systematically controlling (A) the changes due to the evolution of work products as the project proceeds. (B) the changes due to defects (bugs) being found and then fixed. (C) the changes due to requirement changes (D) all of the above

Last Answer : (D) all of the above