5.01 Understand Different Types of Programming Errors

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Advertisements

Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
C# Programming: From Problem Analysis to Program Design1 Debugging and Handling Exceptions C# Programming: From Problem Analysis to Program Design 3 rd.
Chapter 11 Debugging and Handling Exceptions
Programming Types of Testing.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
How to Debug VB .NET Code.
Programming Fundamentals (750113) Ch1. Problem Solving
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 2 Fundamentals of Programming Languages 4/5/09 Python Mini-Course: Day.
UNIT 3 TEMPLATE AND EXCEPTION HANDLING. Introduction  Program errors are also referred to as program bugs.  A C program may have one or more of four.
COMPUTER PROGRAMMING 2 Exceptions. What are Exceptions? Unexpected events that happen when the code is executing (during runtime). Exceptions are types.
Programming Translators.
Enhancing User Interaction Through Programming
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
An Introduction to Visual Basic
Programming Lifecycle
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
ME 142 Engineering Computation I Debugging Techniques.
Visual Basic.NET BASICS Lesson 5 Exponentiation, Order of Operations, and Error Handling.
VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
Making Good Code AKA: So, You Wrote Some Code. Now What? Ray Haggerty July 23, 2015.
Lecture 4 Programming Technique Programming Appreciation.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
1 Original Source : and Problem and Problem Solving.ppt.
Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.
1 Program Planning and Design Important stages before actual program is written.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Introduction to Testing CSIS 1595: Fundamentals of Programming and Problem Solving 1.
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
Programming Errors. Errors of different types Syntax errors – easiest to fix, found by compiler or interpreter Semantic errors – logic errors, found by.
5.01 Understand Different Types of Programming Errors
Chapter 8 Error Handling and Debugging. Debugging “When you get frustrated, step away from the computer!”
Steps for Developing a Visual C# 2010 Application MIT By: S. Sabraz Nawaz.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
Chapter 7 What’s Wrong with It? (Syntax and Logic Errors) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Exception. Agenda Exception. Handling Exceptions. The finally Clause.
Exception and Exception Handling. Exception An abnormal event that is likely to happen during program is execution Computer could run out of memory Calling.
COMPUTER PROGRAMMING I 5.05 Apply Looping Structures.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Harvard Mark I Howard Aiken was a pioneer in computing and a creator of conceptual design for IBM in the 1940s. He envisioned an electro-mechanical computing.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Debugging and Handling Exceptions
ME 142 Engineering Computation I
Highcliffe ICT Department
Introduction to Programming and Visual Basic
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Computer Programming I
Software Design and Development
Testing Key Revision Points.
Microsoft Access Illustrated
Understand the Programming Process
5.01 Understand Different Types of Programming Errors
Programming Fundamentals (750113) Ch1. Problem Solving
Programming Fundamentals (750113) Ch1. Problem Solving
Understand the Programming Process
Programming Fundamentals (750113) Ch1. Problem Solving
Software Development Process
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
ICT Gaming Lesson 2.
Programming Fundamentals (750113) Ch1. Problem Solving
An Introduction to Debugging
Learning Intention I will learn about the different types of programming errors.
1.7 Errors Compile-time error: A violation of the programming language rules that is detected by the compiler Example: System.ou.println("Hello, World!);
Presentation transcript:

5.01 Understand Different Types of Programming Errors Computer Programming

Essential Standard and Objectives Essential Standard 5.00 Apply programming and conditional logic Indicator 5.01 Understand different types of programming errors. (3%)

Syntax Errors Occur when the programmer does not follow the rules of the programming language. Prevent the program from running Also called Compilation Errors or Compiler Errors There is a wavy line under them to alert the programmer. The line is blue in Visual Basic

Logic Errors Occur when the program compiles and executes, but the output is not what you wanted/expected. Example in Visual Basic

Logic Errors Why do you have logic errors? Desk Check Incorrect formulas All possible inputs not handled Desk Check Desk checking is when you create a table of possible inputs and determine what the output should be. Check expected input Check unexpected input Check boundaries Check null input Input Expected Output Actual Output 1 2 4 5 Nothing Message Error

Runtime Errors Runtime Errors Why do you have runtime errors? Errors that occur while your program runs. Why do you have runtime errors? When your program tries to do an operation that is impossible to carry out. The operation violates the rules of the computer. Possible Causes Divide by 0 Forgetting to initialize a variable

Runtime Errors What happens? Your program stops running. A dialog box displays in the Code Editor window. A description of the error is given. Troubleshooting tips are given. The program goes into “Break” mode where you can debug it.

Runtime Errors

Wrapping it Up In this lesson you learned about different types of errors. For more information http://msdn.microsoft.com/en-us/library/s9ek7a19(v=vs.80).aspx