Exam 12: Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Taken together, all the data fields form a single unit that is referred to as a(n) ____.

(Multiple Choice)
4.9/5
(40)

birth.month refers to the birth member of the month structure.

(True/False)
4.8/5
(28)

A(n) ____ is a data type that reserves the same area in memory for two or more variables, each of which can be a different data type.

(Multiple Choice)
4.8/5
(36)

The -> operator has a lower priority than the increment operator.

(True/False)
4.9/5
(34)

A union reserves sufficient memory locations to accommodate ____.

(Multiple Choice)
4.8/5
(32)

____ is equivalent to (*pointer).member.

(Multiple Choice)
4.8/5
(31)

A structure definition statement is identical to the form used in defining any program variable: the data type is followed by a list of variable names.

(True/False)
4.8/5
(43)

If pt is declared as a pointer to a structure of type Employee, ____ refers to the idNum member of the structure.

(Multiple Choice)
4.9/5
(37)

After the following declaration, you can define and initialize a variable birth of this structure type as follows ____. Struct Date { Int month; Int day; Int year; };

(Multiple Choice)
4.8/5
(29)

____ creates an array of 10 PayRecord structures.

(Multiple Choice)
4.8/5
(35)

A structure may be declared globally or locally.

(True/False)
4.9/5
(36)

When passing a structure to a function, the calling function and the called function must both refer to the same globally defined structure type.

(True/False)
4.8/5
(42)

Arrays of structures are very useful to replace ____ arrays.

(Multiple Choice)
4.9/5
(39)

Populating a structure is a complex task in C.

(True/False)
4.9/5
(37)

By convention all typedef names are written in lowercase.

(True/False)
4.7/5
(31)

Each of the individual data items in a "structure" or single unit is an entity by itself that is referred to as a ____.

(Multiple Choice)
4.9/5
(41)

The function call ____ passes a copy of the complete emp structure to calcNet().

(Multiple Choice)
4.7/5
(34)

If you have declared a structure named Date, you can then make the name DATE a synonym for the terms struct Date, by using the statement ____.

(Multiple Choice)
4.9/5
(33)

For non-ANSI C compilers, the keyword ____ must be placed before the keyword struct for initialization within a local declaration statement.

(Multiple Choice)
5.0/5
(44)

A ____ statement provides a simple method for creating a new and typically shorter name for an existing structure type.

(Multiple Choice)
4.9/5
(42)
Showing 21 - 40 of 48
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)