Exam 11: Structured Data
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
Which of the following statements outputs the value of the gpa member of element 1 of the student array?
Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
C
You cannot directly assign an enumerator to an int variable.
Free
(True/False)
4.9/5
(37)
Correct Answer:
False
Look at the following statement. bookList[2].publisher[3] = 't';
This statement...
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
C
A declaration for an enumerated type begins with this key word.
(Multiple Choice)
4.9/5
(45)
The following union declaration appears on a system uses 4-byte ints and 8-byte doubles.
union Numbers
{
int integerNumber;
double doubleNumber;
};
Numbers myNumber;
myNumber.integerNumber = 1;
True or False: After this code executes, the myNumber variable will occupy 4 bytes of memory.
(True/False)
4.8/5
(36)
It is possible for a structure variable to be a member of another structure variable.
(True/False)
4.8/5
(34)
Look at the following declaration. enum Tree { OAK, MAPLE, PINE };
What is the value of the following relational expression?
OAK > PINE
(Multiple Choice)
5.0/5
(34)
An anonymous union declaration actually creates the member variables in memory.
(True/False)
4.8/5
(34)
When a structure is passed _________to a function, its members are not copied.
(Multiple Choice)
4.8/5
(37)
This describes only the general characteristics of an object.
(Multiple Choice)
4.8/5
(36)
Any mathematical operations that can be performed on regular C++ variables can be performed on structure members.
(True/False)
4.7/5
(35)
The structure pointer operator is used to dereference a pointer to a structure, not a pointer that is a member of a structure.
(True/False)
4.7/5
(43)
This is required after the closing brace of the structure declaration.
(Multiple Choice)
5.0/5
(30)
The names of the enumerators in an enumerated data type must be enclosed in quotation marks.
(True/False)
4.8/5
(40)
Members of a(n) ________ union have names, but the union itself has no name.
(Multiple Choice)
4.9/5
(33)
Data types that are created by the programmer are known as:
(Multiple Choice)
4.7/5
(30)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)