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

CHAP 3 (Concept of Programming Language)

Uploaded by

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

CHAP 3 (Concept of Programming Language)

Uploaded by

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

CHAPTER # 3

CONCEPT OF COMPUTER PROGRAMMING


Programming:

Programming is the implementation of logic to facilitate specified computing operations and


functionality. It occurs in one or more languages, which differ by application, domain and
programming model.
A program is set of instruction that computer must follow in order to process data into information.
Programming language logic differs by developer. From a high level, good code can be evaluated
with factors such as:
Robustness: Focuses on program continuation capability, regardless of errors or incorrect data.
Reliability: Focuses on correct design and algorithm implementation.
Efficiency: Focuses on memory, hardware or other properties used to optimize programs.
Readability: Proper documentation and indentation availability, which provides insight to other
program developers or designers.
Main steps in programming process are as follows:
1. Defining
the problem

5.
2. Planning
Documenting
the solution
thye program

4. Testing the 3. Coding the


program program

Syntax Errors:
A syntax error is an error in the source code of a program. Since computer programs must follow
strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the
programming language will produce a syntax error.
Example : C = ( A + B/2

Logical Errors:
In computer programming, a logic error is a bug in a program that causes it to operate incorrectly,
but not to terminate abnormally (or crash). A logic error produces unintended or undesired output
or other behavior.
Example : C = A + B and however programmer typed C = A – B

Runtime Errors:
A runtime error is a program error that occurs while the program is running. The term is often used
in contrast to other types of program errors, such as syntax errors and compiles time errors. There
are many different types of runtime errors. One example is a logic error, which produces the wrong
output.

You might also like