Chapter 11 Flashcards

1
Q

What is a primitive data type?

A

A data type that is defined as a basic part of the language (ex: bool, int, long int, etc.)

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

Does a structure declaration cause a structure variable to be created?

A

no, struct declaration does not allocate memory or create variables

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

Before a structure variable can be used, the structure must be ______.

A

declared

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

The ______ is the name of a structure.

A

tag

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

The variables declared inside a structure declaration are called ______.

A

members

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

A(n) ______ is required after the closing brace of a structure declaration

A

semicolon

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

In the definition of a structure variable, the ______ is placed before the variable name, just like the data type of a regular variable is placed before its name.

A

structure tag

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

The ______ operator allows you to access structure members.

A

dot

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

[T/F]

A semicolon is required after the closing brace of a structure declaration

A

true

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

[T/F]

A structure declaration does not define a variable

A

true

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

[T/F]
When a function returns a structure, it is always necessary for the function to have a local structure variable to hold the member values that are to be returned

A

true

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

[T/F]

The indirection operator has a higher precedence than the dot operator

A

False

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