Basic Concepts Flashcards
It is a sequence of text files (typically header and source files) that contain declarations. They undergo translation to become an executable.
A program.
A C++ program is executed when the implementation class for this function.
The main() function.
These are words that have special meaning in a C++ program that cannot be used as identifier names.
Reserved keywords.
The name you associate with an object in a C++ program.
The Identifier.
These can be used to document a program or to add information in some parts of a C++ program and is ignored by the compiler.
Comments.
They represent values to be assigned or initialized to an object which contain useful data in a C++ program.
Literals.
This is where the operating system of a computer stores data for the program’s usage.
Random Access Memory.
A named object.
Variable.
A region of storage that can store a value and has associative properties that is indirectly called.
Object.
Consider the code:
int myVariable;
This code is an example of what initialization?
Default-initialization.
Consider the code:
int myVariable {};
This code is an example of what initialization?
Zero-initialization.
Consider the code:
int myVariable {5};
This code is an example of what initialization?
List-initialization.
Consider the code:
int myVariable (4);
This code is an example of what initialization?
Direct-initialization.
Consider the code:
int myVariable = 5;
This code is an example of what initialization?
Copy-initialization.
Consider the code:
int myVariable; myVariable = 5;
This code is an example of what assignment?
Copy-assignment.