C++ Programming (3) Flashcards

1
Q

What is a Template?

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

What is a Function Template? Syntax?

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

What is a Class Template? Syntax?

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

How can you create a template that take more than one type?
What are the different syntaxes when defining basic templates?

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

What is the standard template library?

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

What are the three kinds of things found in the STL? Examples?

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

STL Vector example:

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

What is overloading?

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

What is function overloading?

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

When does the program know what version of a function to use when using overloading?

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

What is operator overloading?

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

Example of overloading the stream operator:

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

What operators CAN and CANNOT be overloaded?

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

What is polymorphism? When we say polymorphism, what type are we talking about?

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

What does the ‘virtual’ keyword do? What is dynamic dispatching?

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

Where is ‘virtual’ specified? In derived classes, what happens to a virtual method?

A
17
Q

What re pure virtual methods?

A
18
Q

What do pure virtual methods lead to? What are they?

A
19
Q

What is the ‘this’ pointer?

A
20
Q

Example using the ‘this’ pointer:

A
21
Q

What are static members? How can they be accessed?

A
22
Q

What does it mean to declare a member variable as static? What object is it attached to? How are they declared and instantiated?

A
23
Q

What are static member functions? Do they have a ‘this’ pointer?

A
24
Q

What are some caveats to creating static members?

A
25
Q

What are default parameters? How are they used? Syntax?

A
26
Q

Once a default parameter is specified in a parameter list for a function, what must happen?

What is an issue with using default parameters?

A