0
Alien head

OOPs Concepts in VB.Net Quiz

Description: OOPs Concepts in VB.Net Quiz
Number of Questions: 15
Created by:
Tags: .net vb oop

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.

Answer: 5

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.

Answer: 4

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.

Answer: 3

Properties are used to represent:

  1. actions.

  2. classes.

  3. data.

  4. events.

  5. instances.

Answer: 3

Methods are used to represent:

  1. actions.

  2. classes.

  3. data.

  4. events.

  5. instances.

Answer: 1

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.

Answer: 2

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.

Answer: 3

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.

Answer: 5

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.

Answer: 2

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.

Answer: 3

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.

Answer: 5

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

Answer: 3

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.

Answer: 2

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.

Answer: 4

How many constructors can a class have?

  1. 1

  2. 2

  3. 3

  4. All of the above.

Answer: 4
+ View questions