Module 1: Introduction to Programming Flashcards
A sequence of instructions written to perform a specified task for a computer.
Computer Program (Software Program or Program)
A text written in a computer programming language.
Source Code
A source code of a program can be written in these types of languages:
High-level language
Low-level language
A source code must be translated to machine instructions through either:
Interpreter
Compiler
This translates and executes the code into machine language line by line.
Interpreter
This reads the code as a whole and then executes it.
Compiler
This combines all of the compiled code required for the program
Linker
The process of designing, writing, testing, debugging/ troubleshooting, and maintaining the source code of computer programs.
Computer Programming or Programming
The purpose of programming:
Create a program and exhibit desired behavior.
Self-contained set of instructions used to operate a computer to produce a specific result
Program or Software
This consists of binary instructions and is also called “executables.”
Machine Language
The two parts of Machine Language:
Instruction and Address
The operation to be performed; is also called an opcode.
Instruction part
The memory address of the data to be used.
Address part
Languages that use instructions tied directly to one type of computer.
Low-level Languages
Instructions resemble written languages, such as English, and can be run on a variety of computer types.
High-level Languages
A programming language with symbolic names for opcodes, and decimals or labels for memory addresses
Assembly Language (Mid-level Language)
The two classifications of programs:
Procedural
Object-oriented
Available instructions are used to create self-contained units called procedures.
Procedural
Reusable objects, containing code and data, are manipulated. These languages support reusing existing code more easily.
Object-oriented Program
Program Development Lifecyle
Analyze: Define the problem
Design: Plan the solution to the problem
Choose the Interface: Select the objects
Code: Translate the algorithm into a programming language.
Debug and Test: Locate and remove any errors in the program.
Complete the Documentation: Organize all the materials that describe the program.
The step-by-step sequence of instructions that describe how the data is to be processed to produce the desired output.
Algorithm
English-like phrases are used to describe the algorithm. This should not contain any keywords in any computer languages.
Pseudocode
This means false.
Pseudo