Search Here

VB Interview Questions Answers

jbigdeal Staff asked 4 years ago

Visual Basic (VB) Interview Questions Answers – Technical

IT - Visual Basic

Congratulations - you have completed IT - Visual Basic.You scored %%SCORE%% out of %%TOTAL%%.Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1
Pick the operating system platforms that can run Visual Studio .NET
A
Windows 96
B
Windows 2000
C
Windows 98
D
Windows 95
Question 2
_________ is a database engine that runs on your own PC so you can use Visual Studio for developing database applications.
A
MDI
B
MSDN
C
MDE
D
MSDE
Question 3
A _______________________ runs on a web server, but its user interface is displayed in a web browser on the client machine.
A
Web Forms application
B
Windows form application
C
Windows form control
D
Web forms
Question 4
implicit, structure and enum belongs to ____________ type in VB .Net
A
Value
B
Reference
C
Default
D
explicit
Question 5
Pick the range of short data type from the following
A
-2,147,483,648 to 2,147,483,647
B
0 - 255
C
-32,768 to 32,767
D
32,768 to -32,767
Question 6
_______________ is a placeholder holds the different data types based on its declaration type.
A
integer
B
variable
C
memory
D
buffer
Question 7
Case else will be executed if all the case checks ___________
A
exit
B
executes
C
success
D
fails
Question 8
An _____________ statement terminates the loop and transfers the execution point outside the for loop.
A
End For
B
Exit For
C
Exitfor
D
Endfor
Question 9
To access the values from an Array we use ______________________
A
integer index
B
integer element
C
data index
D
data element
Question 10
The_______________________ which you select determines the initial files, assembly references, code, and property settings that are added to the project.
A
File template
B
project explorer
C
project template
D
Library template
Question 11
Keystroke options (Interacting application through keyboard) can be activated in the application with the combination ____________________ key.
A
Number
B
Function
C
Ctrl
D
Alt
Question 12
Pick the right answer to add the control to a form.
A
Click on the control in the toolbox and click in the form.
B
clicking the control in the Toolbox, then clicking and dragging in the form
C
double-click the control you want to add in the Toolbox
D
All the above
Question 13
When an unexpected condition occurs, the CLR creates a special object called __________________
A
error
B
exception
C
catch
D
throw
Question 14
The error number is available as a property of the __________ object
A
errnum
B
exp
C
Err
D
expnum
Question 15
___________________ contains code that runs when the Try block completes its action
A
Finally
B
catch
C
Try
D
throw
Question 16
The technology used to interact with a database in VB.NET is called ____________________.
A
ADODB
B
ODBC
C
JDBC
D
ADO.NET
Question 17
Expand ADO
A
Action Data Object
B
Active Data Object
C
Active Dynamic Object
D
Action Dynamic Object
Question 18
ADO.NET uses something called a _______________ to hold all of your information from the database
A
Data set
B
Record set
C
vector
D
Array
Question 19
Which command from the following helps you to reach the last record
A
BOF
B
MaxRows +1
C
MaxRows
D
MaxRows – 1
Question 20
In order to add a new row into the dataset we require ___________________ object
A
AddNew
B
DataRow
C
NewRow
D
dsNewRow
Question 21
To update the database itself we require _____________________
A
StringBuilder
B
sqlBuilder
C
command builder
D
None of the above
Question 22
Name the statement to use the array when you actually need which is already declared
A
DimArray
B
Declare
C
Dim
D
ReDim
Question 23
Multiple controls share the same set of event procedures even though each individual element in the array can have different values for its properties are called ___________________
A
Array
B
control Array
C
array of control
D
None of the above
Question 24
An array of which each element is itself an array is called as ____________________
A
single array
B
multiple array
C
jagged array
D
Static array
Question 25
Name the key used to display the components of dialog box
A
ctrl +C
B
ctrl+T
C
ctrl + V
D
ctrl +S
Question 26
The _______________________ control is most often used as a container for images and icons that are employed by other controls
A
Icon
B
IconList
C
Image
D
ImageList
Question 27
The ImageList control has a property whose value determines the color that should be considered transparent on graphical operation
A
grayCode
B
grayColor
C
MaskColor
D
None of the above
Question 28
ListView control behaves much like a ListBox control whose ______________________ property has been set to 2-Extended.
A
LabelEdit
B
Listview
C
Multilevel
D
MultiSelect
Question 29
The _________________________ method returns the ListItem object at the specified coordinates
A
ListView
B
ListView's HitTest
C
set focus
D
SelectionItem
Question 30
_______________________ routine evaluates the maximum width of all the strings stored in that column
A
ListViewAdjustColumnWidth
B
LoadListViewFromRecordset
C
ListViewColumnWidth
D
None of the above
Question 31
Expand CBD
A
Component Based Development
B
Computer Based Development
C
Component Based Deployment
D
Computer Based Deployment
Question 32
A_______________ encapsulates the data, but not the processing associated with that data
A
Variable
B
CBD
C
BAS
D
UDT
Question 33
The common tool called ____________________________ which is a part of CASE
A
DCL
B
DML
C
UML
D
XML
Question 34
The child class automatically has all the _____________ functionality of the parent class
A
static
B
protected
C
private
D
public
Question 35
Members are not overridable by default. Still, we can use the _____________________ keyword to make our intentions clear
A
NoOverridable
B
NotOverridable
C
NonOverridable
D
Nonridable
Question 36
__________________ tells you if the object can be interpreted as a number
A
IsNotNumber
B
IsNumber
C
IsDate
D
IsNumeric
Question 37
The default implementation of _____________________ method returns the fully qualified type name of the object.
A
Equals
B
ToString
C
ReferenceEquals
D
GetType
Question 38
______________ Indicates a Clone method that provides a deep copy
A
IsClone
B
Idisposable
C
Icloneable
D
IsDispose
Question 39
_________________________ is the next level of multitasking.
A
parallal processing
B
multiexecution
C
multiprocessing
D
multithreading
Question 40
The term thread comes from _______________________ which is used to mean that every program is running in a certain context
A
execution of thread
B
thread of execution
C
sequence of the thread
D
none of the above
Question 41
State the following statements are True/False i) Windows Forms application uses Windows Forms controls. ii) Web form controls are similar to the Windows Forms controls, it supports both windows and web forms.
A
False, True
B
False, False
C
True, False
D
True, True
Question 42
The __________________________ consists of segments of pre-written code called ____________ that provide many of the functions that you need for developing .NET applications
A
.NET Framework Class Library, Classes
B
Classes, .NET Framework Class Library
C
MSDN, Object files
D
object files, MSDN
Question 43
State the following statements are True/False i) VB.Net executable program resides in a class or module ii) VB.Net is a case sensitive language.
A
True, True
B
True, False
C
False, False
D
False, True
Question 44
The size of the Boolean and Char datat types in VB.Net is __________ and __________ bytes respectively.
A
1 and 4
B
2 and 4
C
2 and 1
D
1 and 2
Question 45
State the statements are True/False related to select statement i) You can use any implicit data type in the Select statement ii) You can use multiple statements under a single case statement
A
True, False
B
True, True
C
False, True
D
False, False
Question 46
Each array in VB.Net is an ___________ and is inherited from the ___________ class
A
object, System.Arraycopy
B
Variable, System.Arraycopy
C
Variable, System.array
D
object, System.Array
Question 47
What is Event?
A
Is a data associated with an object
B
Signals by which an object notify something noteworth has occurred.
C
Operations that an object can perform.
D
All the above
Question 48
You can use the first two buttons at the top of the Properties window to sort the properties by ________________ or __________________
A
alphabetically, casewise
B
ascending, decending
C
chronological, category
D
category , alphabetically
Question 49
Find the appropriate class for the given exception Represents errors in ADO.NET components :_______________ when there is not enough memory to carry out an operation : ___________________
A
XmlException, OutOfMemoryException
B
OutOfMemoryException, DataException
C
DataException, OutOfMemoryException
D
DataException, InvalidOperationException
Question 50
___________________ property is used to store an exception trail. _________________ will contain the name of the routine generating the exception
A
catch, throw
B
InnerException, TargetSite
C
TargetSite, InnerException
D
help link, inner exception
Question 51
State the expected output of the query select empno, name from employee
A
employee number and name
B
employee number from the employee table
C
All the fields fron the table
D
Error in query
Question 52
__________ and ____________ are the two properties helps to find the stauts of last record and before last record in the dataset.
A
End of File, Before End of File
B
BOF, EOF
C
EOF, BOF
D
Before End of File, End of File
Question 53
ds.Tables("AddressBook").Rows(inc).Item(1) find the result after executing the statement
A
data will be retrieved from the table stored in the control called item
B
helps to update the content into the data base from the control called item.
C
helps to calculate with the data available in the table.
D
syntax error
Question 54
Pick the types of array available in VB i) dynamic array ii) Fixed size array iii) doggling array iv) Ragged array
A
i, ii only
B
i, ii, iiii only
C
i, iii, iv only
D
All the above
Question 55
Add([Index], [Key], [Picture]) As ListImage is the syntax used for
A
To add images at run time
B
To add images & pictures at design time
C
images as array
D
To add pictures at the load time
Question 56
Pick the modes supported by the ListView control i) Smallicon ii) List iii) Report iv) Menu
A
I, ii, iv only
B
I, ii, iiii only
C
I, iii, iv only
D
ii, iii, iv only
Question 57
The________ procedure retrieves the property value from the class and the __________ procedure assigns the property
A
Setclass, Getclass
B
Set , Get
C
Get , Set
D
Getclass, Setclass
Question 58
MyBase.New(theName, curSalary) represents
A
initialise constructor
B
access constructor
C
access parent class constructor
D
access child class constructor
Question 59
State True/False i) A clone is an identical copy of an object. ii) The clone’s state can not be changed from the original object’s state
A
False, False
B
False, True
C
True, False
D
True, True
Question 60
bThread.Name = "Subtracting thread" denotes
A
name assigned as subtracting thread
B
value subtracting thread assigned to the thread
C
value of the name is subtracting thread
D
syntax error
Question 61
State the following statements are True/False related to components of .NET frame work. i) .NET Framework consists of two main components called .NET Framework Class Library and the common Language Runtime. ii) .NET Framework Class Library provides pre-written code in the form of object files. iii) CLR is the foundation of the .NET Framework. iv) The Common Type System is a component of the .NET Framework class library.
A
False, True, False, True
B
True, True, False, False
C
True, False, True, False
D
False, True, True, False
Question 62
Find the output of the following program Module MyHelloWorldModule Sub Main() Console.Write("Please, write your good name: ") Dim name As String = Console.ReadLine() Console.WriteLine("Hello {0}, Good Luck in VB.Net", name) End Sub End Module Assume input for the program is : varun
A
varun Hello, Good Luck in VB.Net
B
Hello varun, Good Luck in VB.Net
C
Hello, Good Luck in VB.Net
D
Runtime error
Question 63
Find the output of the following Public Sub Main() Dim name As String = "Faraz Rasheed" Dim ch As Char For Each ch in name Console.WriteLine(ch) End For End Sub
A
Print only first half of the name ie Faraz.
B
Print the whole name in a single line.
C
Print each character of the name variable on a separate line
D
Generates run time error.
Question 64
Arrange the order how to add a reference to the data object in VB 2005 i) Click OK ii) Then click Add reference iii) click project from the menu bar iv)From the dialogue box, select the .NET tab. Scroll down and select the System.Data item
A
iv, iii, i, ii
B
iii, i, ii, iv
C
iii, ii, iv, i
D
iv, ii, i, iii
Question 65
Arrange the following in a sequence to add a new row to the data set. i) Create an Object from this variable by using the ii) Create a DataRow variable NewRow() method of the DataSet Tables property iii) Use the Add method of the DataSet to add the new row iv) Assign values to the Items in the new Row
A
ii, i, iv, iii
B
iii, iv, i, ii
C
ii, iii, i, iv
D
ii, iv, iii, i
Question 66
State the following statements True/False i) You can not create two controls of the same class and assign them an identical Name property ii) Controls that belong to the same control array share the same set of event procedures
A
False, False
B
True, False
C
False, True
D
True, True
Question 67
elements will be used inside the control. ______________________ properties affects the line which is drawn. The ___________________ property affects how the end user can modify the text associated with each Node object.
A
LabelEdit, Style, LineStyle
B
LineStyle, Style, LabelEdit
C
LabelEdit, LineStyle, Style
D
style, LineStyle, LabelEdit
Question 68
Add([Index], [Key], [Text], [Icon], [SmallIcon]) As ListItem where i) Index: is the position at which you place the new item ii) Key: is the inserted item's optional key in the ListItems collection ii) Text : is the string displayed in the control iv) SmallIcon: is an index or a key in the ImageList control
A
True, True, True, True
B
True, False, True, True
C
True, True, False, True
D
False, True, True, True
Question 69
Find the ouput of the following Dim o As String = "ABCD" Dim p As String = "ABCD" Dim q As String = "EFGH" Console.WriteLine(Object.ReferenceEquals(o, p)) p = q Console.WriteLine(Object.ReferenceEquals(p, q)) Console.WriteLine(Object.ReferenceEquals(o, p))
A
True, True, False
B
True, False, False
C
True, True, True
D
Syntax error
Question 70
State the following statements True/False pertaining to thread i) A thread runs an object, not a procedure ii) A single object can have multiple threads running different or even the same methods
A
True, True
B
True, False
C
False, False
D
False, True
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 70 questions to complete.
List
Return
Shaded items are complete.
12345
678910
1112131415
1617181920
2122232425
2627282930
3132333435
3637383940
4142434445
4647484950
5152535455
5657585960
6162636465
6667686970
End
Return