Vous êtes sur la page 1sur 2

Introduction to Programming

Term Definition

- High Level:
o Easy to learn (similar to English)
o Ex. Java, C++, Turing…
- Low Level:
o Difficult to learn (resembles what actually goes on inside a computer)
Programming Language
- Machine Code
High Level/Low
o The only langue computers can understand
Level/Machine Code
o Consists of 0’s and 1’s

- A program that translates code to compiled code.


o Input – Code
o Output - Compiled Code
Compiler (traditional vs.
Java) - Traditional: Interpreter and run line by line. Slow to run. But can run the code with only the code on all
computers
- Java: Complies the whole code and generates a binary file for the machine. Much faster to run. But
needs to compile the code on every computer you want to run the code.
- An incorrect line of code that causes a failure in execution.
Syntax Error

- In short, logical error is a bug.


- The difference between syntax error is that while a program with a syntax error will not operate, a code
Logical Error with a logical error Will produce unintended output.

- A runtime error is a program error that occurs while the program is running, though the code was okay
Run-Time Error while coding.
- Happens when divide by zero or infinity loop.
- The result from the compiler; the human-readable translated to a machine-readable code.
Compiled Code

- A collection of statements and orders written in a human-readable programming language; same thing as
a code.
Source Code

Vous aimerez peut-être aussi