-
How do we implement private interfaces
A) Using Inherits KeywordB) Using Implements KeywordC) Private interfaces can not be implementedExplanation: Interfaces must always be declared as public so that they can be implemented or inherited
-
-
JIT (in .NET ) stands for:
A) Just in TimeB) Job in TransitC) Java Intermediate TranslationExplanation: JIT compiler in .NET stands provides Just in time compilation feature.
-
How do you terminate code execute with in a VB.NET method
A) Exit SubB) ExitC) Close
-
How you refer the parent class in VB.Net
A) ParentB) MyBaseC) Super
-
Which of the following is not a method of Debug class
A) Assert( )B) Flush( )C) Open( )
-
p_conFirst.Open()
'error 4060
I was trying different connectionStrings,reinstall
Sql server and Visual Basic but have the same massage:"Cannot open database.Login failed".Maybe somebody has answer
Thanks,Boris
">I've just downloaded VB 2005 Express and SQL server 2005 express.Built database and tryingto connect and open DB.My code is:Public p_conFirst As New SqlConnection() p_conFirst.ConnectionString = "Server=bk;Database=First;Trusted_Connection=True;"p_conFirst.Open() 'error 4060I was trying different connectionStrings,reinstallSql server and Visual Basic but have the same massage:"Cannot open database.Login failed".Maybe somebody has answerThanks,Boris
-
-
VB.NET List Box
How can i retrieve records of a column having certain criteria and display the records in a list box? Please help me...
-
Windows-based application code segment
You develop a Windows-based application that includes the following code segment. (Line numbers areincluded for reference only.)01 Public Sub password_Validating (ByVal sender As _02 Object, ByVal e As _03 System.ComponentModel.CancelEventArgs)04 Handles password.Validating05 If ValidPassword() = False Then06 'Insert new code.07 End If08 End SubYou must ensure that users cannot move control focus away...
-
The vbc.exe compiler generates:
A) IL CodeB) Native codeC) Byte Code
-
In VB.NET default value for Boolean variable?
A) TrueB) FalseC) NothingD) Null
-
What is the significance of Shadowing a method in VB.Net ?
A) It makes a method OverridableB) It makes a method not inheritableC) It replaces all the implementation from high in the inheritance chain
-
-
-
How to determine if a variable has not been initialized in VB.NET?
A) ISNull( )B) IsEmpty( )C) IsDdNull( )
-
Which is not a collection type in VB.Net
A) HashtableB) ArrayListC) HeapD) Stack
-
-
-
VB.NET Interview Questions
Ans