You are on page 1of 7

Elance VB.

NET (VB Dot Net) Test


Answers Just for IT and Programmers
1. What is a button's default event type?

Click

MouseMove
Tick
MultilineChanged

2. Which term is not related to multithreading issues?

SpinLock
Enumerable
Mutex
ApartmentState

3. When you open a loop with a For statement, you can close the loop with a
___________ statement.

EndLoop
End While
Next
Do

4. Which method of the SQLCommand class would you use to call a stored
procedure which does not return any data?

EndExecuteReader
ExecuteReader
ExecuteNonQuery
ExecuteScalar

5. Protected methods of a class are accessible from their own class and from:

Derived classes
No other classes
Abstract classes

6. What keyword should be used when declaring a variable inside a method,


whose value should remain the same between calls?

Static
Fixed
Immutable
Private

7. What is the base class of all other .Net classes?

net.base
system.object
system.base
assembly.root

8. What object would you use to manipulate a folder?

OpenFileDialog
CreateDirectory
System.IO.Directory
FileLen( )

9. ____________ is when objects contain their respective data and code.

Encapsulation
Modification
Instantiation
Assignment

10. In system.streamwriter, what method is used to clear all buffers and causes
any buffered data to be written to the underlying stream?

Push
Clear
Flush
Expel

11. A 'for' loop will run faster in VB.NET or C# ?

C#
Both of them will run equally fast.
None of these
VB.NET

12. The lowest bound value of arrays in VB.NET is ___ ?

Infinite
1
-1
0

13. The serialization of an Object means that it is written out to a stream

True
False

14. You use _________ to declare a procedure that returns a value.

Sub
Function
Call
MyProcedure

15. True or False? An interface can inherit from another interface.

True
False

16. What design window allows you to add controls to a form?

properties window
toolbox window
custom design window
solutions explorer window

17. True or False? A WPF control can be embedded inside of a Winforms


application.

True
False

18. To make a hidden form appear, you set what property?

ControlBox to True
ControlBox to False
Visible property to False
Visible property to True

19. What character donates a section of commented code?

$ dollar sign
{ curly braces
/ forward slash
' apostrophe

20. Which operation is performed first in the following example? y = 17 + 7 / 2

the division operation of 7 / 2


the addition operation of 17 + 7

21. A variable declared as: Dim Var as Integer = 5, after executing the next line
of: Var -= 1, would have what value?

4
1
6
-5

22. Which class has a .Fill method which is used to add or refresh rows in a
dataset?

SQLDependency
DataConnection
SQLCommandBuilder
DataAdapter

23. What toolbar allows you to control alignment and spacing?

normal toolbar
base toolbar
project toolbar
layout toolbar

24. What specific time value is attributed to the Interval property in the TImer
control?

milliseconds
seconds
nanoseconds
minutes

25. What type of Visual Basic project creates a standard Windows program?

the Windows Forms Application


Console Application Template
Windows Presentation Foundation
Class Library Template

26. A collection of DataRows is called a ________.

System.Data
DataSet
Data.Set
DataGroup

27. What is the correct way of ending a VB.NET Sub?

End
Kill
End Sub
Exit Sub
Close Sub

28. What does LINQ stand for?

Lowest-Integrated Question
Light Interface Number Query
Language-Integrated Query
Linear Query

29. A property of an object can be another object.

True
False

30. Can a Try-Catch-Finally block be nested inside of the Finally section of


another Try-Catch-Finally block?

No
Yes

31. What technology allows you to issue SQL-like commands against a


collection of objects in VB.Net?

WCF
T-SQL
PLINK
LINQ