Flag this Question Question 40 1 pts What statement regarding the use of the Object class and classes in general is accurate? When you create
Flag this Question
Question 40 1 pts
What statement regarding the use of the Object class and classes in general is accurate?
| When you create any child class, no inheritance occurs automatically. |
| All classes inherit the Object class methods. |
| The object class contains a constructor, destructor, and two public instance methods. |
| Although every class descends from Object, not all objects are Objects. |
Flag this Question
Question 41 1.5 pts
The terms directory and folder are used synonymously to refer to an entity that is used to organize files.
Flag this Question
Question 42 1.5 pts
The File class is contained in the System.IOFile namespace.
Flag this Question
Question 43 1.5 pts
When you write a C# program that stores a value in a variable, you are using temporary storage; the value you store is lost when the program ends or the computer loses power. What is the name for this kind of storage?
Flag this Question
Question 44 1.5 pts
Permanent storage that does not lose contents when a computer loses power is known as what type of storage?
Flag this Question
Question 45 1.5 pts
Files exist on devices such as hard disks, USB drives, reels of magnetic tape, and optical discs. What are these files considered to be?
Flag this Question
Question 46 1.5 pts
When you store data in a computer file on a persistent storage device, what are you doing?
| You are reading from the file. |
| You are using an input stream. |
| You are writing to the file. |
| You are flashing the data to memory. |
Flag this Question
Question 47 1.5 pts
When you copy data from a file on a storage device into RAM, what are you doing?
| You are writing to the file. |
| You are reading from the file. |
| You are copying to the file. |
| You are flashing the data to memory. |
Flag this Question
Question 48 1.5 pts
What class contains methods that allow you to access information about files?
Flag this Question
Question 49 1.5 pts
What class can be used to provide information on directories or folders?
Flag this Question
Question 50 1.5 pts
What is a collection of fields that contain data about an entity?
Flag this Question
Question 51 1.5 pts
A data file is what type of file when each record is read in order of its position in the file?
Flag this Question
Question 52 1.5 pts
You are designing an application to support an automobile rental agency. Which of the following probably should NOT be represented as an object?
Flag this Question
Question 53 1.5 pts
After you have identified a set of classes needed for a program, you should now ____.
| Define the behavior of each class. |
| Look for nouns that describe the tasks. |
| Begin writing the code for the classes. |
| Establish the relationships between the classes. |
Flag this Question
Question 54 1.5 pts
A/an ____ represents a set of objects with the same behavior.
Flag this Question
Question 55 1.5 pts
Classes correspond to ____ in a requirements description.
Flag this Question
Question 56 1.5 pts
When designing classes, if you find classes with common behavior you should ____.
| Combine them all into a single class. |
| Place the common behavior into a superclass. |
| Place the common behavior into a subclass. |
Flag this Question
Question 57 1.5 pts
____ is often described as the is-a relationship.
Flag this Question
Question 58 1.5 pts
In general, you need ____ when an object needs to remember another object between method calls.
| an interface implementation |
Flag this Question
Question 59 1.5 pts
Aggregation denotes that ____.
| Objects of one class inherit from objects of its superclass. |
| Objects of one class can be inherited by its subclasses. |
| Objects of one class contain references to objects of its superclass. |
| Objects of one class contain references to objects of another class. |
Flag this Question
Question 60 1.5 pts
In a UML diagram, aggregation is denoted by ____.
| A solid line with a diamond-shaped symbol next to the aggregating class. |
| An arrow with an open triangle pointing to the aggregating class. |
| A dotted line with a diamond-shaped symbol next to the aggregating class. |
| A dotted line with an open arrow tip pointing to the aggregating class. |
Flag this Question
Question 61 1.5 pts
In a UML diagram, inheritance is denoted by ____.
| A solid line with a diamond-shaped symbol next to the superclass. |
| A solid line with a closed arrow tip pointing to the superclass. |
| A dotted line with an open arrow tip pointing to the superclass. |
| A solid line with an open arrow tip pointing to the superclass. |
Flag this Question
Question 62 1.5 pts
In a UML diagram, an interface implementation is denoted by ____.
| A dotted line with a closed arrow tip. |
| A solid line with a closed arrow tip. |
| A dotted line with an open arrow tip. |
| A solid line with an open arrow tip. |
Flag this Question
Question 63 1.5 pts
You are designing a software solution for an automobile rental company. A customer may rent only a single auto at a given time. You have decided that the following classes are needed: Auto, Customer, Address, Rental Contract. Which of these should be represented as aggregation?
| Rental Contract class aggregates Address class |
| Rental Contract class aggregates Customer and Address classes. |
| Rental Contract class aggregates Customer, Address, and Auto classes. |
| Rental Contract class does not aggregate any of the other classes. |