-
-
-
How do you refer the current class in VB.Net
A) MeB) ThisC) SuperExplanation: Me is used to refer the current class in VB.Net
-
How do you join strings in VB.NET
A) +B) &C) Both A & B
-
-
Which technique we use to achieve polymorphic behavior of an object
A) Late BindingB) Multiple InterfacesC) .NET ReflectionD) All of the aboveExplanation: All of these can be used to achieve polymorphic behavior of an object
-
Option base statement which was introduced in VB6 is till valid in VB.NET
A) TrueB) FalseExplanation: Option base statement has been removed in VB.NET
-
Which of the following protocol is used in WebServices?
A) HTTPB) SOAPC) WSDLExplanation: Sipmle Object Access Protocol is used for web services
-
What’s the difference between a class field property?
A) A field always has Get and Set MethodsB) A property always has Get and Set MethodsC) None of the aboveExplanation: These methods are internally used set and retrieve values of a property.
-
-
-
The methods which return the values back to the calling code are called as
A) Interrogative methodsB) Imperative methodsC) Constructors
-
Can you create Windows Services using VB.Net
A) YesB) No
-
How do you call a method on webservice asynchronously
A) Create a Callback method that take an Iasyncresult as aparameterB) Call the method as you would call a method of any other classC) Declare an exernal function
-
Which of the following are not a member of String Type
A) ConcatB) CopyC) JoinExplanation: Join is not a member of String class
-
-
Which of the following is a valid statement
A) I = Integer.Parse(S) ' where I is an integer and S is a stringB) I = Parse(S) ' where I is an integer and S is a stringC) S = Parse(I) 'where I is an integer and S is a stringD) None
-
Which of the following are the valid method of command object
A) ExecuteNonQuery & ExecuteScalarB) ExecuteQuery & ExecuteScalarC) ExecuteParameterD) None
-
Which of the following is not a value type in VB.NET
A) BooleanB) Int16C) ByteD) StringExplanation: String is a class in VB.NET hence it is a reference type but not value type.
-
The methods declared with the following modifiers are not accessible out side the current VB.NET project
A) PublicB) ProtectedC) FriendExplanation: Friend methods are internal to the active project they are not acceble out side the project.
VB.NET Interview Questions
Ans