Exam 12: Structures
Exam 1: Introduction to Computer Programming44 Questions
Exam 2: Getting Started in C Programming46 Questions
Exam 3: Processing and Interactive Input48 Questions
Exam 4: Selection44 Questions
Exam 5: Repetition47 Questions
Exam 6: Modularity Using Functions: Part I51 Questions
Exam 7: Modularity Using Functions: Part II49 Questions
Exam 8: Arrays48 Questions
Exam 9: Character Strings51 Questions
Exam 10: Data Files50 Questions
Exam 11: Arrays, Addresses, and Pointers49 Questions
Exam 12: Structures48 Questions
Exam 13: Dynamic Data Structures49 Questions
Exam 14: Additional Capabilities55 Questions
Exam 15: A Brief Introduction to C++49 Questions
Select questions type
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:
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:
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:
True
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)