MODULE 1 Flashcards
It is a sequence of instructions written to perform a specified task for a computer.
Computer Program/Program
The text written in a computer programming language.
Source Code
It is the process of designing, writing, testing, debugging/ troubleshooting, and maintaining the source code of computer programs.
Computer Programming/Programming
It is the set of instructions on a computer to produce a specific result. Also called as Software.
Program
It is the process of writing a program or a software
Programming
Consist of binary code, also called as executables
Machine Languages
Parts of a Machine Language
- Instruction
- Address
A part of Machine Language where the operation is performed (opcode).
Instruction
A part of Machine Language where the memory address of the data is used.
Address
Programming languages with symbolic names for opcodes, and decimals or labels for memory addresses.
Assembly Language
Type of Programming
- Low-level languages
- High-level languages
Languages that uses instructions tied to one type of computer.
Low-Level languages
Languages that resembles written languages such as English and can run on a variety of computer types.
High-level languages
Classification of Programs
- Procedural
- Object-Oriented
This type of program uses series of computational steps to be carried out. Example of this is C
Procedural
Reusable objects, containing code and data, are manipulated. Example of this is C++ and Java.
Object-Oriented
Program Development Lifecycle
- Analyze
- Design
- Choose the Interface
- Code
- Debug and Test
- Complete the Documentation
Step-by-step sequence of instructions that describes how the data is to be processed to produce the desired output.
Algorithm
Ways to express Algorithms
- Natural Languages
- Pseudocode
- Flowcharts
- Programming Languages
A program design technique that uses English words.
Pseudocode
Does not represent real code.
Pseudocode
No formal syntactical rules.
Pseudocode
Sequence of 0’s and 1’s
Machine Code
Translators
- Interpreter
- Compiler
- Linker
This translator reads lines then execute
Interpreter
This translator compile instructions then execute
Compiler
This translator uses both Interpreter and Compiler, example of this is Java
Linker
Object-oriented programming allows object interaction without prescribed order. (True or False)
True
Types of Errors
- Syntax Error
- Runtime Error
- Logical Error
An error that can be determined by the compiler
Syntax Error
An error experienced during runtime
Runtime Error
An error wherein the desired behavior is not presented
Logical error