Exam 11: Multiple Classes and Inheritance

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Whenever inheritance is used, the subclass must always fit into a "has-a" relationship with the base class. _________________________

(True/False)
4.8/5
(35)

A new class can be added to an application by right-clicking the project name in the Solution Explorer window.

(True/False)
4.8/5
(40)

A comma separates each field in a record in a comma-____ file.

(Multiple Choice)
5.0/5
(41)

To specify the sequence of objects (like those in the accompanying figure) that will be selected when the TAB key is pressed, the ____ property is used.

(Multiple Choice)
4.8/5
(45)

What is a constructor? What is its function? What happens if a developer writes no code for a class constructor?

(Essay)
5.0/5
(41)

The TabIndex property of objects on a Windows form controls the order that objects will be selected when the user presses the ____________________ key.

(Short Answer)
4.8/5
(37)

The code in a constructor procedure executes after any other code in the object. _________________________

(True/False)
4.8/5
(39)
Identify the letter of the choice that best matches the phrase or definition.
You must use multiple classes to implement this kind of program structure
TabIndex
A major contributor to reliable and robust programs
StreamWriter
A class acts as a template for this
encapsulation
Correct Answer:
Verified
Premises:
Responses:
You must use multiple classes to implement this kind of program structure
TabIndex
A major contributor to reliable and robust programs
StreamWriter
A class acts as a template for this
encapsulation
This can inherit procedures within the base class
inheritance
Means that a subclass can contain a procedure with the same procedure name
object
Property that determines which object on a form receives the focus when the user presses the TAB key
three-tier
Can be used to write a stream of text to a file
Overridable
A benefit of using these is that the variables defined in one can be hidden from processing in others
subclass
Variables declared in a base class are available for use in a subclass through this
SelectedIndex
If this property is less than 0, then a selection has not been made
classes
(Matching)
4.9/5
(31)

An object acts as a template for a class.

(True/False)
4.7/5
(35)

____ is a major contributor to reliable and robust programs.

(Multiple Choice)
4.9/5
(28)

____ the text means writing the next record in the file following the last record in the file.

(Multiple Choice)
4.9/5
(34)

Explain what encapsulation is and provide the elements of the three-tier structure. In your explanation of the three-tier structure, discuss how the tiers relate to one another.

(Essay)
4.8/5
(37)

Which tier is involved in saving data stored on a USB drive?

(Multiple Choice)
4.8/5
(31)

The TabIndex property determines which object on a form receives the focus when the user presses the ____ key.

(Multiple Choice)
4.8/5
(41)

When using inheritance, a subclass can use variables within its base class.

(True/False)
4.8/5
(45)

Once an object is instantiated and the arguments are passed, the constructor cannot use the values in the arguments to set the values in variables within the class.

(True/False)
4.8/5
(30)

In a three-tier architecture for a web application, the web form and web page constitute the persistence tier.

(True/False)
4.8/5
(43)

The subclass can use attributes from the base class as if those attributes were defined in the subclass.

(True/False)
4.8/5
(27)

If the developer writes no code for a class constructor, Visual Basic automatically generates whatever processing must be accomplished to prepare the object for use.

(True/False)
4.9/5
(34)

____________________ the text means writing the next record in the file following the last record in the file.

(Short Answer)
4.8/5
(49)
Showing 61 - 80 of 103
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)