Exam 12: Structures

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

If pt is declared as a pointer to a structure of type Employee, ____ refers to the variable whose address is in the pt.idNum variable.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

B

Suppose employee is an array of 10 PayRecord structures. ____ accesses the rate member of the first structure in the employee array.

Free
(Multiple Choice)
4.7/5
(27)
Correct Answer:
Verified

C

In the broadest sense, the term "structure" refers to how individual elements of a group are arranged or organized.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

True

____ is not a valid C statement.

(Multiple Choice)
4.8/5
(38)

When working with unions, typically a second variable keeps track of the current data type stored in the union.

(True/False)
4.9/5
(33)

In C, a record is referred to as a(n) ____.

(Multiple Choice)
4.9/5
(33)

When defining structures, if the form of the structure is not followed by any variable names, the list of structure members must be preceded by a user-selected structure type name.

(True/False)
4.9/5
(37)

Parallel arrays are rarely used anymore because almost all programming languages currently provide structures.

(True/False)
4.9/5
(39)

On all compilers, complete copies of all members of a structure can be passed to a function by including the name of the structure as an argument to the called function.

(True/False)
4.8/5
(51)

Within a set of parallel arrays, all of the elements with the same subscript value would refer to information corresponding to the same individual.

(True/False)
4.9/5
(37)

As in most C statements, the spacing of a structure definition is not rigid.

(True/False)
4.7/5
(37)

In dealing with structures, it is important to distinguish between a structure's form and its contents.

(True/False)
4.9/5
(33)

A structure's contents consist of the symbolic names, data types, and arrangement of individual data fields in the record.

(True/False)
4.9/5
(36)

A record is a homogeneous data structure.

(True/False)
4.9/5
(30)

The statement ____ passes a copy of the structure member emp.idNum to a function named display().

(Multiple Choice)
4.7/5
(32)

*(pt.hours) refers to the variable whose address is in the pt.hours variable.

(True/False)
4.7/5
(34)

In the following definition, ____ is the structure type name. Struct Date { Int month; Int day; Int year; } birth, current;

(Multiple Choice)
4.9/5
(31)

____ arrays are two or more arrays, where each array has the same number of elements and the elements in each array are directly related by their position in the arrays.

(Multiple Choice)
4.8/5
(39)

____ creates a new data type without actually reserving any storage locations.

(Multiple Choice)
5.0/5
(32)

The structure's form consists of the actual data stored in the symbolic names.

(True/False)
4.8/5
(44)
Showing 1 - 20 of 48
close modal

Filters

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