Basic Concepts Flashcards

1
Q

It is a sequence of text files (typically header and source files) that contain declarations. They undergo translation to become an executable.

A

A program.

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

A C++ program is executed when the implementation class for this function.

A

The main() function.

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

These are words that have special meaning in a C++ program that cannot be used as identifier names.

A

Reserved keywords.

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

The name you associate with an object in a C++ program.

A

The Identifier.

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

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.

A

Comments.

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

They represent values to be assigned or initialized to an object which contain useful data in a C++ program.

A

Literals.

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

This is where the operating system of a computer stores data for the program’s usage.

A

Random Access Memory.

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

A named object.

A

Variable.

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

A region of storage that can store a value and has associative properties that is indirectly called.

A

Object.

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

Consider the code:

int myVariable;

This code is an example of what initialization?

A

Default-initialization.

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

Consider the code:

int myVariable {};

This code is an example of what initialization?

A

Zero-initialization.

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

Consider the code:

int myVariable {5};

This code is an example of what initialization?

A

List-initialization.

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

Consider the code:

int myVariable (4);

This code is an example of what initialization?

A

Direct-initialization.

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

Consider the code:

int myVariable = 5;

This code is an example of what initialization?

A

Copy-initialization.

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

Consider the code:

int myVariable;
myVariable = 5;

This code is an example of what assignment?

A

Copy-assignment.

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

This initialization prevents narrowing conversions done to the value.

A

List-initialization.

17
Q

Who is the creator of the C++ language and in what year did he start developing the language?

A

Bjarne Stroustrup (1979).