EXPT 1
EXPT 1
COMPUTER PROGRAMMING
COMPUTER TERMINOLOGY
Instruction:
Program:
A computer program is a collection of instructions that performs a specific task when executed
by a computer.
Software:
A collection of computer programs, libraries, and related data are referred to as software.
Computer programs may be categorized along functional lines, such as application software
system software and utility software.
1. Application software:
Application Software are designed for the users to perform their specific tasks.
Application software are very specialized in their function and approach to solving
a problem.
Examples: word processors, database software, spreadsheet, graphics software,
multimedia software, web browser.
2. System software:
System Software is designed to manage the system resources and it also provides
a platform for Application Software to run.
Examples: operating systems, device drivers, firmware, programming language
translators
3. Utility software:
Utility software is designed to aid in analyzing, optimizing, configuring and
maintaining a computer system.
Examples: antiviruses, disk cleanup & management tools, compression tools,
defragmenters
PROGRAMMING LANGUAGE
1. Machine language: This language is a string of 0s and 1s that the machines can
understand. It is completely machine dependent.
2. Assembly language: An assembly language is a low-level programming language designed
for a specific type of processor.
3. High level language: This language uses English like statements and is completely
independent of machines. Programs written using high level languages are easy to create,
read and understand.
Program written in high level programming languages like Java, C++, etc. is called source code.
Set of instructions in machine readable form is called object code or machine code.
System software that converts source code to object code is called language processor. There are
three types of language processors.
Developed as a timesharing language in the 1960s. It has been widely used in microcomputer
programming in the past, and various dialects of BASIC have been incorporated into many
different applications. Microsoft's Visual Basic is widely used.
B. C/C++
Developed in the 1970s at AT&T. Widely used to develop operating systems and commercial
applications. UNIX was the first OS written in C. C++ (C plus plus) is the object-oriented version
of C that is popular because it combines objects with traditional C programming syntax.
C. JAVA
COMPUTER PROGRAMMER:
A computer programmer, sometimes called a coder, is a person who creates computer software.
1. Syntax errors
2. Runtime errors
3. Logic errors
1. Syntax errors:
In effect, syntax errors represent grammar errors in the use of the programming language.
Common examples are:
Misspelled variable and function names
Missing semicolons
Improperly matched parentheses, square brackets, and curly braces
Incorrect format in selection and loop statements
2. Runtime errors
These occur when a program with no syntax errors asks the computer to do something that
the computer is unable to reliably do. Common examples are:
Trying to divide by a variable that contains a value of zero
Trying to open a file that doesn't exist
There is no way for the compiler to know about these kind of errors when the program is
compiled.
3. Logic errors
Logic errors occur when there is a design flaw in your program. Common examples are:
Multiplying when you should be dividing
Adding when you should be subtracting
Opening and using data from the wrong file
Displaying the wrong message