Top Banner
Basic Programming Lingo
9

Basic Programming Lingo. A program is also known as a Sequence of instructions Application App Binary Executable.

Dec 14, 2015

Download

Documents

Ashlee Allison
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Basic Programming Lingo

Page 2: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

A program is also known as a

Sequence of instructions

Application

App

Binary

Executable

Page 3: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Programming text is also called

Source code

Programming code

Code listing

Source

Code

Page 4: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Running your program

Execute your program

Execute your code

Page 5: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Syntax errors

Errors in your code that break the rules of the language Spelling errors Capitalization errors Grammar errors Punctuation errors Spacing errors

What are the syntax errors in the following? i think that compooter science r0x

Page 6: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Semantic errors

Semantic ~ meaning

An error in logic

The program does not do what you wanted it to do

A program’s syntax may be ok, but have a semantic error

What is the semantic error in the following? “60% of the time it works every time”

Page 7: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Run-time errors

An error that occurs when the program is running

Duh.

Page 8: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Debug

Removing errors from your program

Where did the term “debug” come from?

http://americanhistory.si.edu/collections/comphist/objects/bug.htm

Page 9: Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.

Exercises

1. Write a sentence that has a syntax error, but no semantic error.

2. Write a sentence that has a semantic error, but no syntax error.

3. Describe what a program is to a 12-year old

4. Assume my program executes, but crashes in the middle and fails to do what I wanted it to do. What error(s) are there?