VB.Net/VB.Net Mcq Question Set 10 Sample Test,Sample questions

Question:
 After defining a class you can instantiate one or more _____

1. Objects

2. Classes

3.Attributes

4.Methods


Question:
 An object is the ________ of the class.

1.Instance

2.Class

3.Object

4.users


Question:
 The convention is to use _____ case for classname.

1. Upper

2.Lower

3.Pascal

4. Mixed


Question:
 The file to which data is write is referred to as _______

1.Input file

2.Output file

3.Random access file

4.Sequential file


Question:
 To traverse two dimensional array you require ________________ loops.

1.One

2.Two

3.Three

4.Zero


Question:
A class ______________ all the behavior and attributes of an object.

1. Encapsulates

2.Abstracts

3.Inherits

4. Instantiate


Question:
A constructor is a ______

1.A function procedure

2.A sub procedure

3.Either a function procedure or a sub procedure

4.A property procedure


Question:
A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string “Maple” to the member variable?

1.address&strStreet = “Maple”

2. address.strStreet = “Maple”

3.strStreet.address = “Maple”

4.strStreet&address=”Maple”


Question:
A _________ variable is the instance of the String class.

1.Button

2.String

3.Character

4.Array


Question:
A __________ resembles a table.

1.One-dimensional array

2.Two-dimensional array

3. Three-dimensional array

4.N-dimensional array


Question:
An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?

1.Dim workers(4) As Employee

2.Dim workers(5) As Employee

3.Dim workers As Employee(4)

4.Dim workers As Employee(5)


Question:
An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?

1.inventory.intQuantity(4) = 100

2. inventory(4).Product.intQuantity = 100

3.inventory(3).intQuantity = 100

4. inventory(4).intQuantity=100


Question:
An object’s _______________ include methods and events.

1.Attribute

2.Behavior

3. Instance

4.Methods


Question:
Class is defined using _______

1. Class statement

2.Object statement

3. Access specifier statement

4. Instance statement


Question:
Each element in a two-dimensional array is identified by a unique combination of _______

1.One subscript

2.Two subscripts

3. Three subscripts

4. Zero subscript


Question:
Each object used in a object oriented programming is created from ______

1.Class

2.Object

3. Instance

4.users


Question:
Files that are read by computer are called as ______

1.Input file

2.Output file

3.Random access file

4.Sequential file


Question:
Files that contain lines of text are known as _______

1.Binary files

2.Text files

3.Character files

4.Array files


Question:
Files that read and write in consecutive order are known as _____

1.Input files

2.Output files

3.Sequential access file

4. Random access file


Question:
If the elements in two arrays are related by their subscripts, the arrays are called as ______arrays.

1. associated

2. coupled

3.matching

4. parallel


Question:
In most applications, the code to define a user-defined data type is entered in the form’s.

1.Declarations section

2.Definition section

3.Load event procedure

4.User-defined section


Question:
In Visual Basic, you use _________ to write a stream of characters.

1.StreamWriter object

2. StreamWriter class

3.StreamReader object

4.StreamReader class


Question:
Objects are represented by _____________ variables and ______________ properties.

1.Private, Public

2.Public, Private

3.Protected, Public

4.Protected, Private


Question:
Objects are ____________ from a class.

1.Instantiated

2. Evaluated

3.Printed

4.Outdated


Question:
Programmers refer to the sequence of character as _________

1. Stream of tokens

2. Stream of characters

3.Stream of bits

4.Stream of bytes


Question:
Programmers use _____ when they need to pass a group of related variables.

1.Structure variable

2. Variable

3.Auto variable

4. Constant variable


Question:
Programmers use ________ when they need to store related items in an array, even though the members have different data type.

1.Structure variable

2. Variable

3. Auto variable

4. Constant variable


Question:
Reading data from a file is referred to as _______

1.Reading a file

2.Writing a file

3.Appending a file

4.Executing a file


Question:
The behavior are represented by _______

1.Methods

2.Attributes

3.Values

4. Numbers


Question:
The class statement groups _______________ item in one unit.

1.Related

2.Different

3.Same access specifier items

4.Different access specifier items


Question:
The computer creates the object when it processes the statement containing ____________ keyword.

1.Class

2.Object

3. New

4.Private


Question:
The intSales array is declared as follows: Dim intSales(,) As Integer = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}. The intSales(1, 3) = intSales(1, 3) + 10 statement will ______

1.replace the 900 amount with 910

2.replace the 500 amount with 510

3.replace the 700 amount with 710

4.replace the 800 amount with 810


Question:
The name of the class file ends with ______

1. .cla

2. .class

3. .cla

4..vb


Question:
The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?

1.strCapitals(1)

2. strCapitals(2)

3.strCapitals(0)

4.strCapitals(3)


Question:
The subscripts are _________ than the row and column in which the element is located.

1. One number less

2.One number more

3.Two number less

4.Two number more


Question:
The _____________ in a two-dimensional array specifies the elements row and column position.

1.Superscript

2.Subscript

3.Row number

4.Column number


Question:
Variables declared using a structure is known as __________

1.Variables

2.Auto variables

3.Structure variables

4.Constant variables


Question:
We can determine number of elements in two-dimensional array by ______

1.Multiplying number of rows and number of columns

2. Adding number of rows and number of columns

3.Multiplying number of rows and number of rows

4.Adding number of columns and number of columns


Question:
Which of the following declares a two-dimensional array that has three rows and four columns?

1.Dim decNums(2, 3) As Decimal

2.Dim decNums(3, 4) As Decimal

3.Dim decNums(3, 2) As Decimal

4.Dim decNums(4, 3) As Decimal


Question:
Which of the following statements is false?

1. A class can have only one constructor

2.A class can have multiple constructors

3.An object created from a class is referred to as instance of the class

4. An instance of a class is considered an object


Question:
Which statement is used to create a user-defined data type?

1.Declare

2. Define

3.Struct

4.UserType


Question:
Writing data to a file is referred to as ________

1.Reading a file

2. Writing a file

3.Appending a file

4.Executing a file


Question:
You refer to the member variable by preceding its name with the name of the _______ in which it is defined.

1.Variable

2.Auto variable

3.Structure variable

4.Constant variables


Question:
You refer to the structure variable by its ______

1.Name

2. Data type

3.Dot operator

4.Member name


Question:
_____ are operations that the object is capable of performing.

1.Methods

2.Events

3. Instances

4.Attributes


Question:
_____ are the characteristics that describe the object.

1. Classes

2.Attributes

3.Objects

4.Instances


Question:
______ are the actions to which an object can respond.

1.Methods

2.Events

3.Instances

4.Attributes


Question:
______ is a programming language that allows the programmer to use objects to accomplish his goals.

1.Structured programming language

2.Object-oriented programming language

3.Top-down programming language

4.Bottom-up programming language


Question:
________ is used to open the sequential file access for append.

1.CreateText method

2.AppendText method

3.OpenText method

4.WriteText method


Question:
__________ is used to open a sequential access file for output.

1.CreateText method

2. AppendText method

3.OpenText method

4.WriteText method


More MCQS

  1. VB.Net Mcq Question Set 1
  2. VB.Net Mcq Question Set 2
  3. VB.Net Mcq Question Set 3
  4. VB.Net Mcq Question Set 4
  5. VB.Net Mcq Question Set 5
  6. VB.Net Mcq Question Set 6
  7. VB.Net Mcq Question Set 7
  8. VB.Net Mcq Question Set 8
  9. VB.Net Mcq Question Set 9
  10. VB.Net Mcq Question Set 10
  11. VB.Net Mcq Question Set 11
  12. VB NET MCQ SET 1
  13. VB NET MCQ SET 2
  14. VB NET MCQ SET 3
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!