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
Taken together, all the data fields form a single unit that is referred to as a(n) ____.
(Multiple Choice)
4.9/5
(40)
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)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)