Chapter 11 Flashcards Preview

Computer Science > Chapter 11 > Flashcards

Flashcards in Chapter 11 Deck (12)
Loading flashcards...
1

What is a primitive data type?

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

2

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

no, struct declaration does not allocate memory or create variables

3

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

declared

4

The ______ is the name of a structure.

tag

5

The variables declared inside a structure declaration are called ______.

members

6

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

semicolon

7

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.

structure tag

8

The ______ operator allows you to access structure members.

dot

9

[T/F]
A semicolon is required after the closing brace of a structure declaration

true

10

[T/F]
A structure declaration does not define a variable

true

11

[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

true

12

[T/F]
The indirection operator has a higher precedence than the dot operator

False