Exam 11: Object-Oriented Programming

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

In inheritance, the keyword Overridable is used to designate the parent's methods that may be overridden by its children.

(True/False)
4.9/5
(26)

Which statement form below assigns a value to a property?

(Multiple Choice)
4.7/5
(36)

Inheritance does not enhance code reusability.

(True/False)
4.9/5
(35)

A good rule of thumb for object-oriented programming is that classes are the verbs in your analysis of the problem.

(True/False)
4.9/5
(37)

The keyword WithEvents is inserted into the standard declaration statement for instantiation of a class to allow the instance to respond to an event.

(True/False)
4.9/5
(37)

Which of the following terms does not describe a relationship between classes?

(Multiple Choice)
5.0/5
(33)

The constructor method requires at least one argument, and the code inside the procedure block performs any tasks needed for initializing an object.

(True/False)
5.0/5
(38)

The programmer needs to be able to identify useful hierarchies of classes and derived classes in working with object-oriented programming.

(True/False)
5.0/5
(36)

Member variables in a class are normally specified as Private.

(True/False)
4.7/5
(39)

Inheritance is the process by which the parent or base class inherits the properties, methods, and events of the child or derived class.

(True/False)
4.9/5
(38)

In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access? In the hierarchy chart shown below, GrandChild1 has access to each of the following items (as a result of inheritance), except one. Which of the following is GrandChild1 NOT able to access?

(Multiple Choice)
4.8/5
(37)

A class specifies the properties and methods that will be common to all objects that are instances of that class.

(True/False)
4.7/5
(41)

A line of code of the form Dim objectName As New className(arg1, arg2, ...) is used to instantiate an object variable or instance of an object.

(True/False)
4.8/5
(39)

In the following code block, which of the following represents the line of code that assigns the value of the Name property? Class Student Private m_name As String Public Property Name As String Get Return m_name End Get Set(Value As String) m_name = Value End Set End Property End Class

(Multiple Choice)
4.9/5
(48)

The header for an event procedure for an instance of a class will be of the following type:

(True/False)
5.0/5
(24)

An object is a template from which classes are created.

(True/False)
4.9/5
(32)

Statements of which of the following kind should be placed at locations in the class block code at which the event should be raised?

(Multiple Choice)
4.9/5
(39)

In inheritance, the keyword Overrides is used to designate the parent's methods that are overridden by its children.

(True/False)
4.8/5
(30)

Which of the following is an example of a control object?

(Multiple Choice)
4.9/5
(29)

Which of the following is an example of an array declaration whose data type is a user-defined object?

(Multiple Choice)
4.8/5
(30)
Showing 41 - 60 of 66
close modal

Filters

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