ISDS 505 Final Study Guide (A+ Guaranteed)
A base class named Automobile contains a private field length and a property public int Length that contains get and set accessors. A child class named Car doesn't contain a Length property. When you write a class in which you declare an object as follows, what statement can you use to access the Car's length? Car myCar = new Car(); A. Ch B. myCar.Length C. myCh D. myC.Length correct answers B A(n) ____ class is one from which you cannot create concrete objects, but from which you can inherit. A. derived B. base C. concrete D. abstract correct answers D A ____ is a clause that indicates another instance of a class constructor should be executed before any statements in the current constructor body. A. constructor initializer B. default constructor C. parameterless constructor D. value constructor correct answers A Classes that depend on field names from parent classes are said to be ____ because they are prone to errors. A. solid B. fixed C. fragile D. sound correct answers C Depending on the event, the delegate used to create the keyboard event handler is either KeyEventHandler or what other event handler? A. PressEventHandler B. EventHandler C. KeyPressHandler D. KeyPressEventHandler correct answers C Files exist on devices such as hard disks, USB drives, reels of magnetic tape, and optical discs. What are these files considered to be? A. volatile files
Document information
- Uploaded on
- April 2, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers