Exam 14: Creating Classes and Objects

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

For the class Student, how you would create the auto-implemented string property of Firstname?

(Short Answer)
4.9/5
(37)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Used in a Property procedure header to indicate that you are creating a property whose value can be retrieved by an application but cannot be set by the application

(Short Answer)
4.7/5
(44)

The ____ of a class are represented by methods, which can be Sub or Function procedures.

(Multiple Choice)
4.9/5
(35)

The only type of method which can be overloaded is a constructor.

(True/False)
4.7/5
(43)

How can you make the Private members of a class available to an application?

(Essay)
4.8/5
(32)

In Visual Basic, you can define your own classes and then create instances from those classes.

(True/False)
4.9/5
(35)

The Get statement begins with the keyword Get and ends with the keywords Return Get.

(True/False)
4.7/5
(25)

You should use ____ to name a property.

(Multiple Choice)
4.9/5
(43)

Each object is an instance of the ____ from which it is created.

(Multiple Choice)
4.7/5
(28)

The classes that you define must specify the attributes and ____________________ of the objects they create.

(Short Answer)
4.9/5
(41)

Although you can define a class that contains only attributes represented by Public variables, it is rarely done. Describe the disadvantage of using Public variables in a class.

(Essay)
4.9/5
(40)

What is a method's signature?

(Short Answer)
4.9/5
(49)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Used to create an object

(Short Answer)
4.9/5
(41)

In its simplest form, the Class statement can be used in place of the Structure statement.

(True/False)
4.9/5
(41)

The Class statement ends with the ____ clause.

(Multiple Choice)
4.9/5
(37)

What is a constructor? What is the purpose of a constructor?

(Essay)
4.8/5
(43)

By convention, the names of the Private variables in a class start with a(n) ____.

(Multiple Choice)
4.7/5
(32)

The Set statement begins with the keyword Set and ends with the keywords ____.

(Multiple Choice)
4.9/5
(38)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Used to declare a variable that is not visible to applications that contain an instance of the class

(Short Answer)
4.9/5
(32)

In OOP, the term ____ means to enclose in a class.

(Multiple Choice)
4.8/5
(31)
Showing 21 - 40 of 50
close modal

Filters

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