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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Program Made of?

A
  • Key Words
  • Programmer-Defined Identifiers
  • Operaters
  • Punctuation
  • Syntax
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are “Key” or “Reserved” words?

A
  • “Key” or “Reserved” words are unique and hold a special purpose in c++.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Operators?

  • Examples
A

A character used to perform an action or operate on data

  • ( =, +, -, < > )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Punctuation?

A

Characters that mark the end of a statement or that seperate items on a list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Syntax?

A

The rules of grammar that must be followed when writing a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you go from a high level program to an executable file?

A
  1. Create a file containing the program with a text editor
  2. Run Preprocessor to convert source file directives to source code program statements
  3. Run Compiler to convert program into machine instructions
  4. Run linker to connect hardware-specific code to machine instructions, producing an executable file.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly