Exam 9: Records Structs
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures II Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
Consider the following statements. struct circleData
{
Double radius;
Double area;
Double circumference;
};
CircleData circle;
Which of the following statements is valid in C++?
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
D
Consider the following statements:
applianceType applianceList[25];
Which of the following best describes applianceList?
![Consider the following statements: applianceType applianceList[25]; Which of the following best describes applianceList?](https://storage.examlex.com/TB4784/11ea7810_13f8_22d2_bbd5_3b0992509cf3_TB4784_00.jpg)
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
C
Consider the following statements: struct rectangleData
{
Double length;
Double width;
Double area;
Double perimeter;
};
RectangleData bigRect;
Which of the following statements is valid in C++?
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
B
Aggregate input/output operations are allowed on a struct variable.
(True/False)
4.8/5
(40)
Consider the following struct definition:
const int ARRAY_SIZE = 1000;
struct listType
{
int listElem[ARRAY_SIZE];
int listLength;
};
The statement that declares intList to be a struct variable of type listType is ____________________.
(Short Answer)
4.8/5
(40)
Consider the following statements:
applianceType applianceList[25];
Which of the following statements correctly initializes the cost of each appliance to 0?
![Consider the following statements: applianceType applianceList[25]; Which of the following statements correctly initializes the cost of each appliance to 0?](https://storage.examlex.com/TB4784/11ea7810_13f8_49e3_bbd5_3d53269cda6f_TB4784_00.jpg)
(Multiple Choice)
4.9/5
(43)
Which of the following is an allowable aggregate operation on a struct?
(Multiple Choice)
4.8/5
(30)
If a variable is passed by ____________________, then when the formal parameter changes, the actual parameter also changes.
(Short Answer)
4.8/5
(32)
To access a structure member (component), you use the struct variable name together with the member name; these names are separated by a dot (period).
(True/False)
4.9/5
(38)
Consider the following statements:
paintType paint;
What is the data type of paint.supplier?

(Multiple Choice)
4.9/5
(33)
In structs, you access a component by using the struct name together with the relative position of the component.
(True/False)
4.9/5
(44)
Consider the following statements: struct rectangleData
{
Double length;
Double width;
Double area;
Double perimeter;
};
RectangleData bigRect;
Which of the following statements correctly initializes the component length of bigRect?
(Multiple Choice)
4.9/5
(37)
Consider the following function prototype: int seqSearch(const listType& list, int searchItem);
The actual parameter cannot be modified by ____.
(Multiple Choice)
4.9/5
(44)
Which of the following struct definitions is correct in C++?
(Multiple Choice)
4.7/5
(35)
Consider the following struct definition: struct rectangleData
{
Double length;
Double width;
Double area;
Double perimeter;
};
Which of the following variable declarations is correct?
(Multiple Choice)
4.8/5
(40)
You can assign the value of one struct variable to another struct variable of ____ type.
(Multiple Choice)
4.9/5
(35)
The components of a struct are called the ____ of the struct.
(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)