errors+in+programs

=3.2.6 a=
 * ===describe types of errors in programs (syntax, logic and run-time errors) and understand how and when these may be detected;===

because they do not follow the rules laid down by the programming language. || or the use of an inappropraite mathematical formula. || overflow and division by zero can occur if a mistake is made. || help monitor the depth of testing and to guide selection. || understanding of what is happening within the black box. when testing suitable inputs are selected based upon the interface of the system or module. || some task, the program statements may be written in assembly language or in a high level language. || the program repeat itself over and over. ||
 * == Keywords == || == Definitions == ||
 * == syntax error == || this occurs either when program statements cannot be understood
 * == logic error == || these are mistakes in the design of a program such as a branch to a wrong statement
 * == run time error == || are errors detected during compilation during program execution these errors such as
 * == white box testing == || techniques analyse the structure and logic of the program. this is then used both to
 * == black box testing == || black box techniques see the software as a black box with input and output, but no
 * == algorithm == || an algorithm is a set of actions to be carried out by a computer to preform a task. ||
 * == program == || is a complete set of program statements that can be executed by the computer to perform
 * == statement == || is a single instruction in a programming language, a loop statement is where they can be used to make

A syntax error is an error that occurs when the whole statement or part of the statement has been
===written in the program that brakes the rules of the programming language. These errors occur when you misspell a word or use an incorrect language element. Syntax errors are the most common errors and they can be easily fixed when they arise by looking over the code to see where you have gone wrong.===

any errors in the algorithm in the code. Its focus is to make sure that all the commands are being executed.
[|http://www.google.co.uk/imgres?q=syntax+error&um=1&hl=en&safe=active&tbm=isch&tbnid=9FXiySbSDlQ_GM:&imgrefurl=] [|https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/&docid=j-4_wSYwJ9qwxM&imgurl=https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/syntax_error.jpeg&w] [|=625&h=533&ei=RUOiT8GrI4jtOab-9fAI&zoom=1&biw=1024&bih=563&iact=rc&dur=79&sig=108544285891449822527&page=1&tbnh] [|=112&tbnw=131&start=0&ndsp=16&ved=1t:429,r:2,s:0,i:71&tx=45&ty=58]

Logic error :
===A logic error is an error that occurs because there is a mistake in the algorithm that results in the program doing something other than what it is intended to do, the errors can be things like the wrong formula being entered or selecting an incorrect algorithm. Logic errors are able to occur in both===

errors in the algorithm in the code. Its focus is to make sure that all the commands are being executed.
[|http://www.google.co.uk/imgres?q=logic+error&um=1&hl=en&safe=active&tbm=isch&tbnid=LwfsGq7k_V6RpM:&imgrefurl=http://www.ap] [|l.jhu.edu/~hall/java/beginner/debugging.html&docid=WqqQZqXuW4I1oM&imgurl=http://www.apl.jhu.edu/] [|~hall/java/beginner/images/error.gif&w=660&h=450&ei=vkKiT9-eJ4-YOuHdtPkI&zoom=1&iact=hc&vpx=406&vpy=243&dur=15&hovh=185&hovw=272&tx=129&ty=102&sig=] [|108544285891449822527&page=1&tbnh=114&tbnw=165&start=0&ndsp=15&ved=1t:429,r:7,s:0,i:82&biw=1024&bih=563]

Run-Time Error:
===A run time error is an error that occurs due to an unexpected situation with the data being processed or another external factor. The program would otherwise work under normal operating conditions. The normal outcome of a run time error is that the program crashes or the program will not stop and carry on until it is manually stopped. One reason why these errors happen is because the program refers to external library that does not exist.===

Black box testing is used when detecting run time errors, these is because black box testing tests for incorrect inputs or outputs
[|http://www.google.co.uk/imgres?q=run+time+error&um=1&hl=en&safe=active&tbm=isch&tbnid=Uux93O9_07AS_M:&imgrefurl=http://r] [|egistrycleanersoftware.org/runtime-error-messages-how-can-you-fix-and-repair-java-runtime-errors/&docid=cK-Ko9iGB7ckPM&imgurl=http://registrycleanersoftware.org/wp-content/uploads/2008/02/runtime-error-message.png&w=221&h=160&ei=h0OiT--_GYafOr6y2dwI&zoom=1&biw=1024&bih=563&iact=rc&dur=438&sig=108544285891449822527&pag] [|e=1&tbnh=112&tbnw=155&start=0&ndsp=15&ved=1t:429,r:5,s:0,i:78&tx=39&ty=57]

f (i) state the error and what the implication is to the customers? || 2. || 02 Display "you win" 03 REPEAT 04 Play Music 05 END IF 06 UNTIL any key is pressed c (ii) state the type of error the pseudo code contians and when the error would be detected if implemented Type of error? When detected? || 2. ||
 * === Exam paper === || === Exam Question === || === Marks === ||
 * 2011 june || e (ii) explain why a keyboard violation is a syntax error? || 1. ||
 * " " || 06 IF Balance (Account No) < Amount THEN
 * || (ii) state what types of error this is? || 1. ||
 * 2010 january || 01 IF Character has reached end of platform