ExamVeda
Login
Home
71
What is the result of the following statements?

Dim strCities() As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
strCities(2)="Kolkata"
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
72
Which of the following is false?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
73
What output will be returned if the following Visual Basic code is executed?

strVisualBasic = "Example, VB.Net"
intCharIndex = strVisualBasic.IndexOf("VB")
Discuss
Answer & Solution
Answer: Option B
Solution:
The IndexOf function in Visual Basic is used to find the first occurrence of a specific string within another string.
In this code, strVisualBasic is assigned the string "Example, VB.Net".
The line intCharIndex = strVisualBasic.IndexOf("VB") attempts to find the starting position of the substring "VB" within strVisualBasic.
The IndexOf function returns the index (position) of the first character of the found substring. The index starts at 0.
In the string "Example, VB.Net", "VB" starts at the 9th position (remember counting starts at 0).
'E' is at index 0, 'x' is at index 1, 'a' is at index 2, 'm' is at index 3, 'p' is at index 4, 'l' is at index 5, 'e' is at index 6, ',' is at index 7, ' ' is at index 8, 'V' is at index 9.
Therefore, intCharIndex will be assigned the value 9.
So the correct answer is Option B: 9
74
Files that are read by computer are called as . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
75
Using a named constant is advantageous because to change a value in future, change . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
76
A . . . . . . . . displays a list of choices.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
77
The text box's . . . . . . . . event procedure prevents user from entering a specified character.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
78
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)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
79
Progress bar is always work with . . . . . . . .control.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
80
Data in an array can be distinguished using . . . . . . . . number.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board