Exam 10: Classes: a Deeper Look, Part 2
Exam 1: Introduction to Computers, the Internet and the World Wide Web27 Questions
Exam 2: Introduction to C Programming21 Questions
Exam 3: Control Statements, Part 127 Questions
Exam 4: Control Statements, Part 228 Questions
Exam 5: Functions and an Introduction to Recursion47 Questions
Exam 6: Arrays and Vectors19 Questions
Exam 7: Pointers and Pointer-Based Strings28 Questions
Exam 8: Sequential-Access Files12 Questions
Exam 9: Classes35 Questions
Exam 10: Classes: a Deeper Look, Part 215 Questions
Exam 11: Operator Overloading; String and Array Objects32 Questions
Exam 12: Object-Oriented Programming: Inheritance19 Questions
Exam 13: Object-Oriented Programming: Polymorphism23 Questions
Exam 14: Templates13 Questions
Exam 15: Stream Inputoutput33 Questions
Exam 16: Exception Handling24 Questions
Exam 17: File Processing11 Questions
Exam 18: Class String and String Stream Processing26 Questions
Exam 19: Searching and Sorting10 Questions
Exam 20: Data Structures19 Questions
Exam 21: Standard Template Library Stl56 Questions
Exam 22: Bits, Characters, C Strings and Structs26 Questions
Exam 23: Boost Libraries, Technical Report 1 and C0x21 Questions
Exam 24: Other Topics19 Questions
Exam 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml15 Questions
Exam 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design3 Questions
Exam 27: Game Programming With Ogre23 Questions
Select questions type
If Americans are objects of the same class, which of the following attributes would most likely be represented by a static variable of that class?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
B
If the line:
Friend class A;
Appears in class B, and the line:
Friend class B;
Appears in class C, then:
Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
B
Assume that t is an object of class Test, which has member functions a), b), c) and d). If the functions a), b) and c) all return references to an object of class Test using the dereferenced this pointer) and function d) returns void, which of the following statements will not produce a syntax error:
Free
(Multiple Choice)
4.9/5
(26)
Correct Answer:
A
Which of the following are true about an abstract data type?
I. Captures a data representation.
II. Defines the operations that are allowed on its data.
III. Replaces structured programming.
(Multiple Choice)
4.9/5
(43)
When composition one object having another object as a member) is used:
(Multiple Choice)
4.8/5
(30)
For a non-constant member function of class Test, the this pointer has type:
(Multiple Choice)
4.9/5
(32)
Which of the following is not true about friend functions and friend classes?
(Multiple Choice)
4.9/5
(41)
Inside a function definition for a member function of an object with data element x, which of the following is not equivalent to this->x:
(Multiple Choice)
4.9/5
(36)
Which of the following statements will not produce a syntax error?
(Multiple Choice)
4.8/5
(40)
Increment i )
{
Count = c;
}
Does not cause any compilation errors. This tells you that:
(Multiple Choice)
4.9/5
(35)
The numbers 3, 2, 5, 7 are enqueued in a queue in that order, then three numbers are dequeued, and finally 3, 7, 9, 4 are enqueued in that order. What is the first number in the queue the next number to be dequeued)?
(Multiple Choice)
4.9/5
(39)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)