General Programing Flashcards
1
Q
What is a “Program”?
A
A “Program” is a collection of intructions in computer memory to perform a specific task.
2
Q
What is a Program Made of?
A
- Key Words
- Programmer-Defined Identifiers
- Operaters
- Punctuation
- Syntax
3
Q
What are “Key” or “Reserved” words?
A
- “Key” or “Reserved” words are unique and hold a special purpose in c++.
4
Q
What are Programmer-Defined Identifiers
- Example
A
- Names made up by the Programmer used to represent Variables, Functions, etc.
- Hours in a day, hour represents a variable, the function would be 24 in a day.
5
Q
What are Operators?
- Examples
A
A character used to perform an action or operate on data
- ( =, +, -, < > )
6
Q
What is Punctuation?
A
Characters that mark the end of a statement or that seperate items on a list.
7
Q
What is Syntax?
A
The rules of grammar that must be followed when writing a program.
8
Q
How do you go from a high level program to an executable file?
A
- Create a file containing the program with a text editor
- Run Preprocessor to convert source file directives to source code program statements
- Run Compiler to convert program into machine instructions
- Run linker to connect hardware-specific code to machine instructions, producing an executable file.