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
Memory is allocated for struct variables only when you ____________________ them.
(Short Answer)
4.8/5
(35)
In C++, the ____ symbol is an operator, called the member access operator.
(Multiple Choice)
4.9/5
(35)
You can use an assignment statement to copy the contents of one struct into another struct of the same type.
(True/False)
5.0/5
(39)
The following statement defines a struct houseType with a total of ____________________ member(s).
struct houseType
{
string style;
int numOfBedrooms;
int numOfBathrooms;
int numOfCarsGarage;
int yearBuilt;
};
(Short Answer)
4.9/5
(28)
Consider the following statements: struct rectangleData
{
Double length;
Double width;
Double area;
Double perimeter;
};
RectangleData bigRect;
RectangleData smallRect;
Which of the following statements is legal in C++?
(Multiple Choice)
4.8/5
(37)
Which of the following aggregate operations can be executed on array variables?
(Multiple Choice)
4.8/5
(32)
The syntax for accessing a struct member is structVariableName____.
(Multiple Choice)
4.9/5
(36)
Typically, in a program, a struct is defined ____ in the program.
(Multiple Choice)
4.9/5
(35)
Consider the following statements:
personalInfo person1, person2;
CommonInfo person3, person4;
Which of the following statements is valid in C++?

(Multiple Choice)
4.8/5
(37)
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++?
(Multiple Choice)
4.9/5
(35)
Consider the following statements:
studentType1 student1, student2;
Struct studentType2
StudentType2 student3, student4;
Which of the following statements is valid in C++?



(Multiple Choice)
4.8/5
(43)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)