Exam 13: Structures
Exam 1: Preliminaries51 Questions
Exam 2: Problem Solving Using C++52 Questions
Exam 3: Assignment, Formatting, and Interactive52 Questions
Exam 4: Selection Structures51 Questions
Exam 5: Repetition Statements50 Questions
Exam 6: Modularity Using Functions50 Questions
Exam 7: Arrays50 Questions
Exam 8: Io Streams and Data Files50 Questions
Exam 9: Completing the Basics50 Questions
Exam 10: Pointers50 Questions
Exam 11: Introduction to Classes50 Questions
Exam 12: Adding Functionality to Your Classes50 Questions
Exam 13: Structures50 Questions
Exam 14: Numerical Methods50 Questions
Select questions type
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:
False
The real power of structures is realized when the same structure is used for ____.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
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:
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)