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
Given the following structure decaration, idNum is struct Employee
{
String name;
Int idNum;
};
(Multiple Choice)
4.8/5
(30)
Which of the following is required after the closing brace of the structure definition?
(Multiple Choice)
4.8/5
(30)
Which of the following assigns a value to the hourlyWage member of employee[2]?
(Multiple Choice)
4.9/5
(42)
Given the structure definition shown, assume that circle1 and circle2 are variables of the Circle type and their members have been initialized.
struct Circle
{
double centerX;
double centerY;
double radius;
};
Then, is it true or False that the following statement correctly determines whether the two variables' members contain the same data?
if (circle1 == circle2)
(True/False)
4.9/5
(30)
The names of enumerators in an enumerated data type must be enclosed in quotation marks.
(True/False)
4.8/5
(37)
Given the following decaration:
Enum Tree { OAK, MAPLE, PINE };
What is the value of the following relational expression?
OAK > PINE
(Multiple Choice)
4.8/5
(35)
Any mathematical operation that can be performed on regular C++ variables can be performed on structure members.
(True/False)
4.9/5
(33)
If Circle is a structure tag, then the following statement can be the header line for a function that __________. Circle doSomething(Circle c2)
(Multiple Choice)
5.0/5
(39)
The following statement __________. bookList[2].publisher[3] = 't';
(Multiple Choice)
4.8/5
(31)
If a is a structure variable and p, a pointer, is a member of the structure, what will the following statement do?
Cout << *a.p;
(Multiple Choice)
4.9/5
(35)
Which of the following describes only the general characteristics of an object?
(Multiple Choice)
4.8/5
(47)
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
(34)
To dereference a structure pointer, the appropriate operator is
(Multiple Choice)
4.8/5
(37)
When you use a strongly typed enumerator in C++11 you must prefix the enumerator with the name of the enum followed by the :
:
operator.
(True/False)
4.8/5
(41)
Showing 21 - 40 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)