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

Posted Date:-2022-02-06 12:13:26


Question:
 An object is the ________ of the class.

1.Instance

2.Class

3.Object

4.users

Posted Date:-2022-02-06 12:05:30


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

1. Upper

2.Lower

3.Pascal

4. Mixed

Posted Date:-2022-02-06 12:12:15


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

Posted Date:-2022-02-06 11:59:47


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

1.One

2.Two

3.Three

4.Zero

Posted Date:-2022-02-06 11:52:36


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

1. Encapsulates

2.Abstracts

3.Inherits

4. Instantiate

Posted Date:-2022-02-06 12:08:16


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

Posted Date:-2022-02-06 12:15:06


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”

Posted Date:-2022-02-06 11:56:56


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

1.Button

2.String

3.Character

4.Array

Posted Date:-2022-02-06 12:06:14


Question:
A __________ resembles a table.

1.One-dimensional array

2.Two-dimensional array

3. Three-dimensional array

4.N-dimensional array

Posted Date:-2022-02-06 11:41:22


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)

Posted Date:-2022-02-06 11:57:47


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

Posted Date:-2022-02-06 11:57:21


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

1.Attribute

2.Behavior

3. Instance

4.Methods

Posted Date:-2022-02-06 12:07:53


Question:
Class is defined using _______

1. Class statement

2.Object statement

3. Access specifier statement

4. Instance statement

Posted Date:-2022-02-06 12:10:53


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

Posted Date:-2022-02-06 11:45:48


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

1.Class

2.Object

3. Instance

4.users

Posted Date:-2022-02-06 12:05:01


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

1.Input file

2.Output file

3.Random access file

4.Sequential file

Posted Date:-2022-02-06 12:00:12


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

1.Binary files

2.Text files

3.Character files

4.Array files

Posted Date:-2022-02-06 12:01:00


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

Posted Date:-2022-02-06 12:00:38


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

Posted Date:-2022-02-06 11:40:25


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

Posted Date:-2022-02-06 11:58:10


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

1.StreamWriter object

2. StreamWriter class

3.StreamReader object

4.StreamReader class

Posted Date:-2022-02-06 12:02:41


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

1.Private, Public

2.Public, Private

3.Protected, Public

4.Protected, Private

Posted Date:-2022-02-06 12:12:39


Question:
Objects are ____________ from a class.

1.Instantiated

2. Evaluated

3.Printed

4.Outdated

Posted Date:-2022-02-06 12:10:14


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

Posted Date:-2022-02-06 12:01:54


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

1.Structure variable

2. Variable

3.Auto variable

4. Constant variable

Posted Date:-2022-02-06 11:55:37


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

Posted Date:-2022-02-06 11:56:07


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

Posted Date:-2022-02-06 11:58:54


Question:
The behavior are represented by _______

1.Methods

2.Attributes

3.Values

4. Numbers

Posted Date:-2022-02-06 12:13:02


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

1.Related

2.Different

3.Same access specifier items

4.Different access specifier items

Posted Date:-2022-02-06 12:14:18


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

1.Class

2.Object

3. New

4.Private

Posted Date:-2022-02-06 12:13:54


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

Posted Date:-2022-02-06 11:53:34


Question:
The name of the class file ends with ______

1. .cla

2. .class

3. .cla

4..vb

Posted Date:-2022-02-06 12:14:43


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)

Posted Date:-2022-02-06 11:40:55


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

Posted Date:-2022-02-06 11:46:14


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

1.Superscript

2.Subscript

3.Row number

4.Column number

Posted Date:-2022-02-06 11:45:24


Question:
Variables declared using a structure is known as __________

1.Variables

2.Auto variables

3.Structure variables

4.Constant variables

Posted Date:-2022-02-06 11:54:16


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

Posted Date:-2022-02-06 11:41:48


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

Posted Date:-2022-02-06 11:53:08


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

Posted Date:-2022-02-06 12:15:33


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

1.Declare

2. Define

3.Struct

4.UserType

Posted Date:-2022-02-06 11:56:31


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

Posted Date:-2022-02-06 11:59:21


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

Posted Date:-2022-02-06 11:55:12


Question:
You refer to the structure variable by its ______

1.Name

2. Data type

3.Dot operator

4.Member name

Posted Date:-2022-02-06 11:54:46


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

1.Methods

2.Events

3. Instances

4.Attributes

Posted Date:-2022-02-06 12:07:07


Question:
_____ are the characteristics that describe the object.

1. Classes

2.Attributes

3.Objects

4.Instances

Posted Date:-2022-02-06 12:06:42


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

1.Methods

2.Events

3.Instances

4.Attributes

Posted Date:-2022-02-06 12:07:30


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

Posted Date:-2022-02-06 12:04:39


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

1.CreateText method

2.AppendText method

3.OpenText method

4.WriteText method

Posted Date:-2022-02-06 12:04:02


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

1.CreateText method

2. AppendText method

3.OpenText method

4.WriteText method

Posted Date:-2022-02-06 12:03:23


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
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!