0

OOPs Concepts in VB.Net Quiz

Description: OOPs Concepts in VB.Net Quiz
Number of Questions: 15
Created by:
Tags: .net vb oop
Attempted 0/15 Correct 0 Score 0
  1. Button

  2. Label

  3. Textbox

  4. Both a and b.

  5. All of the above.


Correct Option: E

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.


Correct Option: D
  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.


Correct Option: C
  1. actions.

  2. classes.

  3. data.

  4. events.

  5. instances.


Correct Option: C
  1. actions.

  2. classes.

  3. data.

  4. events.

  5. instances.


Correct Option: A

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.


Correct Option: B
  1. a class.

  2. a control.

  3. an object.

  4. Both a and b.

  5. All of the above.


Correct Option: C

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.


Correct Option: E

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.


Correct Option: B
  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.


Correct Option: C
  1. private method.

  2. public method.

  3. private variable.

  4. public variable.

  5. None of the above.


Correct Option: E

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


Correct Option: C

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.


Correct Option: B

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.


Correct Option: D
  1. 1

  2. 2

  3. 3

  4. All of the above.


Correct Option: D
- Hide questions