0% found this document useful (0 votes)
5 views

Lesson 13 Types of Programming Languages, Errors

Uploaded by

jaidalalor
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lesson 13 Types of Programming Languages, Errors

Uploaded by

jaidalalor
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

TYPES OF PROGRAMMING

LANGUAGES
RELATED PROGRAMMING TERMINLOLIES
AND TYPES OF ERRORS
General Objective(s): Students should be able to:
• Understand the fundamental concepts of types of programming languages and types of errors

Specific Objectives: By the end of the lesson students should be able to:
• Differentiate between object code and source code
• Differentiate high level and low-level programming language
• State examples of high level and low-level programming languages
• Define related terms to programming such as debugging, testing, etc..
• State, describe and identify different types of errors in programming (logic, syntax and run-
time)
LOW LEVEL PROGRAMMING LANGUAGE

• Programming is the discipline of writing the solution to a problem using a language that a
computer can understand.
Low Level Programming Language
• A low-level language is a programming language that provides little or no abstraction of
programming concepts and is very close to writing actual machine instructions which make them
machine dependent. Two good examples of low-level languages are assembly and machine code.
HIGH LEVEL PROGRAMMING LANGUAGE
• A high-level language (HLL) is a programming language such as C , FORTRAN, or Pascal that
enables a programmer to write programs that are independent of a particular type of computer.
Such languages are considered high-level because they are closer to human languages and
further from machine languages.
High Level Language
• These differ from low level languages in that they require fewer coding details and make
programs easier to write. They are closer in appearance to natural language for example, English
and French. Programs written in high level language is called Source Code, while the translated
version is called Object Code. These programs must be translated to a form which can be
accepted by the computer. This is achieved by means of a special translator programs called
compiler and interpreter.
HERE’S A DIAGRAM ILLUSTRATING THE RELATIONSHIP BETWEEN
THE SOURCE CODE AND THE OBJECT CODE.
PROGRAMMING TERMS
• Test Data – Data which is used to test a program for errors/special data created by a programmer to
test the correctness of the program.

• Dry-Run – The process whereby a program is checked to ensure that it does what it was designed for.

• Bug – A coding error that causes an unexpected defect, fault, flaw or imperfection in a computer
program.

• Testing – This is the process of checking a program for errors.

• Debugging – This is the process of testing, locating and correcting mistakes by running the program.

• Desk checking/Tracing – The process of manually executing an algorithm’s instructions with the
purpose of ensuring correctness. The tool used to do desk checking is called a trace table.
TYPES OF ERRORS

• Syntax errors- These occur when a mistake is made in the language rules or sentence structure of the
programming language. A syntax error prevents the program from running. Examples of syntax error includes
misspelling of a variable or keyword. Missing a semi-colon from a line, using wrong symbols as operators Etc.

• Logical errors – These errors occur when the expected results of a program are not met. These also occur when
a programmer makes mistakes in the sequence of the program sentences, such as using the wrong mathematical
formula, wrong operator in an expression or incorrect use of looping structure. A logic error does not prevent
the program from compiling and running.

• Run-Time Errors – Run time errors occurs when a syntactically (syntax rules) correct program statement
cannot execute successfully. A common example is attempting to divide by zero (0) or lack of memory for the
computer to manipulate the data. Others include data type errors and endless loop

You might also like