Wk. 8 Flashcards

1
Q

What happens when you partially initialize a structure?

A

The unspecified elements are set to zero

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

What is a cstring?

A

A null terminated character array

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

What is the syntax for a structure?

A

struct [tag name]
{
[data type] [identifier]
};

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

What is each data type in a structure known as?

A

Structure members

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

How do you initialize a struct?

A

With an initialization list

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

What is the inheritance relationship path?

A

Base class to derived class.

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

When are istream variables passed by reference?

A

Always

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

Are istreams passed by value?

A

No, they passed by reference

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

In the inheritance hierarchy, which class is the “parent” and which is the “child”?

A

The Base class is the parent, and the Derived class is the child.

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

Can a 2D array function have blank square brackets for the number of columns?

A

No, the number of columns must be specified with a compile time constant.

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