VB.Net MCQ Quiz Hub

VB.Net Mcq Question Set 10

Choose a topic to test your knowledge and improve your VB.Net skills

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





✅ Correct Answer: 4

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?





✅ Correct Answer: 1

A __________ resembles a table.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

To traverse two dimensional array you require ________________ loops.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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 ______





✅ Correct Answer: 4

Variables declared using a structure is known as __________





✅ Correct Answer: 3

You refer to the structure variable by its ______





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Reading data from a file is referred to as _______





✅ Correct Answer: 1

Writing data to a file is referred to as ________





✅ Correct Answer: 2

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





✅ Correct Answer: 2

Files that are read by computer are called as ______





✅ Correct Answer: 1

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





✅ Correct Answer: 3

Files that contain lines of text are known as _______





✅ Correct Answer: 2

Programmers refer to the sequence of character as _________





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

An object is the ________ of the class.





✅ Correct Answer: 1

A _________ variable is the instance of the String class.





✅ Correct Answer: 2

_____ are the characteristics that describe the object.





✅ Correct Answer: 2

_____ are operations that the object is capable of performing.





✅ Correct Answer: 1

______ are the actions to which an object can respond.





✅ Correct Answer: 2

An object’s _______________ include methods and events.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Objects are ____________ from a class.





✅ Correct Answer: 1

Class is defined using _______





✅ Correct Answer: 1

The convention is to use _____ case for classname.





✅ Correct Answer: 3

Objects are represented by _____________ variables and ______________ properties.





✅ Correct Answer: 1

The behavior are represented by _______





✅ Correct Answer: 1

After defining a class you can instantiate one or more _____





✅ Correct Answer: 1

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





✅ Correct Answer: 3

The class statement groups _______________ item in one unit.





✅ Correct Answer: 1

The name of the class file ends with ______





✅ Correct Answer: 2

A constructor is a ______





✅ Correct Answer: 3

Which of the following statements is false?





✅ Correct Answer: 1