Exam 11: Structured Data
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
The expression *s->p; indicates that s is a structure pointer and p, which is also a pointer, is a member of the structure pointed to by s.
Free
(True/False)
4.9/5
(30)
Correct Answer:
True
A structure __________ contain members of the same data type.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
B
You cannot directly assign an integer value to an enum variable.
Free
(True/False)
4.9/5
(31)
Correct Answer:
True
A good reason to pass a structure as a constant reference is
(Multiple Choice)
4.8/5
(32)
In C++11 if you want to retrieve a strongly typed enumerator's underlying integer value, you must use a cast operator.
(True/False)
4.9/5
(25)
Passing a structure as a constant reference parameter to a function
(Multiple Choice)
4.8/5
(33)
If Circle is a structure, what does the following statement do?
Circle *pcirc = nullptr;
(Multiple Choice)
4.8/5
(33)
In C++11, you can use a new type of enum known as a(n) __________ (also known as an enum class) to have multiple enumerators with the same name, within the same scope.
(Multiple Choice)
4.8/5
(36)
It is possible for a structure to contain, as a member, a pointer to its own structure type.
(True/False)
4.8/5
(35)
A declaration for an enumerated type begins with the __________ key word.
(Multiple Choice)
4.9/5
(31)
Which of the following is an example of a C++ primitive data type?
(Multiple Choice)
4.8/5
(24)
Given the following structure decaration, Employee is struct Employee
{
String name;
Int idNum;
};
(Multiple Choice)
4.9/5
(38)
After the following statement executes, what value will the MAPLE enumerator be stored as, in memory?
Enum Tree { OAK, MAPLE, PINE };
(Multiple Choice)
4.7/5
(35)
When a programmer creates an abstract data type, he or she can decide what values are acceptable for the data type, as well as what operations may be performed on the data type.
(True/False)
4.8/5
(33)
When a structure is passed __________ to a function, its members are not copied.
(Multiple Choice)
4.8/5
(39)
It is possible for a structure variable to be a member of another structure variable.
(True/False)
4.8/5
(43)
Which of the following statements outputs the value of the gpa member of element [1] of the student array?
(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)