Exam 13: Structures

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

Declaring an array of structures is different from declaring an array of any other variable type.

Free
(True/False)
4.9/5
(30)
Correct Answer:
Verified

False

The real power of structures is realized when the same structure is used for ____.

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

A

A C++ class can be declared as a(n) ____ having all private data members and all public member functions.

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

D

The expression ____ uses the postfix increment operator to increment the address in pt after the hours member is accessed.

(Multiple Choice)
4.9/5
(40)

A C++ structure can also be declared as a(n) ____ with no member functions and all public data members.

(Multiple Choice)
5.0/5
(30)

Union members are referenced by using the same notation as structure members.

(True/False)
5.0/5
(38)

C++ provides a special pointer value called ____ that acts as a sentinel or flag to indicate when the last record on a linked list has been processed.

(Multiple Choice)
4.7/5
(37)

The steps for returning a structure from a function are identical to the procedures for returning scalar data types.

(True/False)
4.7/5
(34)

The initialization of structures follows the same rules as for the initialization of ____________________.

(Short Answer)
4.9/5
(33)

The general expression (*pointer).member can always be replaced with the notation ____.

(Multiple Choice)
4.9/5
(37)

A(n) ____ is a set of structures in which each structure contains at least one member whose value is the address of the next logically ordered structure in the list.

(Multiple Choice)
4.9/5
(35)

Copies of all structure members 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
(40)

Any address that the new operator returns can be passed subsequently to ____________________ to restore the reserved memory to the computer.

(Short Answer)
4.9/5
(32)

A single ____ is simply a convenient method for combining and storing related items under a common name.

(Multiple Choice)
4.9/5
(44)

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

(Multiple Choice)
4.9/5
(38)

The -> operator has a(n) ____________________ priority compared to the increment operator.

(Short Answer)
4.8/5
(42)

As with all external and static variables, in the absence of explicit initializers, the character elements of static and external arrays or structures are initialized to ____.

(Multiple Choice)
4.9/5
(41)

When working with linked lists, records are linked together by including the ____ of the next record in the record immediately preceding it.

(Multiple Choice)
4.8/5
(43)

Structure data items or fields are called ____ of the structure.

(Multiple Choice)
4.9/5
(38)

Each structure member is accessed by giving both the ____________________ name and the data item name.

(Short Answer)
4.9/5
(39)
Showing 1 - 20 of 50
close modal

Filters

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