OOPs Concepts in VB.Net Quiz

OOPs Concepts in VB.Net Quiz

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which control is an example of an object in VB.NET?

  1. Button
  2. Label
  3. Textbox
  4. Both a and b.
  5. All of the above.
Question 2 Multiple Choice (Single Answer)

Which of the following is part of an object?

  1. Methods
  2. Properties
  3. Instances
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

Which is true about objects?

  1. Objects are used to create classes.
  2. Objects are analogous to blueprints.
  3. Objects combine actions and data.
  4. Both a and b.
  5. All of the above.
Question 4 Multiple Choice (Single Answer)

Properties are used to represent:

  1. actions.
  2. classes.
  3. data.
  4. events.
  5. instances.
Question 5 Multiple Choice (Single Answer)

Methods are used to represent:

  1. actions.
  2. classes.
  3. data.
  4. events.
  5. instances.
Question 6 Multiple Choice (Single Answer)

The term instantiation refers to the creation of:

  1. a class from a blueprint.
  2. an object from a class.
  3. a method from an object.
  4. a property from a method.
  5. a blueprint from a property.
Question 7 Multiple Choice (Single Answer)

Anything in VB.NET that has a property or method is:

  1. a class.
  2. a control.
  3. an object.
  4. Both a and b.
  5. All of the above.
Question 8 Multiple Choice (Single Answer)

Which feature is needed to make a programming language object oriented?

  1. Encapsulation
  2. Inheritance
  3. Polymorphism
  4. Both a and b.
  5. All of the above.
Question 9 Multiple Choice (Single Answer)

We should think of the practice of object-oriented programming as:

  1. a simple answer to the complex problem of creating software.
  2. an incremental improvement to the problem of creating software.
  3. the way to get rid of a werewolf.
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

Encapsulation makes it easier to:

  1. reuse and modify existing modules of code.
  2. write and read code by sharing method names.
  3. hide and protect data from external code.
  4. Both a and b.
  5. All of the above.
Question 11 Multiple Choice (Single Answer)

The standard for designing a field is that it be defined as a:

  1. private method.
  2. public method.
  3. private variable.
  4. public variable.
  5. None of the above.
Question 12 Multiple Choice (Single Answer)

What is the syntax for making a property read-only?

  1. Property Read propertyname As datatype
  2. Read Property propertyname As datatype
  3. ReadOnly Property propertyname As datatype
  4. Read-Only Property propertyname As datatype
  5. RO Property propertyname As datatype
Question 13 Multiple Choice (Single Answer)

The Get procedure of a property acts like:

  1. an event.
  2. a function.
  3. a variable.
  4. Both a and b.
  5. All of the above.
Question 14 Multiple Choice (Single Answer)

A method in a class is:

  1. a sub procedure.
  2. a function.
  3. an event.
  4. Both a and b.
  5. All of the above.
Question 15 Multiple Choice (Single Answer)

How many constructors can a class have?

  1. 1
  2. 2
  3. 3
  4. All of the above.