
Name: Student Id:
Introduction to Software Development and Object-Oriented
Programming
ECS 40 Summer Session II 2003
Quiz 4 (10 points)
Time: 10 mins
Sept. 4, 2003
1. (1 point) A base class which cannot be instantiated is called a(n) abstract base class.
2. (1 point) Base-class destructor is declared virtual so that, if an object in a hierarchy is destroyed explicitly
by applying the delete operator to a base-class pointer, the destructor for the appropriate class is called
based on the object to which the base-class pointer points.
3. (2 points) cin is an object of class istream and cout is an object of class ostream.
4. (1 point) A decimal number, 30, can be represented in hex (base 16) as 1E.
5. (2 points) A file is a group of related records and a group of related files are stored in a database.
6. (2 points) basic ifstream is a class template and ifstream is a template specialization of basic ifstream.
7. (1 point) A file which allows bytes to be accessed randomly is called a random access file.
1