Question 1:
A . . . . . . . . is an item of data whose values do not change while the application is running.
A.
Literal constant
B.
Variable
C.
Auto variable
D.
Extern variable
Answer: _________
Question 2:
Which of the following statements prevents a form from being closed?
A.
e.Cancel = False
B.
e.Cancel = True
C.
e.Close = False
D.
sender.Close = False
Answer: _________
Question 3:
A . . . . . . . . is an example that accepts user input and is determined by a label control.
A.
Text box
B.
Property box
C.
Tool box
D.
Button
Answer: _________
Question 4:
A variable's . . . . . . . . indicates how long the variable stays in the computer's internal memory.
A.
Scope
B.
Lifetime
C.
Place
D.
Position
Answer: _________
Question 5:
When you declare a variable in the form's declaration section, it is called as . . . . . . . .
A.
Class-level variable
B.
Object variable
C.
Procedure-level variable
D.
Auto variable
Answer: _________
Question 6:
. . . . . . . . method is used for accessing any number of characters in a String.
A.
Substring
B.
Contains
C.
IndexOf
D.
CharAt
Answer: _________
Question 7:
How many default buttons can a form have?
A.
1
B.
2
C.
3
D.
4
Answer: _________
Question 8:
. . . . . . . . is a variable that remains in memory, and retains its value even after the procedure declaring it ends.
A.
Procedure-level variable
B.
Class-level variable
C.
Static variable
D.
Dynamic variable
Answer: _________
Question 9:
To determine whether a variable is being passed to a procedure by value or by reference, you will need to examine . . . . . . . .
A.
the Call statement
B.
the procedure header
C.
the statements entered in the procedure
D.
the procedure footer
Answer: _________
Question 10:
The items in a list box are sorted based on the . . . . . . . . characters in each item.
A.
Leftmost
B.
Rightmost
C.
Previous
D.
Next
Answer: _________
Question 11:
To declare a class-level named constant you declare it as . . . . . . . .
A.
Public
B.
Dynamic
C.
Private
D.
Static
Answer: _________
Question 12:
What is the purpose of the label control?
A.
To display the text that the user is not allowed to edit while the application is not running
B.
To display the text that the user is allowed to edit while the application is not running
C.
To display the text that the user is not allowed to edit while the application is running
D.
To display the text that the user is allowed to edit while the application is running
Answer: _________
Question 13:
single dimensional array requires one indexes to identify a particular element.
A.
TRUE
B.
FALSE
Answer: _________
Question 14:
Each menu element is considered as . . . . . . . .
A.
Class
B.
Object
C.
Instance
D.
Member
Answer: _________
Question 15:
Which of the following section is used to make text appear around the image?
A.
Wrapping style
B.
Text style
C.
Image properties
D.
Align
Answer: _________
Question 16:
. . . . . . . . operator returns true, if any of the sub-condition is true.
A.
AND
B.
OR
C.
NOT
D.
NAND
Answer: _________
Question 17:
To see the underlined hidden access key, you can do so, by pressing the . . . . . . . . key.
A.
Alt
B.
Ctrl
C.
Shift
D.
Enter
Answer: _________
Question 18:
You use . . . . . . . . to include one or more menus on a Windows form.
A.
Menu control
B.
Menu strip control
C.
Form control
D.
Menu properties
Answer: _________
Question 19:
A form's . . . . . . . . event is triggered when the computer processes the Me.Close() statement.
A.
Close
B.
Closing
C.
FormClose
D.
FormClosing
Answer: _________
Question 20:
The main property of Picture Box, is LoadPicture and . . . . . . . . the picture .
A.
resize
B.
stretchable
C.
list
D.
caption
Answer: _________
Question 21:
. . . . . . . . prevents you from using undeclared variable in your code.
A.
Option Explicit On
B.
Option Implicit On
C.
Explicit Off
D.
Implicit Off
Answer: _________
Question 22:
. . . . . . . . data types hold either a true or false value
A.
string
B.
boolean
C.
variant
D.
date
Answer: _________
Question 23:
. . . . . . . . ensures every variable and named constant is declared with a data type.
A.
Option Infer Off
B.
Option Infer On
C.
Option On
D.
Option off
Answer: _________
Question 24:
Variable declared in a procedure have . . . . . . . . scope.
A.
Class
B.
Procedure
C.
Block
D.
Object
Answer: _________
Question 25:
In vb . . . . . . . . is the extension to represent project file.
A.
.frm
B.
.vbp
C.
.cls
D.
.vb
Answer: _________
Question 26:
What is wrong with the expression "const dblPi As Double = 3.141593"?
A.
Double is written
B.
Name should be DBLPi
C.
"const" starts with a "C"
D.
Value is too large
Answer: _________
Question 27:
A form's . . . . . . . . event is triggered when you click the Close button on its title bar.
A.
Close
B.
CloseForm
C.
FormClose
D.
FormClosing
Answer: _________
Question 28:
Which of the following is the caption part for the following Visual Basic command? MessageBox.Show("Delete Visual Basic?","VB.Net",MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
A.
MessageBoxButtons.YesNo
B.
MessageBoxIcon.Exclamation
C.
"VB.Net"
D.
"Delete Visual Basic?"
Answer: _________
Question 29:
Files that contain lines of text are known as . . . . . . . .
A.
Binary files
B.
Text files
C.
Character files
D.
Array files
Answer: _________
Question 30:
What is the result of the expression 10-2+20>2*14-2?
A.
Syntax error
B.
No resulting value found
C.
False
D.
True
Answer: _________
Question 31:
In . . . . . . . . , The size of array always remains the same-size doesn't change during the program execution.
A.
if ... then ..else
B.
do while
C.
dynamic array
D.
fixed array
Answer: _________
Question 32:
Designers usually include graphics to . . . . . . . . a portion of screen.
A.
Mesmerize
B.
Emphasize
C.
Attract
D.
Glorify
Answer: _________
Question 33:
What will be assigned to the dblAvg variable after the code has been executed? Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub – 1 Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
A.
0
B.
5
C.
6
D.
8
Answer: _________
Question 34:
A control is locked using . . . . . . . .
A.
Lock Controls
B.
Shared lock
C.
Fixed lock
D.
Lock
Answer: _________
Question 35:
The methods which loads the form into memory . . . . . . . . it on screen.
A.
load
B.
show
C.
display
D.
all of above
Answer: _________
Question 36:
Microsoft ActiveX Data Control 6 is insert from component , it is used to load ADO control.
A.
TRUE
B.
FALSE
Answer: _________
Question 37:
VB is tool that allows you to develop application in . . . . . . . .
A.
real time
B.
gui
C.
character
D.
none of these
Answer: _________
Question 38:
A . . . . . . . . resembles a table.
A.
One-dimensional array
B.
Two-dimensional array
C.
Three-dimensional array
D.
N-dimensional array
Answer: _________
Question 39:
By which button you can display the additional items?
A.
Display Button
B.
Show All Files Button
C.
Visible Button
D.
Show Button
Answer: _________
Question 40:
. . . . . . . . is a numeric variable used for accumulating something.
A.
Accumulator
B.
Counter
C.
Positive
D.
Negative
Answer: _________
Question 41:
The code contained in the . . . . . . . . allows an application to retrieve the contents of the Private variable associated with the property.
A.
Set Block
B.
Retrieve
C.
Get Block
D.
Getter Block
Answer: _________
Question 42:
Letter . . . . . . . . is the Exit menu's access key.
A.
X
B.
Y
C.
Z
D.
W
Answer: _________
Question 43:
In . . . . . . . . The size of the array can be changed at the run time- size changes during the program execution.
A.
TRUE
B.
FALSE
Answer: _________
Question 44:
The . . . . . . . . validator is used to display all of the validation error messages in a single location on aWeb page.
A.
CompareValidator
B.
RangeValidator
C.
RequiredFieldValidator
D.
ValidationSummary
Answer: _________
Question 45:
. . . . . . . . file very necessary to connect to the access data base file by ADO.
A.
.mdb
B.
.cls
C.
.frm
D.
.acca
Answer: _________
Question 46:
Which option is used to close the Solution?
A.
Close
B.
Close Solution
C.
Close All
D.
Exit
Answer: _________
Question 47:
In the following code, the body of If will execute if strFirst contains? If strFirst.ToUpper Like "B?LL" Then
A.
Bill
B.
Lii
C.
LL1
D.
123
Answer: _________
Question 48:
Each button has same height and width because they are . . . . . . . . the interface.
A.
Stacked
B.
Queued
C.
Clustered
D.
Heaped
Answer: _________
Question 49:
One of its most important properties of lable is . . . . . . . .
A.
background
B.
caption
C.
label
D.
text
Answer: _________
Question 50:
Each element in a two-dimensional array is identified by a unique combination of . . . . . . . .
A.
One subscript
B.
Two subscripts
C.
Three subscripts
D.
Zero subscript
Answer: _________
Question 51:
The text contained in the identifying label is entered using . . . . . . . .
A.
Sentence capitalization
B.
Book title capitalization
C.
Character capitalization
D.
Word capitalization
Answer: _________
Question 52:
The . . . . . . . . selection structure allows the programmer to specify that a different action is to be performed when the condition is True than when the condition is False.
A.
if ... then ..else
B.
do while
C.
dynamic array
D.
array
Answer: _________
Question 53:
The . . . . . . . . means the Directory List Box.
A.
drive list box
B.
picture box
C.
list box
D.
dirlist box
Answer: _________
Question 54:
Class is defined using . . . . . . . .
A.
Class statement
B.
Object statement
C.
Access specifier statement
D.
Instance statement
Answer: _________
Question 55:
What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90}
Array.Sort(intScores)
A.
78, 83, 75,90
B.
75,78, 83,90
C.
78,75,83,90
D.
90,83,78,75
E.
90,83,78,75
F.
78,75,83,90
G.
78, 83, 75,90
H.
75,78, 83,90
Answer: _________
Question 56:
text box can handle string (text) and numeric data but not images or pictures
A.
TRUE
B.
FALSE
Answer: _________
Question 57:
. . . . . . . . Executes the timer events at specified intervals of time
A.
list box
B.
radio
C.
check box
D.
timer controls
Answer: _________
Question 58:
Who displays the list of projects contained in current solution?
A.
Solution Explorer Window
B.
List Window
C.
Project Window
D.
Catalogue Window
Answer: _________
Question 59:
. . . . . . . . is used to store temporary data by programmers.
A.
Addressed Location
B.
Variable
C.
Pointer
D.
RAM
Answer: _________
Question 60:
Which of the following assigns the string "Rover" to the fifth element in a one-dimensional array named strPetNames?
A.
strPetNames(4) = "Rover"
B.
strPetNames[4] = "Rover"
C.
strPetNames(5) = "Rover"
D.
strPetNames.Items.Add(5) = "Rover"
Answer: _________
Question 61:
The . . . . . . . . is for displaying a list of drives available in your computer
A.
drive list box
B.
picture box
C.
list box
D.
dirlist box
Answer: _________
Question 62:
What will the following code display in the lblAsterisks control? For intX As Integer = 1 To 2
For intY As Integer = 1 To 3
lblAsterisks.Text = lblAsterisks.Text & "*"
Next intY
lblAsterisks.Text = lblAsterisks.Text &
ControlChars.NewLine
Next intX
A.
*** ***
B.
*** *** ***
C.
***
D.
*** *** *** ***
Answer: _________
Question 63:
What will be contained in Msg if grade entered by user is 'd'? If grade=="A"
Msg ="Excellent"
ElseIf grade=="B"
Msg="Very Good"
ElseIf grade=="C"
Msg="Good"
ElseIf grade=="D"
Msg="Fair"
Else
Msg="Fail"
EndIf
A.
Fair
B.
Fail
C.
Good
D.
Excellent
Answer: _________
Question 64:
. . . . . . . . is an underscore that is immediately preceded by a space and is located at the end of the physical line of code.
A.
Underscore
B.
Hyphen
C.
Line continuation character
D.
Line termination character
Answer: _________
Question 65:
The size property contains two numbers separated by comma, and a space. These numbers are . . . . . . . .
A.
width in pixel, height in pixel
B.
height in pixel, width in pixel
C.
height in cm, width in cm
D.
width in cm, height in cm
Answer: _________
Question 66:
vb is an . . . . . . . . in which one can develop, run, test & debug applications.
A.
object based programming language
B.
script language
C.
mobile application
D.
none of these
Answer: _________
Question 67:
The . . . . . . . . operator reverses the value of the condition.
A.
AND
B.
OR
C.
NOT
D.
NAND
Answer: _________
Question 68:
An . . . . . . . . statement is used to assign a value to an existing variable.
A.
Arithmetic
B.
Relational
C.
Logical
D.
Assignment
Answer: _________
Question 69:
VB is an . . . . . . . ..
A.
object based programming language
B.
script language
C.
mobile application
D.
none of these
Answer: _________
Question 70:
What value is stored in the intNum variable when the loop ends? For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum
A.
0
B.
1
C.
2
D.
3
Answer: _________
Question 71:
Which menu provides option for manipulating the control's on the form?
A.
Format menu
B.
Control Menu
C.
Manipulate Menu
D.
Property List
Answer: _________
Question 72:
A . . . . . . . . is a file that contains program instructions called code.
A.
Source file
B.
Object file
C.
Executable file
D.
Program file
Answer: _________
Question 73:
. . . . . . . . in the syntax gives the format you want to use.
A.
formatString
B.
format
C.
numericVariableName
D.
toString
Answer: _________
Question 74:
. . . . . . . . variables of a class are not visible to applications that use the instance of that class.
A.
Public
B.
Private
C.
Default
D.
Static
Answer: _________
Question 75:
To delete . . . . . . . . you must delete the contents of the form's text property.
A.
Title bar
B.
Properties window
C.
Text in text box
D.
Text in level
Answer: _________
Question 76:
Which of the following is false?
A.
A function can return one or more values to the statement that invoked it
B.
A procedure can accept one or more items of data passed to it
C.
The parameter List in a procedure header is optional
D.
At times, a memory location inside the computer's internal memory may have more than one name
E.
The sequence of the arguments listed in the Call statement should agree with the sequence of the parameters listed in the receiving procedure's header.
F.
The data type of each argument in the Call statement should match the data type of its corresponding parameter in the procedure header.
G.
The name of each argument in the Call statement should be identical to the name of its corresponding parameter in the procedure header.
H.
When you pass information to a procedure by value, the procedure stores a copy of each value it receives in a separate memory location.
Answer: _________
Question 77:
An object is the . . . . . . . . of the class.
A.
Instance
B.
Class
C.
Object
D.
User
Answer: _________
Question 78:
The most common event associated with the command button is the Click event,
A.
TRUE
B.
FALSE
Answer: _________
Question 79:
The Contains Method returns . . . . . . . . value.
A.
Integer
B.
Void
C.
Boolean
D.
String
Answer: _________
Question 80:
The functions header and footer contains the . . . . . . . . keyword.
A.
Function
B.
Struct
C.
Sub
D.
Class
Answer: _________
Question 81:
The file to which data is write is referred to as . . . . . . . .
A.
Input file
B.
Output file
C.
Random access file
D.
Sequential file
Answer: _________
Question 82:
. . . . . . . . method is used to reverse the values.
A.
Array.Reverse
B.
Array.Sort Desc
C.
Array.Sort Asc
D.
Array.rev
Answer: _________
Question 83:
The . . . . . . . . in a flowchart is called input/output symbol.
A.
Oval
B.
Rectangle
C.
Parallelogram
D.
Diamond
Answer: _________
Question 84:
. . . . . . . . initializes a new instance of Line class.
A.
BorderProperty
B.
Border
C.
Surround
D.
Line()
Answer: _________
Question 85:
The TabIndex value of a group box is 5. If the txtName control was the first control added to the group box, its TabIndex value will be . . . . . . . .
A.
1
B.
5.0
C.
5.1
D.
1.5
Answer: _________
Question 86:
To traverse two dimensional array you require . . . . . . . . loops.
A.
One
B.
Two
C.
Three
D.
Zero
Answer: _________
Question 87:
Files that read and write in consecutive order are known as . . . . . . . .
A.
Input files
B.
Output files
C.
Sequential access file
D.
Random access file
Answer: _________
Question 88:
Letter . . . . . . . . is a File's Menu access keys.
A.
A
B.
F
C.
B
D.
D
Answer: _________
Question 89:
Each access key in the interface should be . . . . . . . .
A.
Unique
B.
Can be common
C.
In small letter
D.
In capital letter
Answer: _________
Question 90:
Is there an error in the below code? Private _dblBonus As Double
Public ReadOnly Property Bonus As Double
Set(ByVal value As Decimal)
_dblBonus = value
End Set
End Property
A.
No error
B.
Runtime Error
C.
Compilation Error
D.
Syntax error
Answer: _________
Question 91:
In . . . . . . . . , The size of the array can be changed at the run timesize changes during the program execution.
A.
if ... then ..else
B.
do while
C.
dynamic array
D.
array
Answer: _________
Question 92:
Instead of entering the Option statements in the Code Editor window, you also can enter in the . . . . . . . .
A.
Properties window
B.
Project Designer Window
C.
File Manager
D.
Project Manager
Answer: _________
Question 93:
The number of characters contained in a String is stored as Integer in String's . . . . . . . .
A.
Substring property
B.
Length property
C.
Reverse property
D.
Index property
Answer: _________
Question 94:
Unary and Binary refer to the number of . . . . . . . . needed by the operator.
A.
Operation
B.
Operand
C.
Expression
D.
Operator
Answer: _________
Question 95:
How many times will the MessageBox.Show method in the following code be processed? For intCount As Integer = 4 To 11 Step 2
MessageBox.Show("Hello")
Next intCount
A.
3
B.
4
C.
5
D.
8
Answer: _________
Question 96:
To hide a section of code we click the . . . . . . . . box next to it.
A.
Minus
B.
Plus
C.
Bubble
D.
Multiply
Answer: _________
Question 97:
What output will be returned if the following Visual Basic code is executed? strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("Tn")
A.
True
B.
False
C.
11
D.
-1
E.
True
F.
False
G.
11
H.
12
Answer: _________
Question 98:
A form's . . . . . . . . determines the border style of the form.
A.
FormBorderStyle Property
B.
Form Border
C.
Form Style
D.
Border Property
Answer: _________
Question 99:
. . . . . . . . array size can be changed at run time .
A.
dynamic
B.
fixed
C.
single dimension
D.
double dimension
Answer: _________
Question 100:
A class-level variable is declared using . . . . . . . . keyword.
A.
Private
B.
Public
C.
Dim
D.
Static
Answer: _________
Question 101:
What will be assigned to the dblAvg variable after the code has been executed? Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
A.
0
B.
5
C.
6
D.
8
Answer: _________
Question 102:
. . . . . . . . determines the type of data stored in a variable.
A.
Function type
B.
Info Type
C.
Variable type
D.
Data Type
Answer: _________
Question 103:
If the elements in two arrays are related by their subscripts, the arrays are called as . . . . . . . . arrays.
A.
associated
B.
coupled
C.
matching
D.
parallel
Answer: _________
Question 104:
Which of the following property is used to specify a combo box's style in Visual Basic?
A.
Style
B.
ComboBoxStyle
C.
DropDownStyle
D.
DropStyle
Answer: _________
Question 105:
. . . . . . . . can be used instead of a Structure statement.
A.
Class
B.
Struct
C.
StructDef
D.
Sdef
Answer: _________
Question 106:
In the following Visual Basic code, what will be in msg, if str contains "ik"? Dim str as String
Dim msg as String
If str.toUpper="IK"
msg="Hi"
Else
msg="Bye"
EndIf
A.
Hi
B.
Bye
C.
Compiler Error
D.
Logical Error
Answer: _________
Question 107:
. . . . . . . . format. In this format, the windows associated with the project will stay within a single container known as the parent. Code and form-based windows will stay within the main container form.
A.
mdi
B.
sdi
C.
form
D.
code
Answer: _________
Question 108:
What will be the output of the following Visual Basic expression? Financial.Pmt (0.05, 3, 9000)
A.
-3043.88
B.
-3034.88
C.
-3408.48
D.
-3304.88
E.
-3304.88
F.
-3408.48
G.
-3034.88
H.
-3043.88
Answer: _________
Question 109:
What will be the value of num after the following Visual Basic code is executed? strName="Veronica Yardley"
num=strName.Length
A.
15
B.
16
C.
14
D.
17
Answer: _________
Question 110:
Checkbox in an interface is labeled using . . . . . . . . property.
A.
Text
B.
Caption
C.
Name
D.
Label
Answer: _________
Question 111:
Following properties is use full to link ms-access in ADODC.
A.
data source
B.
caption
C.
text
D.
list
Answer: _________
Question 112:
If the txtPrice control contains the value 75, what value will the Decimal.TryParse (txtPrice.Text,decPrice) method return?
A.
False
B.
True
C.
75
D.
75.00
Answer: _________
Question 113:
. . . . . . . . and . . . . . . . . operators use same symbol.
A.
Addition, subtraction
B.
Addition, multiplication
C.
Multiplication, Division
D.
Subtraction, negation
Answer: _________
Question 114:
The procedure associated with the KeyPress event has . . . . . . . . parameters.
A.
2
B.
3
C.
4
D.
1
Answer: _________
Question 115:
Arranging data in a specific order is called as . . . . . . . .
A.
Arranging
B.
Sorting
C.
Organizing
D.
Making
Answer: _________
Question 116:
An object's . . . . . . . . include methods and events.
A.
Attribute
B.
Behavior
C.
Instance
D.
Method
Answer: _________
Question 117:
The . . . . . . . . argument in syntax of Contains method represents the sequence of arguments you are searching.
A.
subString
B.
SearchString
C.
String
D.
Seq
Answer: _________
Question 118:
. . . . . . . . property sets the border of an image.
A.
BorderProperty
B.
Border
C.
Surround
D.
Line
Answer: _________
Question 119:
Which property determines the value that appears inside the control?
A.
Label Text property
B.
Label control's Text property
C.
Text Property
D.
Text Design Property
Answer: _________
Question 120:
While printing, the . . . . . . . . need to be active.
A.
Form
B.
Application
C.
Code editor window
D.
Timer
Answer: _________
Question 121:
. . . . . . . . is used to close both the code from code editor and control from the form.
A.
Me.close()
B.
This.close()
C.
Close All
D.
Close()
Answer: _________
Question 122:
In VB, The . . . . . . . . function extracts a substring from the original phrase or string
A.
TRUE
B.
FALSE
Answer: _________
Question 123:
The Indexof method returns . . . . . . . . value.
A.
Integer
B.
Boolean
C.
Void
D.
String
Answer: _________
Question 124:
. . . . . . . . method is used to remove space from beginning and end of a string.
A.
Trim
B.
Remove
C.
Truncate
D.
DeleteSpace
Answer: _________
Question 125:
In vb variable name cannot be more than . . . . . . . . characters
A.
255
B.
300
C.
355
D.
4000
Answer: _________
Question 126:
The main property of Image Control is stretchable,
A.
TRUE
B.
FALSE
Answer: _________
Question 127:
Which button is used to save a solution?
A.
Save Button
B.
Save As Button
C.
Save Solution Button
D.
Save All Button
Answer: _________
Question 128:
The act of initializing array is also called as . . . . . . . .
A.
Populating an array
B.
Assigning array
C.
Initializing
D.
Factoring and array
Answer: _________
Question 129:
The string literal are enclosed in . . . . . . . .
A.
Quotation mark
B.
Question mark
C.
Exclamation mark
D.
Dollar mark
Answer: _________
Question 130:
Which of the following statements assigns (to the intElements variable) the number of elements contained in the intNums array?
A.
intElements = Len(intNums)
B.
intElements = Length(intNums)
C.
intElements = intNums.Len
D.
intElements = intNums.Length
Answer: _________
Question 131:
. . . . . . . . and . . . . . . . . methods are used to align characters in a String.
A.
PadLeft, PadRight
B.
Left, Right
C.
LeftAlign, RightAlign
D.
AlignLeft, AlignRight
Answer: _________
Question 132:
What will be contained in Msg if grade entered by user is 'd'? grade=grade.Text.ToUpper
If grade=="A"
Msg ="Excellent"
ElseIf grade=="B"
Msg="Very Good"
ElseIf grade=="C"
Msg="Good"
ElseIf grade=="D"
Msg="Fair"
Else
Msg="Fail"
EndIf
A.
Fair
B.
Fail
C.
Good
D.
Excellent
Answer: _________
Question 133:
The . . . . . . . . is used to concat to Strings.
A.
Concatenation operator
B.
+ symbol
C.
Concat function
D.
Cat function
Answer: _________
Question 134:
Press . . . . . . . . to move the focus to the text box's access key named textBlue.
A.
Alt+b
B.
Alt+t
C.
Alt+x
D.
Alt+c
Answer: _________
Question 135:
. . . . . . . . Use to store alphanumeric values. A variable length string can store approximately 4 billion characters
A.
string
B.
boolean
C.
variant
D.
date
Answer: _________
Question 136:
To include the image file in the project itself, the Project Resource file radio button must be selected from which dialog box?
A.
Select Resource Dialog box
B.
Select Dialog box
C.
Resource Dialog Box
D.
Project Dialog Box
Answer: _________
Question 137:
. . . . . . . . is the process of putting two string together.
A.
concatenation
B.
grouping
C.
remove
D.
none of these
Answer: _________
Question 138:
Programmers use . . . . . . . . known as loops.
A.
Repetition structure
B.
Conditional structure
C.
Goto
D.
Unconditional structure
Answer: _________
Question 139:
A timer control is instantiated using . . . . . . . .
A.
Timer tool
B.
Control tool
C.
Stopwatch tool
D.
Timer Control Tool
Answer: _________
Question 140:
Which is used to change the name of the picture?
A.
Properties Window
B.
Change Name
C.
Edit Window
D.
Picture Properties Window
Answer: _________
Question 141:
Following are the logical operator
A.
+
B.
or
C.
/
D.
?
Answer: _________
Question 142:
In VB, A Function procedure returns a value and a . . . . . . . . does not return a value.
A.
function procedure
B.
procedure
C.
mdi
D.
sdi
Answer: _________
Question 143:
If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?
A.
Char
B.
Int
C.
Object
D.
String
Answer: _________
Question 144:
The variable name is also termed as . . . . . . . .
A.
Vname
B.
Alterable
C.
Identifier
D.
Uniform
Answer: _________
Question 145:
Which is the caption part for the following Visual Basic command? MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
A.
"Delete this record?"
B.
"Payroll"
C.
MessageBoxButtons.YesNo
D.
MessageBoxIcon.Exclamation
Answer: _________
Question 146:
There are 3 type of modules following are not include in it.
A.
form modules,
B.
standard modules
C.
class modules.
D.
basic module.
Answer: _________
Question 147:
Variables declared using a structure is known as . . . . . . . .
A.
Variables
B.
Auto variables
C.
Structure variables
D.
Constant variables
Answer: _________
Question 148:
A Radio button can be directly accessed from the keyboard using a . . . . . . . .
A.
Access key
B.
Shortcut key
C.
Assigned key
D.
Designated key
Answer: _________
Question 149:
The autoSize property of the label control that displays program output is automatically set to true.
A.
False
B.
True
Answer: _________
Question 150:
What will be assigned to the dblAvg variable after the code has been executed? Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / (intSub − 1) Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
A.
0
B.
5
C.
6
D.
8
Answer: _________
Question 151:
'e' parameter's . . . . . . . . property is used to determine the pressed key.
A.
Keypress
B.
KeyChar
C.
Keychar
D.
Key.Char
Answer: _________
Question 152:
status bar is display at the . . . . . . . . of the mdi forms.
A.
bottom
B.
top
C.
dim
D.
frame
Answer: _________
Question 153:
The rules of a programming language are called its . . . . . . . .
A.
Syntax
B.
Rules
C.
Grammar
D.
Order
Answer: _________
Question 154:
You use the . . . . . . . . tool to add a checkbox to a form.
A.
Button
B.
Radio
C.
Option
D.
Checkbox
Answer: _________
Question 155:
One of its most important properties of text box is . . . . . . . .
A.
background
B.
caption
C.
label
D.
text
Answer: _________
Question 156:
Toolbar is display at the . . . . . . . . of the mdi form.
A.
bottom
B.
top
C.
dim
D.
frame
Answer: _________
Question 157:
Text box is aligned using . . . . . . . .
A.
Alignment operator
B.
Edit menu
C.
Properties Window
D.
Format menu
Answer: _________
Question 158:
Option Strict On disallows conversion of String data type to . . . . . . . . implicitly.
A.
Double
B.
Object
C.
Character
D.
Array
Answer: _________
Question 159:
the . . . . . . . .control is placed in the form together with six OptionButtons. To determine the shape of the shape control.
A.
shape
B.
combo
C.
picture box
D.
images
Answer: _________
Question 160:
What is the result of the following statements? Dim strCities() As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
strCities(2)="Kolkata"
A.
Compilation Error
B.
Runtime Error
C.
strCity array is {"Bombay", "Ladakh", "Kolkata","Tamil Nadu"}
D.
strCity array is {"Bombay", "Chennai","Kolkata", "Tamil Nadu"}
Answer: _________
Question 161:
What output will be returned if the following Visual Basic code is executed? strVisualBasic = "Sanfoundry, VB.Net"
intCharIndex = strVisualBasic.IndexOf("VB")
A.
11
B.
12
C.
False
D.
True
Answer: _________
Question 162:
Files that are read by computer are called as . . . . . . . .
A.
Input file
B.
Output file
C.
Random access file
D.
Sequential file
Answer: _________
Question 163:
Using a named constant is advantageous because to change a value in future, change . . . . . . . .
A.
The value in the Const statement
B.
The value of the variable wherever it appears in the program
C.
The value of the variable anywhere in the program
D.
The value of the variable in one of the procedures in the program
Answer: _________
Question 164:
A . . . . . . . . displays a list of choices.
A.
List box
B.
Display box
C.
Choice box
D.
Check box
Answer: _________
Question 165:
The text box's . . . . . . . . event procedure prevents user from entering a specified character.
A.
KeyPress
B.
check
C.
checkchar
D.
checkinput
Answer: _________
Question 166:
What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90}
Array.Sort(intScores)
Array.Reverse(intScores)
A.
78, 83, 75,90
B.
75,78, 83,90
C.
78,75,83,90
D.
90,83,78,75
Answer: _________
Question 167:
Progress bar is always work with . . . . . . . .control.
A.
text box
B.
timer
C.
menu
D.
none of these.
Answer: _________
Question 168:
Data in an array can be distinguished using . . . . . . . . number.
A.
Reference
B.
Subscript
C.
Array
D.
ID
Answer: _________
Question 169:
Is there an error in the below code? Private _intSide As Integer
Public Property Side As Integer
_intSide=_intSide+2
End Property
A.
No error
B.
Runtime Error
C.
Syntax error
D.
Compilation Error
Answer: _________
Question 170:
What will be in Msg after the following code is evaluated? If 5*3 OrElse 3^2 Then
Msg="Hi"
Else
Msg="Bye"
EndIf
A.
Hi
B.
Bye
C.
True
D.
False
Answer: _________
Question 171:
. . . . . . . . refers to the process of locating and correcting errors.
A.
Testing
B.
Debugging
C.
Retransforming
D.
Correcting
Answer: _________
Question 172:
. . . . . . . . variables are not reinitialized each time Visual Invokes a procedure and therefore retains or preserves value even when a procedure ends
A.
static
B.
public
C.
local
D.
general
Answer: _________
Question 173:
Which of the following Case clauses is invalid in a Select Case statement whose selectorExpression is an Integer variable named intCode?
A.
Case Is>7
B.
Case 3,5
C.
Case 1 to 4
D.
Case "A"
Answer: _________
Question 174:
Following are the concatenation operator
A.
+
B.
&
C.
&&
D.
none of theses
Answer: _________
Question 175:
A . . . . . . . . is a special computer that serves webpages.
A.
Server
B.
Host
C.
Client
D.
Router
Answer: _________
Question 176:
To covert a number from one data type to another, you use the . . . . . . . .
A.
Convert class
B.
Parser
C.
Literal constant
D.
Object
Answer: _________
Question 177:
Programmers use . . . . . . . . when they need to store related items in an array, even though the members have different data type.
A.
Structure variable
B.
Variable
C.
Auto variable
D.
Constant variable
Answer: _________
Question 178:
You can set the control's tab index property using . . . . . . . .
A.
Properties window
B.
Control Window
C.
File
D.
Edit
Answer: _________
Question 179:
A class . . . . . . . . all the behavior and attributes of an object.
A.
Encapsulates
B.
Abstracts
C.
Inherits
D.
Instantiate
Answer: _________
Question 180:
When referring to the method's return value in code, one should use the . . . . . . . . value rather than the integer.
A.
DoubleReturn
B.
BooleanResults
C.
charResult
D.
DialogResult
Answer: _________
Question 181:
The background color of a Web page is determined by the . . . . . . . . property.
A.
BackColor
B.
BackgroundColor
C.
BgColor
D.
BColor
Answer: _________
Question 182:
You use the . . . . . . . . constant to include the Exclamation icon in a message box.
A.
MessageBox.exclamation
B.
MessageBox.Iconexclamation
C.
MessageBoxIcon.Exclamation
D.
MessageBoxWarning.Icon
Answer: _________
Question 183:
What is wrong with the expression "static dblPi AsDouble"?
A.
Double is written
B.
Nothing is wrong
C.
"Static" starts with a "S"
D.
Value is not given
Answer: _________
Question 184:
What will be in Msg after the following code is evaluated? If 5*3>3^2 AndAlso True OrElse False Then
Msg="Hi"
Else
Msg="Bye"
Endif
A.
Hi
B.
Bye
C.
True
D.
False
Answer: _________
Question 185:
The . . . . . . . . operator allows you to use pattern matching characters to determine whether one String is equal to another String.
A.
Like
B.
Pattern
C.
Match
D.
StringMatch
Answer: _________
Question 186:
When you start an application, the computer sends the focus to the control whose TabIndex is . . . . . . . .
A.
One
B.
Last TabIndex (that is if we have 8 control's at 8th Tab Index)
C.
Zero
D.
Two
Answer: _________
Question 187:
What is the result of the expression 10-2+20 ><2*25-2?
A.
Syntax error
B.
No resulting value found
C.
False
D.
True
Answer: _________
Question 188:
Object respond to an event by writing . . . . . . . .
A.
Operations
B.
Event procedures
C.
Defining events
D.
Defining actions
Answer: _________
Question 189:
If array is of String type all values are . . . . . . . . by default.
A.
null
B.
Null
C.
0
D.
Nothing
Answer: _________
Question 190:
Which of the following statements pauses program execution for 1 second?
A.
System.Threading.Thread.Pause(1000)
B.
System.Threading.Thread.Pause(1)
C.
System.Threading.Thread.Sleep(1000)
D.
System.Threading.Thread.Sleep(100)
Answer: _________
Question 191:
You refer to the member variable by preceding its name with the name of the . . . . . . . . in which it is defined.
A.
Variable
B.
Auto variable
C.
Structure variable
D.
Constant variable
Answer: _________
Question 192:
During runtime radio button can be selected, if a radio button is already selected or not by using the . . . . . . . . property.
A.
Checked
B.
Unchecked
C.
On
D.
Selected
Answer: _________
Question 193:
What is wrong with the following statement? Dim strCities As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
A.
static keyword missing
B.
array elements should be initialized using single quotes
C.
array elements should be in square brackets
D.
array name should be strCities()
Answer: _________
Question 194:
The items in a list box belong to a collection called the . . . . . . . .
A.
Collection
B.
Items Collection
C.
Items Add
D.
Add
Answer: _________
Question 195:
What output will be returned if the following Visual Basic code is executed? strCityState = "Nashville, TN"
blnIsContained = strCityState.Contains("Tn")
A.
True
B.
False
C.
11
D.
12
E.
True
F.
False
G.
11
H.
12
Answer: _________
Question 196:
You refer to the structure variable by its . . . . . . . .
A.
Name
B.
Data type
C.
Dot operator
D.
Member name
Answer: _________
Question 197:
. . . . . . . . is used to separate related controls from other controls in the form.
A.
GroupBox
B.
GroupBox tool
C.
View Window
D.
Groups
Answer: _________
Question 198:
In the following code, the while loop will execute if strId would have been . . . . . . . . Do While strId Like "###*"
A.
123ABC
B.
Fgh2
C.
Xzya
D.
Xyza
Answer: _________
Question 199:
VB is the example of. . . . . . . .software .
A.
backhand
B.
front end
C.
o.s
D.
none of these.
Answer: _________
Question 200:
The . . . . . . . . allows us to browse through the various properties, events and methods that are made available to us
A.
properties window
B.
project explorer
C.
object
D.
object browser
Answer: _________
Question 201:
What will be in Msg after the following code is evaluated? If 3>6 AndAlso 7>4 then
Msg="Hi"
Else
Msg="Bye"
EndIf
A.
Hi
B.
Bye
C.
True
D.
False
Answer: _________
Question 202:
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. The statement intSales(3) = intSales(3) + 10 will .
A.
replace the 500 amount with 10
B.
replace the 500 amount with 510
C.
replace the 900 amount with 10
D.
replace the 900 amount with 910
Answer: _________
Question 203:
The . . . . . . . . indicates the purpose of the menu element.
A.
Caption
B.
Text
C.
Name
D.
Properties
Answer: _________
Question 204:
. . . . . . . . structure can handle conditions with multiple outcomes in an easier manner
A.
select case control
B.
next
C.
if condition
D.
nested
Answer: _________
Question 205:
The . . . . . . . . is used to show quick reference to the various elements of a project namely form, classes and modules
A.
mdi
B.
project explorer
C.
menu bar
D.
toolbox
Answer: _________
Question 206:
How many times will the MessageBox.Show method in the following code be processed? For count As Integer = 5 to 9 Step 5
MessageBox.Show("Hi")
Next count
A.
0
B.
1
C.
2
D.
4
Answer: _________
Question 207:
The class statement groups . . . . . . . . item in one unit.
A.
Related
B.
Different
C.
Same access specifier items
D.
Different access specifier items
Answer: _________
Question 208:
Which box displays the current values of each of the properties?
A.
Settings Box
B.
Display Box
C.
Object box
D.
Value Box
Answer: _________
Question 209:
In VB, . . . . . . . . is the function that rounds up a number to a certain number of decimal places.
A.
sqrt()
B.
round()
C.
abs()
D.
len()
Answer: _________
Question 210:
Which setting gives the control a 3-dimensional appearance?
A.
3D appearance
B.
Fixed3D Border Style
C.
Set3D
D.
Appear3D
Answer: _________
Question 211:
The default property for a command control is:
A.
caption
B.
text
C.
list
D.
background
Answer: _________
Question 212:
What is the result of the expression 10-5>3*4-2?
A.
Syntax error
B.
No resulting value found
C.
False
D.
True
Answer: _________
Question 213:
The Cancel Button's procedure is accessed by . . . . . . . . key.
A.
Esc
B.
Alt
C.
Ctrl
D.
Shift
Answer: _________
Question 214:
What is the comparison operator to find if two values are equal?
A.
equalsto
B.
=
C.
EqualsTo
D.
Equals
Answer: _________
Question 215:
The range of Integer data type is . . . . . . . . to . . . . . . . .
A.
-2,147,483,648 to 2,147,483,647
B.
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
C.
+/-4.94065645841247 × 10-324 to +/-1.79769313486231 × 10308
D.
-32,768 to 32,767
Answer: _________
Question 216:
The . . . . . . . . method creates a periodic payment on either a loan or an investment.
A.
Financial
B.
Pmt
C.
Financial.Pmt
D.
Calculate
Answer: _________
Question 217:
The data control s used to link . . . . . . . .
A.
oracle
B.
ms-excel
C.
ms-access
D.
none of these
Answer: _________
Question 218:
Which of the following statement is used to define a class in visual basic?
A.
Event class statement
B.
Class statement
C.
Form class statement
D.
Event statement
Answer: _________
Question 219:
Which property specifies the position of the upper left corner of the control?
A.
Top Property
B.
Position Property
C.
Location Property
D.
Starting Position Property
Answer: _________
Question 220:
The . . . . . . . . method converts a string to a number.
A.
Tryparse
B.
Parse
C.
Convert
D.
Extern
Answer: _________
Question 221:
An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?
A.
Dim workers(4) As Employee
B.
Dim workers(5) As Employee
C.
Dim workers As Employee(4)
D.
Dim workers As Employee(5)
Answer: _________
Question 222:
In the below statement when true is returned? If str="USE" Xor strln="USE" Then
A.
When both the sub-conditions are true
B.
When only one sub-condition is true
C.
When both the sub-conditions are false
D.
It never returns true
Answer: _________
Question 223:
Which of the following rounds the contents of the intNum variable to three decimal places?
A.
Math.Round(3, intNum)
B.
Math.Round(intNum, 3)
C.
Round.Math(intNum, 3)
D.
Round.Math(3, intNum)
Answer: _________
Question 224:
. . . . . . . . this control is use to display the images
A.
image
B.
combo
C.
shape
D.
text
Answer: _________
Question 225:
. . . . . . . . data type can store any type of data.
A.
Object
B.
Universal
C.
DataType
D.
Common
Answer: _________
Question 226:
The size of . . . . . . . . is determined by the label's margin property.
A.
margin lines
B.
label
C.
border lines
D.
label lines
Answer: _________
Question 227:
The set of statements contained in each path is referred to as a . . . . . . . .
A.
Condition block
B.
Statement block
C.
Path block
D.
IfElse block
Answer: _________
Question 228:
While the Picture Box tool is included in the form, a triangle appears in the upper-left corner of the control?
A.
Edit Box
B.
Property Box
C.
Task box
D.
Image box
Answer: _________
Question 229:
What is the value of len in the following Visual Basic code? Dim strCities() As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
Dim len As Integer
len = strCities.Length()
A.
4
B.
0
C.
3
D.
5
Answer: _________
Question 230:
The . . . . . . . . and . . . . . . . . buttons are examples of many button controls found in Windows applications.
A.
Ok and Cancel
B.
Ok and Exit
C.
Exit and Cancel
D.
Try again and Cancel
Answer: _________
Question 231:
Programmers use . . . . . . . . when they need to pass a group of related variables.
A.
Structure variable
B.
Variable
C.
Auto variable
D.
Constant variable
Answer: _________
Question 232:
. . . . . . . . are operations that the object is capable of performing.
A.
Methods
B.
Events
C.
Instances
D.
Attributes
Answer: _________
Question 233:
Which of the following toolbox is used to include an image on the Visual Basic form?
A.
Add Image box
B.
Picture Box
C.
Add Picture Box
D.
Image box
Answer: _________
Question 234:
'e' parameter's . . . . . . . . property is used to cancel the key if not accepted in the text area.
A.
Remove
B.
RemoveChar
C.
Handled
D.
handled
Answer: _________
Question 235:
. . . . . . . . is generally used to emphasize the text.
A.
Italics
B.
Underline
C.
Bold
D.
Regular
Answer: _________
Question 236:
What happens when both the minimize box and maximize box property are set to false?
A.
Both are disabled
B.
This situation shows an exception
C.
This situation shows an error
D.
Both are removed from the title bar
Answer: _________
Question 237:
You assign an access key by including an . . . . . . . . option in the control's caption or identifying label.
A.
&
B.
$
C.
#
D.
@
Answer: _________
Question 238:
One can display a message box using the . . . . . . . . method.
A.
MessageBox
B.
AlertBox.View
C.
MessageBox.Show
D.
None of the above
Answer: _________
Question 239:
in . . . . . . . . box & . . . . . . . . can edit in run time
A.
text box & combo box
B.
list and combo
C.
label and text
D.
all of these.
Answer: _________
Question 240:
. . . . . . . . is a programming language that allows the programmer to use objects to accomplish his goals.
A.
Structured programming language
B.
Object-oriented programming language
C.
Top-down programming language
D.
Bottom-up programming language
Answer: _________
Question 241:
When you have a loop within a loop, then you have created a . . . . . . . ..
A.
select case control
B.
next
C.
if condition
D.
nested loop
Answer: _________
Question 242:
In VB, The while loop is end by . . . . . . . .
A.
stop
B.
next
C.
wend
D.
nested
Answer: _________
Question 243:
Following are the not condition operator .
A.
>
B.
<
C.
<>
D.
mod
Answer: _________
Question 244:
The text of many controls contain an underlined letter known as . . . . . . . .
A.
Access keys
B.
Underlined keys
C.
Keys
D.
Hidden keys
Answer: _________
Question 245:
Which property contains a number that represents the order in which the control was added to the form?
A.
TabIndex property
B.
Order property
C.
Tab order property
D.
Index property
Answer: _________
Question 246:
The requirement for not repeating the instructions is referred to as the . . . . . . . .
A.
Loop exit condition
B.
Looping condition
C.
Conditional statement
D.
Iterative statement
Answer: _________
Question 247:
To declare the variable in vb . . . . . . . .-this key word is used
A.
bottom
B.
top
C.
dim
D.
frame
Answer: _________
Question 248:
If the tryparse method determines that the string cannot be converted to the data type, it assigns . . . . . . . . to the variable.
A.
-1
B.
1
C.
0
D.
2
Answer: _________
Question 249:
A . . . . . . . . cannot change its value while the application is running.
A.
Constant variable
B.
Class variable
C.
Named constant
D.
Static constant
Answer: _________
Question 250:
The . . . . . . . .is show under or below the Project Explorer window
A.
properties window
B.
project explorer
C.
menu bar
D.
toolbox
Answer: _________
Question 251:
In Visual Basic, you use . . . . . . . . to write a stream of characters.
A.
StreamWriter object
B.
StreamWriter class
C.
StreamReader object
D.
StreamReader class
Answer: _________
Question 252:
. . . . . . . . uses standardized symbols to describe the steps of a procedure.
A.
Pseudocode
B.
Source code
C.
Flowchart
D.
Algorithm
Answer: _________
Question 253:
Objects are . . . . . . . . from a class.
A.
Instantiated
B.
Evaluated
C.
Printed
D.
Outdated
Answer: _________
Question 254:
And operator checks both the sub-conditions whereas AndAlso operator does . . . . . . . .
A.
Short-circuit evaluation
B.
Short-hand evaluation
C.
Short evaluation
D.
Circuit evaluation
Answer: _________
Question 255:
A . . . . . . . . occurs while forgetting to enter an instruction, or entering the instruction in wrong order.
A.
Logical errors
B.
Syntax errors
C.
Exceptions
D.
Application shut down
Answer: _________
Question 256:
The appropriate . . . . . . . . setting on a label depends on label's purpose.
A.
BorderStyle property
B.
AutoSize property
C.
Length property
D.
Format Property
Answer: _________
Question 257:
in . . . . . . . . we can edit in run time
A.
text box
B.
combo
C.
label
D.
all of these.
Answer: _________
Question 258:
Which is used to check one among both the conditions in a given if statement?
A.
OrElse
B.
AndAlso
C.
NOT
D.
OR
Answer: _________
Question 259:
ADO stands for . . . . . . . .
A.
activex data objects
B.
activex variable objects
C.
another data object
D.
none of these.
Answer: _________
Question 260:
What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90}
Array.Reverse(intScores)
A.
78,75,83,90
B.
90,75,83,78
C.
78, 83, 75,90
D.
75,78, 83,90
E.
78, 83, 75,90
F.
75,78, 83,90
G.
78,75,83,90
H.
90,75,83,78
Answer: _________
Question 261:
. . . . . . . . Displays a list of items from which a user can select one.
A.
list box
B.
radio
C.
check box
D.
none of these
Answer: _________
Question 262:
The . . . . . . . . setting removes the form border.
A.
None
B.
Fixed Single
C.
Single
D.
Remove
Answer: _________
Question 263:
Who displays the item contained in each project?
A.
Record Window
B.
List Window
C.
Solution Explorer Window
D.
Index Window
Answer: _________
Question 264:
The . . . . . . . . is show under or below the Project Explorer window
A.
properties window
B.
project explorer
C.
menu bar
D.
toolbox
Answer: _________
Question 265:
Which logical operator does not allow us to combine two or more conditions?
A.
AND
B.
OR
C.
NOT
D.
NAND
Answer: _________
Question 266:
The . . . . . . . . allows you to abbreviate an assignment statement.
A.
Arithmetic assignment operator
B.
Shorthand operator
C.
Long operator
D.
Predefined operator
Answer: _________
Question 267:
Designers generally use . . . . . . . . colour for the background, and . . . . . . . . for the text.
A.
Blue, pink
B.
White, black
C.
Black, white
D.
Pink, blue
Answer: _________
Question 268:
The timer state is determined by . . . . . . . .
A.
State property
B.
Timer control
C.
Enabled property
D.
Visible property
Answer: _________
Question 269:
The . . . . . . . . validator is used to verify that a control contains data.
A.
CompareValidator
B.
RangeValidator
C.
RequiredFieldValidator
D.
ValidationSummary
Answer: _________
Question 270:
ADO is ActiveX-based, it can not work in different platforms and different programming languages.
A.
TRUE
B.
FALSE
Answer: _________
Question 271:
. . . . . . . . is used to take decision .
A.
if condition
B.
while loop
C.
for loop
D.
wend
Answer: _________
Question 272:
The . . . . . . . . operator is used to divide two integers.
A.
Addition
B.
Modulus
C.
Subtraction
D.
Integer division
Answer: _________
Question 273:
Margin lines are . . . . . . . . in colour.
A.
Blue
B.
Red
C.
Green
D.
Black
Answer: _________
Question 274:
Text box's ReadOnly Property is set to . . . . . . . . by default.
A.
True
B.
False
Answer: _________
Question 275:
. . . . . . . . in flowchart is used to represent a for clause.
A.
Circle
B.
Rectangle
C.
Parallelogram
D.
Hexagon
Answer: _________
Question 276:
Designers generally avoid using . . . . . . . . and . . . . . . . . in an interface.
A.
Italics and underline
B.
Underline and bold
C.
Bold and italics
D.
Regular and bold
Answer: _________
Question 277:
. . . . . . . . is used to differentiate the one redio button group to another radio button group.
A.
bottom
B.
top
C.
dim
D.
frame
Answer: _________
Question 278:
A constructor is a . . . . . . . .
A.
A function procedure
B.
A sub procedure
C.
Either a function procedure or a sub procedure
D.
A property procedure
Answer: _________
Question 279:
The main property of ADODC control property is . . . . . . . .
A.
data source
B.
caption
C.
text
D.
none of these.
Answer: _________
Question 280:
Designers at times use colour as the means of . . . . . . . . a user interface.
A.
Identification
B.
Charming
C.
Fascinating
D.
Exquisite
Answer: _________
Question 281:
in VB, . . . . . . . . is called integrated because we can access virtually all of the development tools
A.
ide
B.
tool bar
C.
menu bar
D.
none of these.
Answer: _________
Question 282:
What is a class definition?
A.
It defines object
B.
It defines the appearance and behavior of an object
C.
It defines namespace
D.
It is a prototype
Answer: _________
Question 283:
A text box's . . . . . . . . property specifies whether the text box has scroll bar.
A.
Multiline Property
B.
ReadOnly Property
C.
ReadWrite Property
D.
ScrollBars Property
Answer: _________
Question 284:
If the padCharacter is omitted from the syntax of the padLeft or PadRight, the default is . . . . . . . .
A.
Space
B.
*
C.
/
D.
?
Answer: _________
Question 285:
Hungarian notations name are entered using . . . . . . . .
A.
camel case
B.
upper case
C.
lower case
D.
both alphabets and numbers
Answer: _________
Question 286:
The . . . . . . . . in a two-dimensional array specifies the elements row and column position.
A.
Superscript
B.
Subscript
C.
Row number
D.
Column number
Answer: _________
Question 287:
How many times will the MessageBox.Show method in the following code be processed? intCount =0
Do While intCount > 3
MessageBox.Show("Hello")
intCount = intCount + 1
Loop
A.
0
B.
1
C.
3
D.
4
Answer: _________
Question 288:
What will be the output of the following Visual Basic expression? -Financial.Pmt (0.06/12, 5*12, 12000)
A.
200
B.
231.99
C.
345
D.
324.99
Answer: _________
Question 289:
A suggestion for fixing the error appears in the . . . . . . . .
A.
Error correction window
B.
Error detection window
C.
Error location window
D.
Properties window
Answer: _________
Question 290:
Two procedures can have procedure-level variable whose names are same.
A.
True
B.
False
Answer: _________
Question 291:
To include an image on the form we use which toolbox?
A.
Picture Box
B.
Image box
C.
Add Image box
D.
Add Picture Box
Answer: _________
Question 292:
An . . . . . . . . function will display a message box where the user can enter a value.
A.
msgbox()
B.
inputbox()
C.
print
D.
nested
Answer: _________
Question 293:
What will be in text, if Intid contains 2? Select Case Intid
Case 1
Text="Jannet"
Case 2 to 4
Text="Mark"
Case 5, 7
Text="Jerry"
Case Else
Text="Sue"
End Select
A.
Jannet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 294:
The . . . . . . . . validator is used to verify that an entry is within the specified minimum and maximum values.
A.
CompareValidator
B.
RangeValidator
C.
RequiredFieldValidator
D.
ValidationSummary
Answer: _________
Question 295:
Each memory location listed in the parameterList in the procedure header is referred to as . . . . . . . .
A.
an address
B.
a constraint
C.
a parameter
D.
a value
Answer: _________
Question 296:
A function can receive information either by value or by . . . . . . . .
A.
Reference
B.
Address
C.
Pointer
D.
Value
Answer: _________
Question 297:
In VB, . . . . . . . . is the function that returns the absolute value of a number.
A.
sqrt()
B.
round()
C.
abs()
D.
len()
Answer: _________
Question 298:
The item that appears in the text portion of a combo box is stored in which property?
A.
SelectedText
B.
SelectedValue
C.
Text
D.
TextItem
Answer: _________
Question 299:
Option Strict On disallows conversion of Double data type to . . . . . . . . implicitly.
A.
Double
B.
Object
C.
Character
D.
String
Answer: _________
Question 300:
In the following code, the body of If will execute if txtState.Text contains? If txtState.Text Like "K*" Then
A.
K
B.
K123
C.
K4
D.
4K
Answer: _________
Question 301:
A millisecond is . . . . . . . . of a second.
A.
1/1000
B.
1/100
C.
1/10
D.
1/10000
Answer: _________
Question 302:
. . . . . . . . in Visual Basic has characteristics such as color and size, shape, font style, background colour, width, height etc.
A.
properties window
B.
project explorer
C.
object
D.
object browser
Answer: _________
Question 303:
You enter the ampersand to the . . . . . . . . of the character, you want to designate as access key.
A.
Immediate right
B.
Right
C.
Immediate left
D.
Left
Answer: _________
Question 304:
. . . . . . . . method allows you to insert anywhere in the string.
A.
Remove
B.
Insert
C.
Import
D.
Delete
Answer: _________
Question 305:
As per the syllabus we study version of VB is . . . . . . . .
A.
6
B.
4
C.
6.22
D.
3.33
Answer: _________
Question 306:
Object Browser are open from the . . . . . . . . or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects
A.
view menu
B.
tool menu
C.
insert menu
D.
object browser
Answer: _________
Question 307:
How many times will the MessageBox.Show method in the following code be processed? For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum
A.
6
B.
5
C.
4
D.
7
Answer: _________
Question 308:
To delay program execution, you can use the . . . . . . . .
A.
Refresh Method
B.
Sleep method
C.
Count method
D.
Accumulator method
Answer: _________
Question 309:
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly add 100 to each array element? The intSub variable contains the number 0 before the loops are processed.
A.
Do While intSub <= 4
intSub = intSub + 100
Loop
B.
Do While intSub <= 4
intSales = intSales + 100
Loop
C.
Do While intSub < 5
intSales(intSub) =intSales(intSub) + 100
Loop
D.
Do While intSub <6
intSales(intSub) = intSales(intSub) + 100
Loop
Answer: _________
Question 310:
. . . . . . . . is an activity that occurs during program execution such as mouse click or keystroke.
A.
event
B.
module
C.
code
D.
property
Answer: _________
Question 311:
To pass a variable by value, you include the keyword . . . . . . . . before the name of its corresponding parameter.
A.
ByVal
B.
Val
C.
PassVal
D.
Pass
Answer: _________
Question 312:
The . . . . . . . . statement in pseudocode acts like loop.
A.
Goto
B.
Exit
C.
End
D.
If
Answer: _________
Question 313:
To include a percentage in arithmetic operators we use . . . . . . . .
A.
Decimal equivalent
B.
Percentage symbol
C.
We cannot use percentage
D.
Division
Answer: _________
Question 314:
Form is called as the . . . . . . . .
A.
object
B.
dot member access operator
C.
instance of a class
D.
class
Answer: _________
Question 315:
in . . . . . . . . , first we check the condition , if the condition is true then it execute the true statement .
A.
while
B.
do while
C.
if condition
D.
nested
Answer: _________
Question 316:
After defining a class you can instantiate one or more . . . . . . . .
A.
Objects
B.
Classes
C.
Attributes
D.
Methods
Answer: _________
Question 317:
What is used to add a Label control to a form?
A.
Label Tool
B.
Add Tool
C.
Add Control Tool
D.
Add Label Tool
Answer: _________
Question 318:
Which button is used to display the names in the property list by category?
A.
Categorized button
B.
Alphabetical button
C.
Lexicographical button
D.
Group button
Answer: _________
Question 319:
The name of the button control is changed using . . . . . . . .
A.
Button Tool Window
B.
Change Name
C.
Edit Window
D.
Properties window
Answer: _________
Question 320:
A . . . . . . . . occurs when you break the rules of the language.
A.
Logical errors
B.
Syntax errors
C.
Exceptions
D.
Application shut down
Answer: _________
Question 321:
. . . . . . . . is insert from component , it is used to load ADO control.
A.
microsoft activex data control 6
B.
microsoft combo control 6
C.
microsoft data grid control.
D.
none of these
Answer: _________
Question 322:
The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process the loop instructions for each element in the array?
A.
Do While intSub > 20
B.
Do While intSub < 20
C.
Do While intSub >= 20
D.
Do While intSub <= 20
Answer: _________
Question 323:
The programmer use . . . . . . . . property to refer to menu element in code.
A.
Text
B.
Code
C.
Name
D.
Element
Answer: _________
Question 324:
The . . . . . . . . in a Do...Loop statement can contain variables, methods, constants, properties and operators.
A.
Exit statement
B.
Condition
C.
Statement
D.
Iteration statement
Answer: _________
Question 325:
The . . . . . . . . keyword indicates that the property's value can be retrieved (read) by an application.
A.
Access
B.
Get
C.
Read
D.
ReadOnly
Answer: _________
Question 326:
Specifying the number of decimal places and special characters to display in a number is called as . . . . . . . .
A.
Including
B.
Formatting
C.
Emphasizing
D.
Promoting
Answer: _________
Question 327:
Passing a variable's address is referred to as . . . . . . . .
A.
Pass by value
B.
Pass by address
C.
Pass by reference
D.
Pass by pointer
Answer: _________
Question 328:
Which is an easier alternative of multiple-alternative selection structure?
A.
Single-alternative selection structure
B.
Multipath selection structure
C.
Select case Statement
D.
Multiway-alternative selection structure
Answer: _________
Question 329:
The . . . . . . . . is used to code both pretest and posttest loops.
A.
Do loop statement
B.
For loop statement
C.
While loop statement
D.
If statement
Answer: _________
Question 330:
A button's . . . . . . . . event is used to run code.
A.
OnClick
B.
onclick
C.
Click
D.
click
Answer: _________
Question 331:
. . . . . . . . displays an input dialog box containing a message, Ok and Cancel button and an input area.
A.
Inputbox function
B.
Inbox function
C.
Dialogbox function
D.
In function
Answer: _________
Question 332:
"dblMy Age" what is the problem with this variable name?
A.
Starts with uppercase character
B.
Contains uppercase characters
C.
Contains a space
D.
Contains reserved word dbl
Answer: _________
Question 333:
Objects are represented by . . . . . . . . variables and . . . . . . . . properties.
A.
Private, Public
B.
Public, Private
C.
Protected, Public
D.
Protected, Private
Answer: _________
Question 334:
The variable can be a declared by . . . . . . . .statement .
A.
dim
B.
var
C.
$
D.
none of these.
Answer: _________
Question 335:
Which of the following declares a two-dimensional array that has three rows and four columns?
A.
Dim decNums(2, 3) As Decimal
B.
Dim decNums(3, 4) As Decimal
C.
Dim decNums(3, 2) As Decimal
D.
Dim decNums(4, 3) As Decimal
Answer: _________
Question 336:
To create menu on MDI form, we have to select . . . . . . . .
A.
view code
B.
menu editor
C.
images
D.
lock control
Answer: _________
Question 337:
The purpose of . . . . . . . . is to process code at one or more regular intervals.
A.
Timer control
B.
Process control
C.
Code editor
D.
Interval control
Answer: _________
Question 338:
And operator checks both the sub-conditions whereas OrElse operator does . . . . . . . .
A.
Short-circuit evaluation
B.
Short-hand evaluation
C.
Short evaluation
D.
Circuit evaluation
Answer: _________
Question 339:
The . . . . . . . . argument contains the message to display inside the dialog box.
A.
defaultResponse
B.
prompt
C.
title
D.
message
Answer: _________
Question 340:
The Project Explorer is used to show quick reference to the various elements of a project namely form, classes and modules
A.
TRUE
B.
FALSE
Answer: _________
Question 341:
Who developed Visual Basic?
A.
Apple
B.
Adobe
C.
Microsoft
D.
Google
Answer: _________
Question 342:
Which of the following extension is used to represent the project file in Visual Basic?
A.
.vbp
B.
.vb
C.
.cls
D.
.vvb
Answer: _________
Question 343:
Which of the following applications can be developed using Visual Basic tool?
A.
Graphical User Interface
B.
Real-time
C.
Character User Interface
D.
All of the mentioned
Answer: _________
Question 344:
In visual basic language what are the rules of a programming language called?
A.
Grammar
B.
Order
C.
Syntax
D.
Rules
Answer: _________
Question 345:
In Visual Basic, if you keep a variable undeclared, it is automatically taken as. . . . . . . . data type.
A.
Int
B.
Char
C.
String
D.
Object
Answer: _________
Question 346:
In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures?
A.
Switch-Case block
B.
If...Then...Else statement
C.
function overloading
D.
Recursion
Answer: _________
Question 347:
In Visual Basic, which of the following method converts a string to a number?
A.
Convert
B.
Tryparse
C.
Extern
D.
Parse
Answer: _________
Question 348:
String comparison in Visual basic is case-sensitive.
A.
True
B.
False
Answer: _________
Question 349:
. . . . . . . . is the default Visual Basic data type
A.
string
B.
boolean
C.
variant
D.
date
Answer: _________
Question 350:
Which of the following displays the list of projects contained in the Visual Basic current solution?
A.
List Window
B.
Project Window
C.
Catalogue Window
D.
Solution Explorer Window
Answer: _________
Question 351:
Variables are used to temporarily store data during execution of application.
A.
TRUE
B.
FALSE
Answer: _________
Question 352:
What will be assigned to the dblAvg variable after the code has been executed? Do While intSub < 4
intNums(intSub) = intTotal + intTotal
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
A.
0
B.
5
C.
6
D.
8
Answer: _________
Question 353:
A simple variable, also called as a . . . . . . . . variable, is one that is unrelated to any other variable in memory.
A.
Changing
B.
Dynamic
C.
Static
D.
Scalar
Answer: _________
Question 354:
MDI is used to work as . . . . . . . . , its main property is mdi child , all the forms are open within MDI
A.
parents
B.
child
C.
form
D.
menu
Answer: _________
Question 355:
. . . . . . . . is used to visually group together related items on a menu or submenu.
A.
Separator line
B.
Separator bar
C.
Line
D.
Bar
Answer: _________
Question 356:
Which property in the property list is used to change the text, style or size of the control's text?
A.
Font
B.
Origin
C.
Style
D.
Appearance
Answer: _________
Question 357:
What is the array of these statements? Dim intScores As Integer = {78, 83, 75, 90}
Array.sort (intScores)
A.
{75, 78, 83, 90}
B.
{78, 75, 90, 83}
C.
{90, 83, 78, 75}
D.
Compilation Error
Answer: _________
Question 358:
A button's caption is entered using . . . . . . . .
A.
sentence capitalization
B.
book title capitalization
C.
character capitalization
D.
word capitalization
Answer: _________
Question 359:
A . . . . . . . . Web page contains controls with which the user can interact.
A.
Static
B.
Dynamic
C.
Server
D.
Client
Answer: _________
Question 360:
The . . . . . . . . in a pattern represents one character only.
A.
?
B.
*
C.
#
D.
**
Answer: _________
Question 361:
Which is used to check both the conditions in a given if statement?
A.
OrElse
B.
AndAlso
C.
NOT
D.
OR
Answer: _________
Question 362:
A label control's . . . . . . . . property determines whether the control automatically sizes to fit its current contents.
A.
AutoSize property
B.
Control property
C.
Auto control property
D.
Autoformat property
Answer: _________
Question 363:
When the . . . . . . . . is checked, its value is set to 1 and when it is unchecked, the value is set to 0.
A.
combo box
B.
checkbox
C.
radio
D.
text
Answer: _________
Question 364:
Which event occurs each time an interval is elapsed in the timer?
A.
Tick
B.
Click
C.
Elapse
D.
Count
Answer: _________
Question 365:
Selection structures that can select from many alternatives are known as . . . . . . . .
A.
Selection structures
B.
Multiple-alternative selection structures
C.
Multiway selection structures
D.
Multipath selection structures
Answer: _________
Question 366:
StretchImage Property is present in which dialog box?
A.
Task list
B.
Properties Window
C.
Picture Task Window
D.
View Window
Answer: _________
Question 367:
A . . . . . . . . allows you to select from a list of choices.
A.
Combo Box
B.
Combo List
C.
Check Box
D.
Radio Button
Answer: _________
Question 368:
What is the array of these statements? Dim intScores As Integer = {78, 83, 75, 90}
Array.reverse (intScores)
A.
{ 75, 78, 83, 90}
B.
{ 78, 75, 90, 83 }
C.
{ 90, 83, 78, 75 }
D.
Compilation Error
Answer: _________
Question 369:
The select case statement ends with . . . . . . . .
A.
Select End clause
B.
End Select clause
C.
End clause
D.
Select clause
Answer: _________
Question 370:
. . . . . . . . can be used to advance the insertion point in a file or on the printer.
A.
Advance pointer
B.
Nextpoint pointer
C.
NextLine constant
D.
ControlChars.NewLine constant
Answer: _________
Question 371:
Designers generally use . . . . . . . . font style and . . . . . . . . font size in an interface.
A.
One, two
B.
Two, one
C.
Four, one
D.
One, one
Answer: _________
Question 372:
The . . . . . . . . is one of the controls that is used to handle graphics
A.
picture box
B.
combo
C.
label
D.
text
Answer: _________
Question 373:
During runtime checkbox can be selected, if a checkbox is already selected or not by using the . . . . . . . . property.
A.
Checked
B.
Unchecked
C.
On
D.
Selected
Answer: _________
Question 374:
. . . . . . . . is the default name assigned to the label control.
A.
Label0
B.
Label1
C.
NewLabel
D.
DefaultLabel
Answer: _________
Question 375:
Which of the following calculates the quarterly payment on a loan of $6000 for 3 years at 9% interest? Payments should be expressed as a negative number.
A.
Financial.Pmt (0.09/4, 3*12, 6000)
B.
Financial.Pmt (0.09/4, 3*4, 6000)
C.
Financial.Pmt(0.09/12, 3*12, 6000)
D.
Financial.Pmt( 0.09/12, 3*4, 6000)
Answer: _________
Question 376:
The. . . . . . . . control lets the user selects or unselects an option we can select more than one option from the group.
A.
combo box
B.
checkbox
C.
radio
D.
text
Answer: _________
Question 377:
Programmers refer to the sequence of character as . . . . . . . .
A.
Stream of tokens
B.
Stream of characters
C.
Stream of bits
D.
Stream of bytes
Answer: _________
Question 378:
In VB the . . . . . . . . function converts a string to a number.
A.
str()
B.
ucase()
C.
val ()
D.
len()
Answer: _________
Question 379:
We can determine number of elements in two-dimensional array by . . . . . . . .
A.
Multiplying number of rows and number of columns
B.
Adding number of rows and number of columns
C.
Multiplying number of rows and number of rows
D.
Adding number of columns and number of columns
Answer: _________
Question 380:
. . . . . . . . property disables the Minimize button on the form's title bar.
A.
Minimize property
B.
Maximize property
C.
Close property
D.
Control Box property
Answer: _________
Question 381:
Variables declared in a block have . . . . . . . . scope.
A.
Class
B.
Procedure
C.
Block
D.
Object
Answer: _________
Question 382:
The OptionButton control is used to selects one of the choices. its main property is . . . . . . . .value.
A.
list
B.
check
C.
value
D.
text
Answer: _________
Question 383:
The . . . . . . . . function temporarily converts the string to a number and then returns the number.
A.
Val
B.
Value
C.
Integer
D.
Convert
Answer: _________
Question 384:
Static variable can only be used in the . . . . . . . . in which it is declared.
A.
Class
B.
Any procedures in the form
C.
Any form
D.
Only the Procedure it is declared in
Answer: _________
Question 385:
Most common error that occur in selection structure is . . . . . . . .
A.
Logical error
B.
Syntactical error
C.
Segmentation fault
D.
Compiler error
Answer: _________
Question 386:
The . . . . . . . . methodreturns an integer that representsthe highest subscript in the specified dimension in the array.
A.
Subscript
B.
GetUpperBound
C.
GetSubscript
D.
SubscriptOfArray
Answer: _________
Question 387:
Which box contains the name of the selected object?
A.
Select Box
B.
Object Box
C.
List Box
D.
Display box
Answer: _________
Question 388:
. . . . . . . . is commonly used to perform an immediate action when clicked.
A.
Exit
B.
Button control
C.
Close
D.
End
Answer: _________
Question 389:
The main Property of picture box is . . . . . . . .
A.
check
B.
value
C.
caption
D.
picture
Answer: _________
Question 390:
. . . . . . . . method is used to sort an array in visual basic.
A.
Array.arrange()
B.
Array.arrayArrange()
C.
Array.Sort()
D.
Array.sortAscending()
Answer: _________
Question 391:
In VB, array is divided into 3 types, the second type is . . . . . . . .
A.
single dimension
B.
double dimension
C.
poly dimension
D.
multi dimension
Answer: _________
Question 392:
Which of the following is used to convert a number from one data type to another in visual studio?
A.
Literal constant
B.
Object
C.
Convert class
D.
Parser
Answer: _________
Question 393:
. . . . . . . . is used to open the sequential file access for append.
A.
CreateText method
B.
AppendText method
C.
OpenText method
D.
WriteText method
Answer: _________
Question 394:
You specify each item to display in a list box using the Items collection's. . . . . . . .
A.
Add method
B.
Subtract method
C.
Divide method
D.
Multiply method
Answer: _________
Question 395:
The actions such as click, double-click, scrolling etc are . . . . . . . .
A.
Events
B.
Functions
C.
Procedures
D.
Actions
Answer: _________
Question 396:
What value is stored in the intCount variable when the loop ends? For intCount As Integer = 4 To 11 Step 2
MessageBox.Show("Hello")
Next intCount
A.
10
B.
11
C.
12
D.
13
Answer: _________
Question 397:
A variable can store . . . . . . . . value at a time.
A.
Only one
B.
More than one
C.
Only two
D.
More than two
Answer: _________
Question 398:
The long form of MDI is. . . . . . . ..
A.
multiple document interface
B.
single document interface
C.
single data interface
D.
system document interface
Answer: _________
Question 399:
The requirement for repeating the instructions is referred to as the . . . . . . . .
A.
Looping condition
B.
Conditional statement
C.
Iterative statement
D.
Initialization statement
Answer: _________
Question 400:
A . . . . . . . . web page is not interactive and is used to display information only.
A.
Dynamic
B.
Static
C.
Server
D.
Client
Answer: _________
Question 401:
An arithmetic expression contains one or more . . . . . . . .
A.
Arithmetic operators
B.
Logical operators
C.
Relational operators
D.
Short-hand operators
Answer: _________
Question 402:
The. . . . . . . . Control is another control that handles images and pictures
A.
image control
B.
load picture
C.
combo
D.
text
Answer: _________
Question 403:
. . . . . . . . data is a data that the application is expecting the user to enter.
A.
Valid
B.
Invalid
C.
Numeric
D.
Character
Answer: _________
Question 404:
Where does the form's Text Property appear?
A.
Title bar
B.
In Text box in the form
C.
Caption bar
D.
Text bar
Answer: _________
Question 405:
If the properties of the form are not listed alphabetically, click . . . . . . . . button to make it alphabetical.
A.
Lexicographical button
B.
Alphabetical button
C.
A-Z button
D.
Arrange button
Answer: _________
Question 406:
The Like operator returns . . . . . . . . value.
A.
Integer
B.
Boolean
C.
String
D.
Float
Answer: _________
Question 407:
. . . . . . . . is the universal coding scheme for characters.
A.
ASCII
B.
Unicode
C.
Binary
D.
EBCDIC
Answer: _________
Question 408:
An application communicates with the user through . . . . . . . .
A.
DialogBox
B.
AlertBox
C.
MessageBox
D.
AlertDialog
Answer: _________
Question 409:
Which of the following is the default name assigned to the label control in Visual Basic?
A.
Label1
B.
DefaultLabel
C.
Label0
D.
NewLabel
Answer: _________
Question 410:
You can eliminate the problems of implicit type conversion, with the help of . . . . . . . .
A.
Option Strict On
B.
Option Strict Off
C.
Implicit Off
D.
Explicit On
Answer: _________
Question 411:
The . . . . . . . . constant instructs the computer to advance the insertion point to the next line in control.
A.
ControlChars.NewLine
B.
ControlChars.NextLine
C.
ControlChars.Line
D.
ControlChars.blankLine
Answer: _________
Question 412:
The . . . . . . . . operator is commonly used to determine whether a number is even or odd.
A.
Addition
B.
Modulus
C.
Subtraction
D.
Integer division
Answer: _________
Question 413:
. . . . . . . . operator reverses the truth value of the operation.
A.
AND
B.
OR
C.
NOT
D.
NAND
Answer: _________
Question 414:
A variable is scoped to a global or local variable depending on how it is declared.
A.
TRUE
B.
FALSE
Answer: _________
Question 415:
A procedure-level variable is declared using . . . . . . . . keyword.
A.
Private
B.
Public
C.
Dim
D.
Static
Answer: _________
Question 416:
when we declare the variable in . . . . . . . . of VB then it is public variable
A.
static
B.
public
C.
local
D.
general
Answer: _________
Question 417:
The position of an item in a list box depends on the value stored in the list box's . . . . . . . .
A.
Ascending property
B.
Descending Property
C.
Sorted property
D.
Unsorted property
Answer: _________
Question 418:
The . . . . . . . . validator is used to compare an entry with a constant value or the property stored in a control.
A.
CompareValidator
B.
RangeValidator
C.
RequiredFieldValidator
D.
ValidationSummary
Answer: _________
Question 419:
What happens when minimize box is set to true?
A.
Minimize box in title bar disappears
B.
Minimize box is disabled
C.
Minimize box is enabled
D.
Minimize box becomes visible
Answer: _________
Question 420:
The . . . . . . . . statement is used to assign a value to a property of an object.
A.
Assignment
B.
Conditional
C.
Decision
D.
Goto
Answer: _________
Question 421:
Access keys allows the user to run the application even when . . . . . . . .
A.
Mouse becomes inoperative
B.
Mouse is fully operative
C.
Mouse is partially operative
D.
Keyboard is operative
Answer: _________
Question 422:
What is the specialty of the Default button?
A.
Always focused by default
B.
Always clears the form it is in
C.
Can be selected by the Enter key even when not focused
D.
Can be selected by the Shift key even when not focused
Answer: _________
Question 423:
To make text appear around image . . . . . . . . section is used.
A.
Wrapping style
B.
Text style
C.
Image properties
D.
Align
Answer: _________
Question 424:
when we declare the variable in a Particular control of vb then it is . . . . . . . . variable .
A.
static
B.
public
C.
local
D.
general
Answer: _________
Question 425:
The . . . . . . . . operator returns the remainder of the division.
A.
Addition
B.
Modulus
C.
Subtraction
D.
Integer division
Answer: _________
Question 426:
the . . . . . . . .is a term commonly used in the programming world to describe the interface and environment that we use to create our applications.
A.
ide
B.
tool bar
C.
menu bar
D.
none of these.
Answer: _________
Question 427:
A control's border is determined by . . . . . . . . property.
A.
Border
B.
Style
C.
BorderStyle
D.
Appearance
Answer: _________
Question 428:
The Char data type can store . . . . . . . .
A.
One Unicode character
B.
One ASCII character
C.
One bit
D.
One Byte
Answer: _________
Question 429:
Each of the options on the submenu are referred to as . . . . . . . .
A.
Menu items
B.
Submenu items
C.
Submenu lists
D.
Options
Answer: _________
Question 430:
Which of the following declares a five-element one-dimensional array?
A.
Dim dblAmounts(4) As Double
B.
Dim dblAmounts(5) As Double
C.
Dim dblAmounts(4) As Double = {3.55, 6.70, 8, 4, 2.34}
D.
Dim dblAmounts() As Double={3.55, 6.70, 8, 4, 2.34,1.45}
Answer: _________
Question 431:
The . . . . . . . . validator is used to verify that an entry matches a specific pattern.
A.
CompareValidator
B.
RegularExpressionValidator
C.
RequiredFieldValidator
D.
ValidationSummary
Answer: _________
Question 432:
The data type of the value assigned should be same as . . . . . . . .
A.
Any constant defined in the application
B.
The variable itself
C.
Can be anything
D.
Any extern defined in the application
Answer: _________
Question 433:
Use the . . . . . . . . to verify the tab order control in the interface.
A.
Enter key
B.
Shift key
C.
Tab key
D.
Alt key
Answer: _________
Question 434:
. . . . . . . . means adding a number to the value stored in the accumulator or counter.
A.
Initializing
B.
Updating
C.
Backtracking
D.
Checking
Answer: _________
Question 435:
Each menu item should have an . . . . . . . . that is unique within its menu.
A.
Access key
B.
Property
C.
Caption
D.
Lists
Answer: _________
Question 436:
The code in an application can be broken into logical component by . . . . . . . . process
A.
modular
B.
procedural
C.
partitioning
D.
none of these
Answer: _________
Question 437:
In VB, Standard modules and Class modules. provides three kind of property procedures but following not include in this
A.
property let procedure
B.
property get procedure
C.
property set procedure
D.
property post procedure
Answer: _________
Question 438:
String data type can store from zero to . . . . . . . . Unicode characters.
A.
2 million
B.
2 billion
C.
1 billion
D.
1 million
Answer: _________
Question 439:
In VB, the. . . . . . . . is the function that computes the square root of a number.
A.
sqrt()
B.
round()
C.
abs()
D.
len()
Answer: _________
Question 440:
In most applications, the code to define a user-defined data type is entered in the form's.
A.
Declarations section
B.
Definition section
C.
Load event procedure
D.
User-defined section
Answer: _________
Question 441:
Variables declared in a form's declaration section have . . . . . . . . scope.
A.
Class
B.
Procedure
C.
Block
D.
Object
Answer: _________
Question 442:
A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string "Maple" to the member variable?
A.
address&strStreet = "Maple"
B.
address.strStreet = "Maple"
C.
strStreet.address = "Maple"
D.
strStreet&address="Maple"
Answer: _________
Question 443:
ControlChars.NewLine constant is a . . . . . . . . constant.
A.
Pure
B.
Invariable
C.
Character
D.
Intrinsic
Answer: _________
Question 444:
Using array in a program is efficient because . . . . . . . .
A.
It shortens the program.
B.
The program compiles faster
C.
Number of variables are reduced.
D.
Data is accessed faster
Answer: _________
Question 445:
. . . . . . . . function is used to format numbers.
A.
toString
B.
toNumber
C.
toFormat
D.
toSpecify
Answer: _________
Question 446:
Which is used to restore a property's value?
A.
Restore button
B.
Reset button
C.
Default button
D.
Back button
Answer: _________
Question 447:
Writing data to a file is referred to as . . . . . . . .
A.
Reading a file
B.
Writing a file
C.
Appending a file
D.
Executing a file
Answer: _________
Question 448:
The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the following blocks of code correctly calculates the average value stored in the array? The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
A.
Do While intSub < 4
intNums(intSub) = intTotal + intTotal
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub
B.
Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub
C.
Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub − 1
D.
Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / (intSub − 1)
Answer: _________
Question 449:
You can use . . . . . . . . to override the order of precedence.
A.
Curly braces
B.
Parenthesis
C.
Third bracket
D.
Associativity
Answer: _________
Question 450:
The . . . . . . . . symbol is used to take a decision in the flowchart.
A.
Oval
B.
Rectangle
C.
Parallelogram
D.
Diamond
Answer: _________
Question 451:
. . . . . . . . property is used set width and height of images .
A.
check
B.
value
C.
stretch
D.
load picture
Answer: _________
Question 452:
The size property contains the size of . . . . . . . .
A.
form
B.
text on the form
C.
size of any object such as textbox, button, etc on the form
D.
size of the screen
Answer: _________
Question 453:
. . . . . . . . are the actions to which an object can respond.
A.
Methods
B.
Events
C.
Instances
D.
Attributes
Answer: _________
Question 454:
The . . . . . . . . in a pattern represents zero or more characters.
A.
?
B.
*
C.
#
D.
**
Answer: _________
Question 455:
. . . . . . . . is used to fit the value of the data type to that of the memory location, implicitly.
A.
Implicit type conversion
B.
Explicit type conversion
C.
Convert method
D.
Conversion function
Answer: _________
Question 456:
Unintentional errors in application by declaring variables can be reduced by . . . . . . . .
A.
Giving them Small names
B.
Declaring them with a small sized data type
C.
Giving them minimum scope possible
D.
Making them class variables
Answer: _________
Question 457:
The long form of SDI is . . . . . . . .
A.
multiple document interface
B.
single document interface
C.
single data interface
D.
system document interface
Answer: _________
Question 458:
The items in a combo box belong to which collection?
A.
Items
B.
List
C.
ListBox
D.
Values
Answer: _________
Question 459:
frame is used to differentiate the one radio button group to another radio button group.
A.
TRUE
B.
FALSE
Answer: _________
Question 460:
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?
A.
inventory.intQuantity(4) = 100
B.
inventory(4).Product.intQuantity = 100
C.
inventory(3).intQuantity = 100
D.
inventory(4).intQuantity=100
Answer: _________
Question 461:
Each menu title should have an unique . . . . . . . .
A.
Access key
B.
Property
C.
Caption
D.
Lists
Answer: _________
Question 462:
In VB, . . . . . . . . is used to enter the more then one value in a single variable having different data types.
A.
dim
B.
structure
C.
array
D.
variable
Answer: _________
Question 463:
A . . . . . . . . forces a literal constant to assume a data type other than the one its form indicates.
A.
Literal type constant
B.
Literal type variable
C.
Any literal
D.
Keyword
Answer: _________
Question 464:
. . . . . . . . is used to work as parents, its main property is mdi child , all the forms are open within MDI
A.
multiple document interface
B.
single document interface
C.
single data interface
D.
system document interface
Answer: _________
Question 465:
ASP is a . . . . . . . . language that tells the client's browser how to render the page on the computer screen.
A.
Markup
B.
Programming
C.
Structured Query
D.
Data storage
Answer: _________
Question 466:
. . . . . . . . refers to the process of checking your algorithm while seated at your desk.
A.
Disk-checking
B.
Desk-checking
C.
Drive-checking
D.
Paper-checking
Answer: _________
Question 467:
ADO is ActiveX-based, it can work in different platforms and different programming languages.
A.
TRUE
B.
FALSE
Answer: _________
Question 468:
To determine whether a string has specific sequence of characters, use . . . . . . . .
A.
Contains method
B.
Specific method
C.
Sequence method
D.
Check method
Answer: _________
Question 469:
The BorderStyle property of the labels that display program output is generally set to . . . . . . . .
A.
Fixed3D
B.
FixedSingle
C.
None
D.
FixedDouble
Answer: _________
Question 470:
What determines the Tab order?
A.
TabIndex values
B.
TabOrder values
C.
Tab values
D.
Arrangement of the controls in the interface
Answer: _________
Question 471:
. . . . . . . . is used to improve the appearance of numbers in an interface.
A.
Format function
B.
Appear function
C.
Val function
D.
Number function
Answer: _________
Question 472:
The property values of the shape control are 0, 1, and 2,3,4,5 which will make it appear as a rectangle, a square, an oval shape, a circle, a rounded rectangle and a rounded square respectively.
A.
TRUE
B.
FALSE
Answer: _________
Question 473:
Named constants are used because . . . . . . . .
A.
Because they take up less space in memory
B.
Because they make documentation and code modification easier
C.
Because they can be easily accessed by procedures
D.
Because they are easily declared
Answer: _________
Question 474:
Reading data from a file is referred to as . . . . . . . .
A.
Reading a file
B.
Writing a file
C.
Appending a file
D.
Executing a file
Answer: _________
Question 475:
Every variable has both a value and . . . . . . . .
A.
Unique address
B.
Value
C.
Name
D.
Relative address
Answer: _________
Question 476:
. . . . . . . . returns a value after performing its specific task.
A.
Function Procedure
B.
Sub procedure
C.
Sub block
D.
Structure
Answer: _________
Question 477:
Which property is used to specify a combo box's style?
A.
ComboBoxStyle
B.
DropDownStyle
C.
DropStyle
D.
Style
Answer: _________
Question 478:
The . . . . . . . . statement does not indicate whether a variable is passed by value or by reference.
A.
Call
B.
Parameter
C.
Function
D.
Declaration
Answer: _________
Question 479:
code in vb is stored in the form of . . . . . . . .
A.
module
B.
form
C.
.vbp
D.
none of these
Answer: _________
Question 480:
. . . . . . . . are collections of small iconic button that resides in a Menu- bar
A.
tool bar
B.
command button
C.
menu bar
D.
tool box
Answer: _________
Question 481:
The InputBox functions prompt argument should be entered using . . . . . . . .
A.
Book title capitalization
B.
Sentence capitalization
C.
Text capitalization
D.
Post capitalization
Answer: _________
Question 482:
In VB ,We can use Public or Dim statement to declare an array .
A.
TRUE
B.
FALSE
Answer: _________
Question 483:
Each object used in a object oriented programming is created from . . . . . . . .
A.
Class
B.
Object
C.
Instance
D.
User
Answer: _________
Question 484:
How is a default button designated?
A.
Default keyword in the definition of the button
B.
Setting the setfocus property to on
C.
Keeping the button at the bottom of the form
D.
By connecting the AcceptButton property to it
Answer: _________
Question 485:
Comparison operators are also termed as . . . . . . . .
A.
Comparators
B.
Comparables
C.
Relations
D.
Relational operators
Answer: _________
Question 486:
When a value is converted from one data type to another and can store numbers with greater precision, the value is said to be . . . . . . . .
A.
Imported
B.
Exported
C.
Promoted
D.
Precised
Answer: _________
Question 487:
Which of the following returns a value after performing its specific task in Visual Basic?
A.
Structure
B.
Sub block
C.
Sub procedure
D.
Function Procedure
Answer: _________
Question 488:
All Code in Visual Basic is stored in the form of. . . . . . . .
A.
properties window
B.
module
C.
object
D.
object browser
Answer: _________
Question 489:
The . . . . . . . . is a very useful control for Visual Basic, as it is not only used to provide instructions and guides to the users, it can also be used to display outputs.
A.
image
B.
combo
C.
label
D.
text
Answer: _________
Question 490:
when we Declaring a variable before programming start it is called as . . . . . . . . it tells Visual Basic to reserve space in memory.
A.
explicit declaring
B.
implicit declaring
C.
public declaring
D.
local declaring
Answer: _________
Question 491:
What happens when both the minimize box and maximize box property are set to false in Visual Basic?
A.
Both are removed from the title bar
B.
Both are disabled
C.
This situation shows an exception
D.
This situation shows an error
Answer: _________
Question 492:
In Visual Basic, which of the following keyword tells the computer to pass the variable's address rather than its contents?
A.
ByAdd
B.
ByPoint
C.
ByRef
D.
ByVal
Answer: _________
Question 493:
In Visual Basic if we declare a variable without any data type by . . . . . . . .this the data type is assigned as default..
A.
string
B.
boolean
C.
variant
D.
date
Answer: _________
Question 494:
Which of the following method is used to sort an array in visual basic?
A.
Array.Sort()
B.
Array.sortAscending()
C.
Array.arrayArrange()
D.
Array.arrange()
Answer: _________
Question 495:
Which of the following instruction tells the computer to close the current form in Visual Basic?
A.
This.Close()
B.
Me.Close()
C.
Close.this()
D.
Close()
Answer: _________
Question 496:
Which of the following is used to write a stream of characters in Visual Basic?
A.
StreamReader object
B.
StreamReader class
C.
StreamWriter object
D.
StreamWriter class
Answer: _________
Question 497:
Which of the following instructs a function to return the contents of the decStateTax variable?
A.
Return decStateTax
B.
Return ByVal decStateTax
C.
Send decStateTax
D.
SendBack decStateTax
Answer: _________
Question 498:
A . . . . . . . . is a word that has special meaning in computer language.
A.
keyword
B.
constant
C.
variable
D.
literal
Answer: _________
Question 499:
The . . . . . . . . event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion.
A.
ChangedItem
B.
ChangedValue
C.
SelectedItemChanged
D.
TextChanged
Answer: _________
Question 500:
. . . . . . . . are open from the View menu or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects
A.
properties window
B.
project explorer
C.
object
D.
object browser
Answer: _________
Question 501:
. . . . . . . . capitalization is used for menu item captions.
A.
Book title
B.
Sentence
C.
Line
D.
Title
Answer: _________
Question 502:
In Visual Basic . . . . . . . . is used for coding single-alternative and dual-alternative selection structures.
A.
If...Then...Else statement
B.
Switch-Case block
C.
Recursion
D.
function overloading
Answer: _________
Question 503:
Which property is used to view the full image in the Picture Box?
A.
View full image
B.
StretchImage
C.
View Image
D.
Full Size Image
Answer: _________
Question 504:
The items listed in the Call statement are referred to as . . . . . . . .
A.
Arguments
B.
Parameters
C.
Passers
D.
Callers
Answer: _________
Question 505:
Which of the following type of constant is ControlChars.NewLine constant?
A.
Character
B.
Pure
C.
Intrinsic
D.
Invariable
Answer: _________
Question 506:
The . . . . . . . . displays the most commonly used items.
A.
Common tab
B.
All tab
C.
Most tab
D.
Most used tab
Answer: _________
Question 507:
Which of the following is used to display a message box in Visual Basic?
A.
MessageBox.Show
B.
MessageBox
C.
AlertBox.View
D.
None of the above
Answer: _________
Question 508:
What is the value of len in the following Visual Basic code? Dim strVB() As String = {"Sanfoundry", "Visual Basic", "VB.Net", "Visual Studio"}
Dim len As Integer
len = strVB.Length()
A.
3
B.
5
C.
4
D.
0
Answer: _________
Question 509:
In the Visual Basic application, which of the following are listed in a properties window?
A.
Items
B.
Values
C.
Attributes
D.
Objects
Answer: _________
Question 510:
The . . . . . . . . include all widow property, form, project ,form layout .
A.
ide
B.
adodc
C.
msaccess
D.
none of these
Answer: _________
Question 511:
Which of the following selects the Cat item, which appears third in the cboAnimal control?
A.
cboAnimal.Selected = 2
B.
cboAnimal.Selected = "Cat"
C.
cboAnimal.Text = "Cat"
D.
cboAnimal.SelectedIndex="Cat"
Answer: _________
Question 512:
A variable declared as . . . . . . . . type can store both values and it can store date values 01/01/0100 up to 12/31/9999
A.
string
B.
boolean
C.
variant
D.
date
Answer: _________
Question 513:
What happens when maximize box is set to true?
A.
Maximize box in title bar disappears
B.
Maximize box is disabled
C.
Maximize box is enabled
D.
Maximize box becomes visible
Answer: _________
Question 514:
. . . . . . . . is for displaying a list of directories or folders in a selected drive
A.
drive list box
B.
picture box
C.
file list box
D.
dirlist box
Answer: _________
Question 515:
MDI is used to work as parents, its main property is . . . . . . . . , all the forms are open within MDI
A.
mdi child
B.
multiple
C.
list
D.
background
Answer: _________
Question 516:
What does the Start Position Property determine?
A.
initial position on the screen
B.
starting position on the screen
C.
top left corner of the screen
D.
middle of the screen
Answer: _________
Question 517:
A . . . . . . . . loop is a loop whose processing is controlled by a counter.
A.
Counter-controlled
B.
Entry-controlled
C.
Exit-controlled
D.
Accumulator-controlled
Answer: _________
Question 518:
When you delete a groupbox the controls inside it are . . . . . . . .
A.
Retained
B.
Given to another groupbox
C.
Data loss occurs
D.
Deleted
Answer: _________
Question 519:
The BorderStyle property of each label, that identify other controls, is generally set to . . . . . . . .
A.
None
B.
FixedSingle
C.
Fixed3D
D.
FixedDouble
Answer: _________
Question 520:
When a control has focus it can accept . . . . . . . .
A.
values
B.
any user input
C.
numbers
D.
strings
Answer: _________
Question 521:
The behavior are represented by . . . . . . . .
A.
Methods
B.
Attributes
C.
Values
D.
Numbers
Answer: _________
Question 522:
Use . . . . . . . . for the optional label entered in the groupbox's text property.
A.
Word capitalization
B.
Sentence capitalization
C.
Mixed capitalization
D.
Row capitalization
Answer: _________
Question 523:
Checkbox are used to . . . . . . . .
A.
make interface look better
B.
make coding easier
C.
limit user input
D.
fill multiple information
Answer: _________
Question 524:
The lines connecting the symbols in a flowchart are called as . . . . . . . .
A.
Flowlines
B.
Symbol lines
C.
Connectors
D.
Connecting lines
Answer: _________
Question 525:
In VB, A . . . . . . . . returns a value and a Sub Procedure does not return a value.
A.
function procedure
B.
sub procedure
C.
mdi
D.
sdi
Answer: _________
Question 526:
The . . . . . . . . numbers indicate the order in which the computer performs the operation in an expression.
A.
Precedence
B.
Associativity
C.
Binary
D.
Ternary
Answer: _________
Question 527:
The . . . . . . . . is an abbreviation of the term sub procedure.
A.
Sub function
B.
Sub event
C.
Sub keyword
D.
Sub object
Answer: _________
Question 528:
An object's . . . . . . . . is used to display the type, style, and size of the font, used to display the object's text.
A.
Font property
B.
Size property
C.
Text property
D.
Style property
Answer: _________
Question 529:
. . . . . . . . object browser is used for finding out about object, properties & methods.
A.
form layout window
B.
code editor window
C.
object browser
D.
none of these
Answer: _________
Question 530:
Which statement is used to create a user-defined data type?
A.
Declare
B.
Define
C.
Struct
D.
UserType
Answer: _________
Question 531:
What will be in text, if Intid contains 6? Select Case Intid
Case 1
Text="Jannet"
Case 2 to 4
Text="Mark"
Case 5, 7
Text="Jerry"
Case Else
Text="Sue"
End Select
A.
Jannet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 532:
You should assign access keys to each of the control in the interface that contain . . . . . . . .
A.
User output
B.
User input
C.
Timer
D.
Labels
Answer: _________
Question 533:
A checkbox can be directly accessed from the keyboard using a . . . . . . . .
A.
Access key
B.
Shortcut key
C.
Assigned key
D.
Designated key
Answer: _________
Question 534:
Which option is used to close the IDE?
A.
Close
B.
Close Solution
C.
Close All
D.
Close IDE
Answer: _________
Question 535:
The subscripts are . . . . . . . . than the row and column in which the element is located.
A.
One number less
B.
One number more
C.
Two number less
D.
Two number more
Answer: _________
Question 536:
The . . . . . . . . in a pattern represents a single digit.
A.
?
B.
*
C.
#
D.
**
Answer: _________
Question 537:
When a selection structure's true part or false part contains another selection structure, the inner selection structured is referred to as . . . . . . . .
A.
Implicit selection structure
B.
Inner selection structure
C.
Outer selection structure
D.
Nested selection structure
Answer: _________
Question 538:
Pressing the enter key when the button is on focus produces . . . . . . . .
A.
Button's properties
B.
Button's click event
C.
Dialog box to change button name
D.
Removes the button
Answer: _________
Question 539:
A . . . . . . . . is a predefined procedure that performs a specific task.
A.
Flowchart
B.
Pseudocode
C.
Function
D.
Errors
Answer: _________
Question 540:
. . . . . . . . menu is open by right button of the mouse .
A.
short cut menu
B.
popup menu
C.
sub menu
D.
none of these
Answer: _________
Question 541:
Stretch property is used set. . . . . . . .of images .
A.
width and height
B.
border
C.
color
D.
load picture
Answer: _________
Question 542:
The function of . . . . . . . . is to give a pop-up message to the user.
A.
msgbox()
B.
inputbox()
C.
print
D.
nested
Answer: _________
Question 543:
A function's header includes the . . . . . . . . data type.
A.
As
B.
To
C.
From
D.
By
Answer: _________
Question 544:
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?
A.
strCapitals(1)
B.
strCapitals(2)
C.
strCapitals(0)
D.
strCapitals(3)
Answer: _________
Question 545:
Following are not the arithmetic operator .
A.
mod
B.
<=
C.
+
D.
/
Answer: _________
Question 546:
Set the identifying labels tab index property that is . . . . . . . . than text box's tab index property.
A.
One number lesser
B.
One number more
C.
Same as text box's tab index
D.
Does not depend on text box's tab index
Answer: _________
Question 547:
The main Property of check box is . . . . . . . .
A.
check
B.
value
C.
stretch
D.
load picture
Answer: _________
Question 548:
What will contain in txtFirst after the following Visual Basic code is executed? strName = "Penny Swanson"
txtFirst.Text = strName.Remove(5)
A.
Penny
B.
Swanson
C.
Penny S
D.
y Swanson
Answer: _________
Question 549:
In VB, The . . . . . . . . first we check the condition, if the condition is true then it execute the true statement same as while condition .
A.
for loop
B.
do while
C.
if condition
D.
nested
Answer: _________
Question 550:
A . . . . . . . . provides an area in the form for the user to enter data.
A.
Text box
B.
Button
C.
Edit box
D.
Label
Answer: _________
Question 551:
Which of the following is called the line continuation character?
A.
*
B.
^
C.
-
D.
_
Answer: _________
Question 552:
Declaring a variable tell the computer to allocate a memory space that can be accessed by the variable name. The size of the memory space depends on?
A.
Length of variable name
B.
Data type of the variable
C.
Location of variable in program
D.
Size of memory in computer
Answer: _________
Question 553:
A . . . . . . . . is defined as a zero or more characters enclosed in quotation marks.
A.
String
B.
Number
C.
Floating point integer
D.
Integer
Answer: _________
Question 554:
What output will be returned if the following Visual Basic code is executed? strCityState = "Nashville, TN"
blnIsContained = strCityState.Contains("TN")
A.
True
B.
False
C.
11
D.
12
E.
True
F.
False
G.
11
H.
12
Answer: _________
Question 555:
In . . . . . . . . first we execute the true statement . then we check the condition if the condition is true then it again execute the true statement .
A.
while
B.
do while
C.
if condition
D.
nested
Answer: _________
Question 556:
Which of the following expressions evaluates to True when the strPart variable contains the string "123X45"?
A.
strPart Like "999[A-Z]99"
B.
strPart Like "######"
C.
strPart Like "###[A-Z]##"
D.
strPart Like "##??##"
Answer: _________
Question 557:
. . . . . . . . in the Tool Box is used to add a button control to a form.
A.
Button Tool
B.
Add Button
C.
New Button
D.
Add new Button
Answer: _________
Question 558:
When a value is converted from one data type to another and can store numbers with less precision, the value is said to be . . . . . . . .
A.
Demoted
B.
Promoted
C.
Exported
D.
Converted
Answer: _________
Question 559:
In Picture box You can also load the picture at runtime using the . . . . . . . . method.
A.
picture box
B.
load picture
C.
resize
D.
text
Answer: _________
Question 560:
A variable's . . . . . . . . indicates where the variable can be used in an application code.
A.
Scope
B.
Lifetime
C.
Place
D.
Position
Answer: _________
Question 561:
The value returned by the Inputbox depends on the . . . . . . . . the user chooses.
A.
Button
B.
Message
C.
Property
D.
Return type
Answer: _________
Question 562:
The . . . . . . . . is used to store controls that do not appear in the user interface during runtime.
A.
Control tray
B.
Timer tray
C.
Components tray
D.
Store tray
Answer: _________
Question 563:
. . . . . . . . means to assign a beginning value to the counter or accumulator.
A.
Initializing
B.
Updating
C.
Incrementing
D.
Checking
Answer: _________
Question 564:
In VB, The Len function returns an integer value which is the length of a phrase or a sentence, including the empty spaces.
A.
TRUE
B.
FALSE
Answer: _________
Question 565:
. . . . . . . . is data type that can be used to declare a text of maximum 10 million.
A.
date
B.
long
C.
numeric
D.
string
Answer: _________
Question 566:
. . . . . . . . is used to remove a component of the form after a certain period of time.
A.
Timer
B.
Exit button
C.
Remove button
D.
Delete button
Answer: _________
Question 567:
. . . . . . . . operator returns true, if all the sub-conditions are true.
A.
AND
B.
OR
C.
NOT
D.
NAND
Answer: _________
Question 568:
What happens when a control is deleted from a form?
A.
Does not delete the control's code
B.
Does delete the control's code
C.
Control is deleted in total
D.
Control is not deleted, it can be brought back
Answer: _________
Question 569:
Between the function's . . . . . . . . and . . . . . . . . you enter the instructions to process when the function is invoked.
A.
Header and footer
B.
Parameters and arguments
C.
Call and return
D.
Return type and function name
Answer: _________
Question 570:
In the following code, the body of If will execute if strFirst contains? If strFirst.ToUpper Like "T[OI]M" Then
A.
TIM
B.
TM
C.
IM
D.
OM
Answer: _________
Question 571:
You use the . . . . . . . . tool to add a radio button to a form.
A.
Button
B.
Radio
C.
Option
D.
RadioButton
Answer: _________
Question 572:
In VB, . . . . . . . . is used to enter the more then one value in a single variable having same data types.
A.
dim
B.
structure
C.
array
D.
variable
Answer: _________
Question 573:
The instruction in the loop body is referred to as . . . . . . . .
A.
Priming read
B.
After read
C.
Before read
D.
Update read
Answer: _________
Question 574:
The computer creates the object when it processes the statement containing . . . . . . . . keyword.
A.
Class
B.
Object
C.
New
D.
Private
Answer: _________
Question 575:
The instruction above the loop is known as the . . . . . . . .
A.
Priming read
B.
After read
C.
Before read
D.
Reading
Answer: _________
Question 576:
To menu editor is available in . . . . . . . . button of the mouse
A.
left
B.
right
C.
got focus
D.
none of these
Answer: _________
Question 577:
If the txtPrice control contains the value 75, what value will the variable=Decimal.TryParse (txtPrice.Text,decPrice) method return?
A.
False
B.
True
C.
75
D.
75.00
Answer: _________
Question 578:
When a checkbox's . . . . . . . . property is set to true, it can both accept and display multiple lines of text.
A.
Multiline Property
B.
ReadOnly Property
C.
ReadWrite Property
D.
ScrollBars Property
Answer: _________
Question 579:
. . . . . . . . uses short phrases to describe the steps the procedure must take.
A.
Pseudocode
B.
Source code
C.
Flowchart
D.
Algorithm
Answer: _________
Question 580:
the main property of check box is . . . . . . . ..
A.
list
B.
check
C.
value
D.
text
Answer: _________
Question 581:
. . . . . . . . statement is the last statement in the function.
A.
Footer
B.
Header
C.
Return
D.
Call
Answer: _________
Question 582:
When an expression contains more than one operator with same priority, then they are evaluated according their . . . . . . . .
A.
Precedence
B.
Associativity
C.
Binary
D.
Unary
Answer: _________
Question 583:
What happens when a procedure containing the following statements ends? Dim decSales As Decimal=12.2
Static decTotal As Decimal=13.5
A.
Both values lose their values
B.
Dim variable loses its value
C.
Static variable loses its value
D.
Both variables retain their values
Answer: _________
Question 584:
The condition must be a . . . . . . . . expression.
A.
Integer
B.
Double
C.
Boolean
D.
Short
Answer: _________
Question 585:
It is inappropriate to assign access keys to . . . . . . . .
A.
Text boxes
B.
Label controls
C.
Timer
D.
Button
Answer: _________
Question 586:
The name of the class file ends with . . . . . . . .
A.
.cla
B.
.class
C.
.vb
D.
None of the above
Answer: _________
Question 587:
To change the control's Shape using the . . . . . . . . property
A.
image
B.
combo
C.
shape
D.
text
Answer: _________
Question 588:
The list of items displayed by menu title are known as . . . . . . . .
A.
Items
B.
Menu list
C.
Menu items
D.
Lists
Answer: _________
Question 589:
In the following Visual Basic code, what will be in msg, if str contains "visual basic"? Dim str as String
Dim msg as String
If str.toUpper="VISUAL BASIC"
msg="VB.Net"
Else
msg="Not Visual Basic"
EndIf
A.
VB.Net
B.
Not Visual Basic
C.
Logical Error
D.
Compiler Error
Answer: _________
Question 590:
Passing a copy of the variable is referred to as . . . . . . . .
A.
Pass by value
B.
Pass by address
C.
Pass by reference
D.
Pass by pointer
Answer: _________
Question 591:
. . . . . . . . is used to delete a certain code from the code editor window.
A.
Edit
B.
Delete
C.
Truncate
D.
Free
Answer: _________
Question 592:
The . . . . . . . . symbol is called the start /stop symbol in the flowchart.
A.
Oval
B.
Rectangle
C.
Parallelogram
D.
Diamond
Answer: _________
Question 593:
. . . . . . . . is the process of finding & removing errors.
A.
debugging
B.
error finding
C.
processing
D.
non of these
Answer: _________
Question 594:
The . . . . . . . . show the various characteristics of selected objects or controls.
A.
properties window
B.
project explorer
C.
menu bar
D.
toolbox
Answer: _________
Question 595:
The . . . . . . . . is one of the most important controls as it is used to execute commands.
A.
command button
B.
radio
C.
label
D.
text
Answer: _________
Question 596:
. . . . . . . . is the process of adding a number to the value stored in a value.
A.
Counting
B.
Updating
C.
Accumulating
D.
Decrementing
Answer: _________
Question 597:
MS-access or oracle is the example of . . . . . . . . software.
A.
back end
B.
front end
C.
mathematical
D.
none of these
Answer: _________
Question 598:
. . . . . . . . property removes the title bar elements.
A.
Control Box property
B.
Minimize property
C.
Maximize property
D.
Close property
Answer: _________
Question 599:
. . . . . . . . argument in the Substring syntax specifies number of characters you want to access.
A.
numCharToAccess
B.
CharAccess
C.
numAccess
D.
ToAccess
Answer: _________
Question 600:
What value is stored in the count variable when the loop ends? For count As Integer = 5 to 9 Step 5
MessageBox.Show("Hi")
Next count
A.
10
B.
9
C.
8
D.
7
Answer: _________
Question 601:
Where you enter the event procedure's code?
A.
Event window
B.
Properties window
C.
Code Editor Window
D.
Action Window
Answer: _________
Question 602:
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 . . . . . . . .
A.
replace the 900 amount with 910
B.
replace the 500 amount with 510
C.
replace the 700 amount with 710
D.
replace the 800 amount with 810
Answer: _________
Question 603:
When you place . . . . . . . . control into the form and run the program, you will be able to select different drives from your compute
A.
drive list box
B.
picture box
C.
list box
D.
dirlist box
Answer: _________
Question 604:
You create a Public property using a . . . . . . . . procedure.
A.
SetProp
B.
Property
C.
Access
D.
SetAccess
Answer: _________
Question 605:
The number of choices the user can select is controlled by the list box's . . . . . . . .
A.
SelectionModeProperty
B.
Select Property
C.
Check Property
D.
IsSelect Property
Answer: _________
Question 606:
What will be in text, if Intid contains 3? Select Case Intid
Case 1
Text="Jannet"
Case 2 to 4
Text="Mark"
Case 5, 7
Text="Jerry"
Case Else
Text="Sue"
End Select
A.
Jannet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 607:
. . . . . . . . is used to check the condition with step by step by in this also we the condition more than one .
A.
end if condition
B.
next
C.
else if ladder
D.
nested
Answer: _________
Question 608:
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following If clauses determines whether the intSub variable contains a valid subscript for the array?
A.
If intSales(intSub) >= 0 AndAlso intSales(intSub) < 4 Then
B.
If intSales(intSub) >= 0 AndAlso intSales(intSub) <= 4 Then
C.
If intSub >= 0 AndAlso intSub < 4 Then
D.
If intSub >= 0 AndAlso intSub <= 4 Then
Answer: _________
Question 609:
A . . . . . . . . computer requests web pages from the server.
A.
Server
B.
Host
C.
Client
D.
Router
Answer: _________
Question 610:
A nested selection structure can be contained in . . . . . . . . of another selected structure.
A.
Only in the truth part
B.
Only in the false part
C.
Either in truth or in false part
D.
Both in truth and in false part
Answer: _________
Question 611:
What is the correct syntax to designate a default button?
A.
Form.default=button1
B.
Form.defaultButton=button1
C.
Form.AcceptButton=button1
D.
Form.focused=button1
Answer: _________
Question 612:
The position of an item in a list box depends on which of the following property of the value stored in the list box's?
A.
Unsorted property
B.
Sorted property
C.
Descending Property
D.
Ascending property
Answer: _________
Question 613:
. . . . . . . . displays the commands that are required to build an application. it is used to display the menus of the particular application
A.
mdi
B.
sdi
C.
menu bar
D.
toolbox
Answer: _________
Question 614:
Which of the following statements is false?
A.
A class can have only one constructor
B.
A class can have multiple constructors
C.
An object created from a class is referred to as instance of the class
D.
An instance of a class is considered an object
Answer: _________
Question 615:
Which option is used to align two or more controls by their left, right, top or bottom borders?
A.
Align option
B.
Range option
C.
Associate option
D.
Alignment option
Answer: _________
Question 616:
In VB, The. . . . . . . . function converts all the characters of a string to capital letters.
A.
str()
B.
ucase()
C.
val ()
D.
len()
Answer: _________
Question 617:
Which statement is used to define a class in visual basic?
A.
Class statement
B.
Event statement
C.
Event class statement
D.
Form class statement
Answer: _________
Question 618:
A . . . . . . . . variable is the instance of the String class.
A.
Button
B.
String
C.
Character
D.
Array
Answer: _________
Question 619:
. . . . . . . . button is used to select a control from the form.
A.
Exit button
B.
Select button
C.
Edit button
D.
Delete button
Answer: _________
Question 620:
In . . . . . . . . if condition we can check more then one condition .
A.
end if condition
B.
next
C.
stop
D.
nested
Answer: _________
Question 621:
In a . . . . . . . . loop the condition is evaluated before the instructions within the loop are processed.
A.
Posttest
B.
Pretest
C.
Conditional loop
D.
Unconditional loop
Answer: _________
Question 622:
. . . . . . . . is used to open a sequential access file for output.
A.
CreateText method
B.
AppendText method
C.
OpenText method
D.
WriteText method
Answer: _________
Question 623:
The most common event associated with the command button is the . . . . . . . . event,
A.
click
B.
change
C.
double click
D.
text
Answer: _________
Question 624:
When you group together related variables, the group is referred to as . . . . . . . .
A.
Array
B.
List
C.
Relation
D.
Variable group
Answer: _________
Question 625:
The main Property of radio button box is . . . . . . . .
A.
check
B.
value
C.
stretch
D.
load picture
Answer: _________
Question 626:
Text that cannot be changed by the user is termed as . . . . . . . . text.
A.
Constant
B.
Dynamic
C.
Static
D.
Hardcoded
Answer: _________
Question 627:
The main property of . . . . . . . ., is LoadPicture and resize the picture .
A.
picture
B.
text
C.
list
D.
form
Answer: _________
Question 628:
While entering a numeric literal constant you need not enter a . . . . . . . .
A.
Number
B.
Special character
C.
Character
D.
Double variable
Answer: _________
Question 629:
The convention is to use . . . . . . . . case for classname.
A.
Upper
B.
Lower
C.
Pascal
D.
Mixed
Answer: _________
Question 630:
What will the following code display in the lblSum control? Dim intSum As Integer
Dim intY As Integer
Do While intY < 3
For intX As Integer = 1 To 4
intSum = intSum + intX
Next intX
intY = intY + 1
Loop
lblSum.Text = Convert.ToString(intSum)
A.
5
B.
8
C.
15
D.
30
Answer: _________
Question 631:
Radio buttons are used to . . . . . . . .
A.
make interface look better
B.
make coding easier
C.
limit user input
D.
fill unique information
Answer: _________
Question 632:
What output will be returned if the following Visual Basic code is executed? strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("TN")
A.
True
B.
False
C.
11
D.
-1
E.
True
F.
False
G.
11
H.
12
Answer: _________
Question 633:
It is disadvantageous to use public variables in classes because . . . . . . . .
A.
Its values cannot be initialized
B.
It results in compilation error
C.
It cannot be accessed by other variables
D.
It cannot control its values
Answer: _________
Question 634:
If you want text to appear to the left of the selected image control on a Web form, you would need to click which button in thePosition dialog box?
A.
Align
B.
AlignLeft
C.
Left
D.
Right
Answer: _________
Question 635:
The toString method formats the number stored in the numeric value and then returns the result as a . . . . . . . .
A.
Integer
B.
Double
C.
Character
D.
String
Answer: _________
Question 636:
A control's KeyPress event occurs every time . . . . . . . .
A.
The user selects the text area
B.
The user submits the information in the text area
C.
The user types a character in the text area
D.
The user taps the enter key
Answer: _________
Question 637:
The rectangles are called as . . . . . . . . symbols in the flowchart.
A.
Decision
B.
Process
C.
Input/Output
D.
Start/End
Answer: _________
Question 638:
The first webpage added to an application is the . . . . . . . . page.
A.
Default.aspx
B.
Home.aspx
C.
Index.aspx
D.
Start.aspx
Answer: _________
Question 639:
The . . . . . . . . method pads the string on left, that is, it inserts the padded characters at the beginning of string.
A.
PadLeft
B.
PadRight
C.
PadFront
D.
PadBegin
Answer: _________
Question 640:
The function of the . . . . . . . . is to present a list of items where the user can click and select the items from the list.
A.
listbox control
B.
check
C.
radio
D.
text
Answer: _________
Question 641:
VB allows programmers to without the declaring data type before start the program it is called . . . . . . . .
A.
explicit
B.
implicit
C.
dim
D.
none of these
Answer: _________
Question 642:
The . . . . . . . . keyword indicates that an application can set the property's value, but it cannot retrieve the value.
A.
Receive
B.
Write
C.
WriteOnly
D.
ReceiveOnly
Answer: _________
Question 643:
What does namespace contain?
A.
Code that defines a group of related classes
B.
Code to define hierarchy
C.
Contains object definition
D.
Contains class definition
Answer: _________
Question 644:
if condition is end by . . . . . . . .
A.
end if condition
B.
next
C.
stop
D.
wend
Answer: _________
Question 645:
The number that appears after the period in the . . . . . . . . value indicates the order in which the controls were added to the groupbox.
A.
Tab index
B.
Tab order
C.
Groupbox tool
D.
Tab value
Answer: _________
Question 646:
. . . . . . . . is used to add a GroupBox to the interface.
A.
GroupBox tool
B.
Group tool
C.
Properties Window
D.
View Window
Answer: _________
Question 647:
The . . . . . . . . validator is used to verify that control contains data verify that an entry passes the specified validation logic.
A.
CompareValidator
B.
RangeValidator
C.
CustomValidator
D.
ValidationSummary
Answer: _________
Question 648:
The instructions in a . . . . . . . . loop are always processed at least once, whereas the instructions in a . . . . . . . . loop might not be processed at all.
A.
Posttest, pretest
B.
Pretest, posttest
C.
Pretest, pretest
D.
Posttest, posttest
Answer: _________
Question 649:
The . . . . . . . . instruction tells the computer to close the current form.
A.
Me.Close()
B.
Close()
C.
This.Close()
D.
Close.this()
Answer: _________
Question 650:
. . . . . . . . the documentation refers to putting the documentation in a safe place.
A.
Debugging
B.
Testing
C.
Assembling
D.
Printing
Answer: _________
Question 651:
Ms Access is used to . . . . . . . .
A.
store data
B.
display data
C.
create data
D.
none of these
Answer: _________
Question 652:
The variable that does not change the value during execution of program is. . . . . . . .
A.
numeric
B.
string
C.
constant
D.
none
Answer: _________
Question 653:
The extension of class module is . . . . . . . .
A.
.cls
B.
.frm
C.
.pvb
D.
.mdb
Answer: _________
Question 654:
. . . . . . . . is a numeric variable used for counting something.
A.
Accumulator
B.
Counter
C.
Positive
D.
Negative
Answer: _________
Question 655:
Radio button in an interface is labeled using . . . . . . . . property.
A.
Text
B.
Caption
C.
Name
D.
Label
Answer: _________
Question 656:
. . . . . . . . is a counter-controlled loop.
A.
For..next loop
B.
Do..while loop
C.
While loop
D.
If statement
Answer: _________
Question 657:
. . . . . . . . is used to converting a string to uppercase.
A.
toUpper
B.
toLower
C.
toUpperCase
D.
toLowerCase
Answer: _________
Question 658:
. . . . . . . . are the characteristics that describe the object.
A.
Classes
B.
Attributes
C.
Objects
D.
Instances
Answer: _________
Question 659:
The . . . . . . . . keyword is necessary only in a dual-alternative selection structure.
A.
Alternative
B.
Next
C.
Dual
D.
Else
Answer: _________
Question 660:
The . . . . . . . . keyword tells the computer to pass the variable's address rather than its contents.
A.
ByRef
B.
ByVal
C.
ByAdd
D.
ByPoint
Answer: _________
Question 661:
Vb allows programmers to define a data type before start the program it is called . . . . . . . .
A.
explicit
B.
implicit
C.
dim
D.
none of these
Answer: _________
Question 662:
The . . . . . . . . box is the standard control for accepting input from the user as well as to display the output.......
A.
image
B.
combo
C.
shape
D.
text
Answer: _________
Question 663:
The . . . . . . . . ensures that the computer processes any previous lines of code that affect the interface's appearance.
A.
Refresh Method
B.
Sleep method
C.
Count method
D.
Accumulator method
Answer: _________
Question 664:
What is the use of OLE
A.
we can link to the other application
B.
we can remove the other application
C.
we can adjust the application
D.
none of these
Answer: _________
Question 665:
Errors are called as . . . . . . . . in a program.
A.
Bugs
B.
Errors
C.
Invalid data
D.
Exceptions
Answer: _________
Question 666:
What are listed in a Properties Window?
A.
Attributes
B.
Objects
C.
Values
D.
Items
Answer: _________
Question 667:
. . . . . . . . must be the last clause in the Select Case statement.
A.
Case Else
B.
Case expnumber
C.
Case seletorExpression
D.
Case default
Answer: _________
Question 668:
Which of the following forces a literal constant to assume a data type other than the one its form indicates?
A.
Any literal
B.
Keyword
C.
Literal type constant
D.
Literal type variable
Answer: _________
Question 669:
Lifetime of a class-level variable is till . . . . . . . .
A.
A procedure ends
B.
An application ends
C.
A block ends
D.
Within the control section
Answer: _________
Question 670:
Which of the following is commonly used to perform an immediate action when clicked in Visual Studio?
A.
Button control
B.
Close
C.
End
D.
Exit
Answer: _________
Question 671:
. . . . . . . . method is used to remove specified number of characters located anywhere in the String.
A.
Trim
B.
Remove
C.
Truncate
D.
DeleteSpace
Answer: _________
Question 672:
What will be the content of Text after the code is executed with id=2? If id==1 Then
Text="Janet"
Elseif id==2 OrElse id==3 Then
Text="Mark"
ElseIF id==4 Then
Text="Jerry"
Else
Text="Sue "
EndIf
A.
Janet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 673:
What will be the output of the following Visual Basic code, If the intnumber variable is 90? If intnumber<=100 Then
Intnumber=intnumber*2
Else
Intnumber=intnumber*3
EndIf
A.
156
B.
234
C.
180
D.
270
Answer: _________
Question 674:
How many times will the MessageBox.Show method in the following code be processed? intCount =0
Do
MessageBox.Show("Hello")
intCount += 1
Loop While intCount > 3
A.
0
B.
1
C.
3
D.
4
Answer: _________
Question 675:
What will be the output of the following Visual Basic code, If the intnumber variable is 110? If intnumber<=100 Then
Intnumber=intnumber*2
Else
Intnumber=intnumber*3
EndIf
A.
180
B.
330
C.
156
D.
270
Answer: _________
Question 676:
What will be the output of the following Visual Basic code, If the intnumber variable is 110? If intnumber<=100 Then
Intnumber=intnumber*2
Else
Intnumber=intnumber*3
EndIf
A.
156
B.
270
C.
180
D.
330
Answer: _________
Question 677:
What will be the content of num, after code execution
if before code execution num has value 1000? If num<=100
num=num*2
ElseIf num>500
Num=num*3
Endif
A.
0
B.
1000
C.
3000
D.
2000
Answer: _________
Question 678:
When an option box is selected, its value is set to "True" and when it is unselected
its value is set to "False".
A.
TRUE
B.
FALSE
Answer: _________
Question 679:
What is wrong with the following if-else structure? If intQuantity > 5 Then
dblDiscountRate = .1
Else
dblDiscountRate = .05
End If
A.
No error
B.
Conditions not in brackets
C.
No
after statements
D.
'Then' should have been 'then'
Answer: _________
Question 680:
What will be the content of Text after the code is executed with id=4? If id==1 Then
Text="Janet"
Elseif id==2 OrElse id==3 Then
Text="Mark"
ElseIF id==4 Then
Text="Jerry"
Else
Text="Sue "
EndIf
A.
Janet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 681:
What will be the content of Text after the code is executed with id=8? If id==1 Then
Text="Janet"
Elseif id==2 OrElse id==3 Then
Text="Mark"
ElseIF id==4 Then
Text="Jerry"
Else
Text="Sue "
EndIf
A.
Janet
B.
Mark
C.
Jerry
D.
Sue
Answer: _________
Question 682:
What will be the content of num, after the code execution
if before code execution num has value 90? If num<=100
num=num*2
ElseIf num>500
Num=num*3
Endif
A.
0
B.
90
C.
180
D.
270
Answer: _________
Question 683:
What will be in strName after the following code is executed? strName="Joanne Hashen"
strName=strName.Insert(7,"C.")
A.
Joanne C. Hashen
B.
JoanneC.hashen
C.
Joanne
D.
C.Hashen
Answer: _________
Question 684:
What is wrong with the below statement? Msg.Text="This is an example"&ControlChars.NewLine&"Example".
A.
Used double quotes, should have used single quotes
B.
No errors
C.
There should be spaces before and after each &
D.
Should have ended with a
Answer: _________
Question 685:
What will be the content of num, after code execution
if before code execution num has value 200? If num<=100
num=num*2
ElseIf num>500
Num=num*3
Endif
A.
0
B.
200
C.
400
D.
600
Answer: _________
Answer Key
1:
A
2:
B
3:
A
4:
B
5:
A
6:
A
7:
A
8:
C
9:
A
10:
A
11:
C
12:
C
13:
A
14:
B
15:
A
16:
B
17:
A
18:
B
19:
D
20:
A
21:
A
22:
B
23:
A
24:
B
25:
B
26:
C
27:
D
28:
C
29:
B
30:
D
31:
D
32:
B
33:
B
34:
A
35:
C
36:
A
37:
B
38:
B
39:
B
40:
B
41:
C
42:
A
43:
A
44:
D
45:
A
46:
B
47:
A
48:
A
49:
B
50:
B
51:
A
52:
A
53:
D
54:
A
55:
B, H
56:
A
57:
D
58:
A
59:
B
60:
A
61:
A
62:
A
63:
B
64:
C
65:
A
66:
A
67:
C
68:
D
69:
A
70:
A
71:
A
72:
A
73:
A
74:
B
75:
A
76:
A, G
77:
A
78:
A
79:
C
80:
A
81:
B
82:
A
83:
C
84:
D
85:
B
86:
B
87:
C
88:
B
89:
A
90:
C
91:
C
92:
B
93:
B
94:
B
95:
B
96:
A
97:
D, G
98:
A
99:
A
100:
A
101:
C
102:
D
103:
D
104:
C
105:
A
106:
A
107:
A
108:
D, E
109:
B
110:
A
111:
A
112:
D
113:
D
114:
A
115:
B
116:
B
117:
A
118:
A
119:
B
120:
C
121:
A
122:
A
123:
A
124:
A
125:
A
126:
A
127:
D
128:
A
129:
A
130:
D
131:
A
132:
A
133:
A
134:
A
135:
A
136:
A
137:
A
138:
A
139:
A
140:
A
141:
B
142:
B
143:
C
144:
C
145:
B
146:
D
147:
C
148:
A
149:
A
150:
D
151:
B
152:
A
153:
A
154:
D
155:
D
156:
B
157:
A
158:
A
159:
A
160:
D
161:
B
162:
A
163:
A
164:
A
165:
A
166:
D
167:
B
168:
B
169:
D
170:
A
171:
B
172:
A
173:
D
174:
B
175:
A
176:
A
177:
A
178:
A
179:
A
180:
D
181:
C
182:
C
183:
C
184:
A
185:
A
186:
C
187:
A
188:
B
189:
D
190:
C
191:
C
192:
A
193:
D
194:
B
195:
C, E
196:
A
197:
A
198:
A
199:
B
200:
D
201:
B
202:
B
203:
A
204:
A
205:
B
206:
B
207:
A
208:
A
209:
B
210:
A
211:
A
212:
C
213:
A
214:
B
215:
A
216:
C
217:
D
218:
B
219:
C
220:
A
221:
B
222:
B
223:
B
224:
A
225:
A
226:
A
227:
B
228:
C
229:
A
230:
A
231:
A
232:
A
233:
B
234:
C
235:
C
236:
D
237:
A
238:
C
239:
A
240:
B
241:
D
242:
C
243:
D
244:
A
245:
A
246:
A
247:
C
248:
C
249:
C
250:
A
251:
A
252:
C
253:
A
254:
A
255:
A
256:
A
257:
D
258:
A
259:
A
260:
B, H
261:
A
262:
A
263:
C
264:
A
265:
C
266:
A
267:
B
268:
C
269:
C
270:
B
271:
A
272:
D
273:
A
274:
B
275:
D
276:
A
277:
D
278:
C
279:
A
280:
A
281:
A
282:
B
283:
D
284:
A
285:
A
286:
B
287:
A
288:
B
289:
A
290:
A
291:
A
292:
B
293:
B
294:
B
295:
C
296:
A
297:
C
298:
C
299:
D
300:
A
301:
A
302:
C
303:
C
304:
B
305:
A
306:
A
307:
B
308:
B
309:
C
310:
A
311:
A
312:
A
313:
A
314:
B
315:
A
316:
A
317:
A
318:
A
319:
D
320:
B
321:
A
322:
B
323:
C
324:
B
325:
D
326:
B
327:
C
328:
C
329:
A
330:
C
331:
A
332:
C
333:
A
334:
A
335:
B
336:
B
337:
A
338:
A
339:
B
340:
A
341:
C
Solution: Visual Basic was developed by Microsoft . It was created to provide a user-friendly programming environment for building Windows applications. The language evolved over time and had various versions, with Visual Basic 6.0 being one of the most widely used. It allowed developers to create graphical user interfaces and perform rapid application development. While Microsoft's involvement in the development of Visual Basic is well-established, the other options (Apple, Adobe, and Google) were not directly responsible for creating Visual Basic.
342:
A
Solution: In Visual Basic, the project file is represented by the extension .vbp . This file type contains information about the project structure, references to other files, and various project settings. The .vb extension is used for individual source code files in Visual Basic. The extensions .cls and .vvb are not commonly associated with Visual Basic project files. Therefore, the correct option is Option A: .vbp .
343:
D
Solution: Visual Basic is a versatile programming tool that can be used to develop various types of applications, including: Graphical User Interface (GUI) Applications: Visual Basic is particularly well-suited for creating applications with graphical user interfaces. It provides a drag-and-drop interface for designing windows, buttons, menus, and other visual elements that users interact with. Real-time Applications: Visual Basic can also be used to develop real-time applications, where timely processing and responses are critical. While it might not be the primary choice for extremely high-performance real-time applications, it can certainly handle a wide range of real-time tasks. Character User Interface (CUI) Applications: While Visual Basic's strengths lie in creating GUI applications, it's not limited to that. It can also be used to develop character-based or console applications, although its design principles are more aligned with GUI development. Therefore, the correct option is Option D: All of the mentioned , as Visual Basic is capable of developing applications with graphical user interfaces, real-time capabilities, and even character user interfaces to some extent.
344:
C
Solution: In the context of programming languages, the rules that dictate how programs are written and structured are referred to as Syntax . Syntax defines the correct arrangement of symbols, keywords, and other elements in a programming language to create valid and meaningful code. It governs how statements should be formed and how different parts of a program interact with each other. Option A, Grammar , is related to the structure and rules of a language, but in programming, the more specific term used is Syntax . Option B, Order , is not the appropriate term for describing programming language rules. While the order of statements is important, the term that encompasses all language rules is Syntax . Option D, Rules , is a broad term and does not specifically capture the concept of programming language rules. The term used in this context is Syntax . Therefore, the correct option is Option C: Syntax .
345:
D
Solution: In Visual Basic , if you keep a variable undeclared, it is automatically taken as the Object data type. This means that the variable can hold any type of value, as Object is the base class for all data types in Visual Basic . While this can provide flexibility, it also means that the compiler won't be able to perform type checking or provide compile-time type-related optimizations for the variable. It's generally considered good practice to explicitly declare the data type of variables to ensure clarity and avoid potential issues related to type conversion. Option A, Int , is not the default data type for undeclared variables in Visual Basic . Option B, Char , is not the default data type for undeclared variables in Visual Basic . Option C, String , is not the default data type for undeclared variables in Visual Basic . Therefore, the correct option is Option D: Object .
346:
B
Solution: In Visual Basic , the If...Then...Else statement is used for coding single-alternative and dual-alternative selection structures. Single-alternative selection: In this structure, a decision is made between two options - one when a certain condition is true, and potentially no action when the condition is false. Dual-alternative selection: Here, the program chooses between two possible actions based on whether a given condition is true or false. The If...Then...Else statement is structured as follows: If condition Then ' Code to be executed if the condition is true Else ' Code to be executed if the condition is false (optional) End If The other options listed are not directly related to selection structures in the same way: Option A, Switch-Case block , is used for handling multiple possible values of an expression, not just single or dual alternatives. Option C, function overloading , is a concept related to defining multiple functions with the same name but different parameter lists. It's not used for creating selection structures. Option D, Recursion , is a technique where a function calls itself. While recursion can be used in coding solutions, it's not specifically tied to single or dual-alternative selection structures. Therefore, the correct option is Option B: If...Then...Else statement .
347:
B
Solution: In Visual Basic , the TryParse method is used to convert a string to a number while handling potential errors that might occur during the conversion. This method is commonly used when you want to attempt the conversion without causing an exception if the conversion fails. The TryParse method is used as follows: Dim strNumber As String = "123" Dim intValue As Integer If Integer.TryParse(strNumber, intValue) Then ' Conversion successful, intValue now holds the parsed value Else ' Conversion failed, handle the error End If Option A, Convert , is a general-purpose class that provides various methods for converting between data types. While it can be used for converting strings to numbers, it's not the primary method used when error handling is a concern. Option C, Extern , is not a method for converting strings to numbers in Visual Basic . Option D, Parse , is a method for converting strings to numbers, but it does not handle errors in the same way as TryParse . Therefore, the correct option is Option B: TryParse .
348:
A
Solution: In Visual Basic , string comparison is case-sensitive . This means that when you compare two strings, the comparison takes into account the exact letter case of each character in the strings. For example, if you have the strings "Hello" and "hello", a case-sensitive comparison would consider these strings to be different. To perform a case-insensitive string comparison, you would need to use appropriate methods or functions, such as String.Compare with the appropriate StringComparison enumeration value (e.g., StringComparison.OrdinalIgnoreCase ). Therefore, the correct option is Option A: True .
349:
C
Solution: In Visual Basic , the default data type is variant . A variant is a data type that can hold any type of data. It's a flexible data type that can store numbers, strings, dates, and other types of values. However, while it provides flexibility, it can also lead to some performance overhead and potential type-related issues. Option A, string , is not the default data type in Visual Basic , although strings are commonly used data types. Option B, boolean , is not the default data type in Visual Basic . A boolean data type can only hold True or False values. Option D, date , is not the default data type in Visual Basic . While date is a common data type, variant is the default. Therefore, the correct option is Option C: variant .
350:
D
Solution: In Visual Basic , the Solution Explorer Window displays the list of projects contained in the current solution. The solution is a container that holds one or more projects, and the Solution Explorer provides a hierarchical view of these projects along with their files and resources. The Solution Explorer helps you manage your projects, files, references, and other related resources. You can add or remove projects, organize files, and perform various project-related tasks using this window. Option A, List Window , is not a standard term in Visual Basic and does not refer to the window that displays the list of projects. Option B, Project Window , does not typically refer to the window that displays the list of projects in the solution. It might be confused with the Solution Explorer, which serves this purpose. Option C, Catalogue Window , is not a standard term in Visual Basic and does not refer to the window that displays the list of projects. Therefore, the correct option is Option D: Solution Explorer Window .
351:
A
352:
A
353:
D
354:
A
355:
B
356:
A
357:
D
358:
B
359:
B
360:
A
361:
B
362:
A
363:
B
364:
A
365:
B
366:
A
367:
A
368:
D
369:
B
370:
D
371:
A
372:
A
373:
A
374:
B
375:
B
376:
B
377:
B
378:
A
379:
A
380:
A
381:
C
382:
C
383:
A
384:
D
385:
A
386:
A
387:
B
388:
B
389:
D
390:
C
391:
B
392:
C
393:
B
394:
A
395:
A
396:
C
397:
A
398:
A
399:
A
400:
B
401:
A
402:
A
403:
A
404:
A
405:
B
406:
B
407:
B
408:
C
409:
A
410:
A
411:
A
412:
B
413:
C
414:
A
415:
C
416:
B
417:
C
418:
A
419:
C
420:
A
421:
A
422:
D
423:
A
424:
C
425:
B
426:
A
427:
C
428:
A
429:
B
430:
D
431:
B
432:
B
433:
C
434:
B
435:
A
436:
B
437:
D
438:
B
439:
A
440:
A
441:
A
442:
B
443:
D
444:
D
445:
A
446:
B
447:
B
448:
B
449:
B
450:
D
451:
C
452:
A
453:
B
454:
B
455:
A
456:
C
457:
B
458:
A
459:
A
460:
C
461:
A
462:
C
463:
A
464:
A
465:
A
466:
A
467:
A
468:
A
469:
B
470:
A
471:
A
472:
A
473:
B
474:
A
475:
A
476:
A
477:
B
478:
A
479:
A
480:
C
481:
B
482:
A
483:
A
484:
D
485:
D
486:
C
487:
D
488:
B
489:
C
490:
A
491:
A
492:
C
493:
C
494:
A
495:
B
496:
C
497:
A
498:
A
499:
D
500:
D
501:
A
502:
A
503:
B
504:
A
505:
C
506:
A
507:
A
508:
C
509:
C
510:
A
511:
C
512:
D
513:
C
514:
D
515:
A
516:
A
517:
A
518:
D
519:
A
520:
B
521:
A
522:
B
523:
C
524:
A
525:
A
526:
A
527:
C
528:
A
529:
C
530:
C
531:
D
532:
B
533:
A
534:
A
535:
A
536:
C
537:
D
538:
B
539:
C
540:
B
541:
A
542:
A
543:
A
544:
A
545:
B
546:
A
547:
A
548:
A
Solution: The Remove method in Visual Basic removes a specified number of characters from a string starting from the beginning. In this code snippet, strName is assigned the value "Penny Swanson". Then, the Remove method is used to remove characters from the beginning of strName . In the expression strName.Remove(5) , it removes characters starting from index 0 up to (but not including) index 5. So, it removes the characters " Swans" from "Penny Swanson", leaving "Penny". Therefore, after execution, txtFirst.Text will contain " Penny ".
549:
A
550:
A
551:
D
552:
B
553:
A
554:
C, E
555:
B
556:
C
557:
A
558:
A
559:
B
560:
A
561:
A
562:
C
563:
A
564:
A
565:
D
566:
A
567:
A
568:
A
569:
A
570:
A
571:
D
572:
C
573:
D
574:
C
575:
A
576:
A
577:
B
578:
A
579:
A
580:
B
581:
C
582:
B
583:
B
584:
C
585:
B
586:
B
587:
C
588:
C
589:
A
Solution: The given Visual Basic code snippet compares the string variable str with "VISUAL BASIC" after converting it to uppercase using the ToUpper method. If the str variable contains "visual basic", it will be converted to "VISUAL BASIC" and compared with "VISUAL BASIC". Since the comparison is case insensitive due to the use of ToUpper, the condition will be true and msg will be assigned the value "VB.Net". Hence, the output will be "VB.Net".
590:
A
591:
B
592:
A
593:
A
594:
A
595:
A
596:
B
597:
A
598:
A
599:
A
600:
A
601:
C
602:
D
603:
A
604:
B
605:
A
606:
B
607:
C
608:
B
609:
C
610:
D
611:
C
612:
B
613:
C
614:
A
615:
A
616:
B
617:
A
618:
B
619:
A
620:
D
621:
B
622:
A
623:
A
624:
A
625:
B
626:
C
627:
A
628:
B
629:
C
630:
D
631:
C
632:
D, G
633:
D
634:
C
635:
D
636:
C
637:
B
638:
A
639:
A
640:
A
641:
B
642:
C
643:
A
644:
A
645:
A
646:
A
647:
C
648:
A
649:
A
650:
C
651:
A
652:
C
653:
A
654:
B
655:
A
656:
A
657:
A
658:
B
659:
D
660:
A
661:
A
662:
D
663:
A
664:
A
665:
A
666:
A
667:
A
668:
C
669:
B
670:
A
671:
B
672:
B
673:
C
674:
B
675:
B
676:
D
677:
C
678:
A
679:
A
680:
C
681:
D
682:
C
683:
A
684:
C
685:
B