Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visual Basic Programming IndexOf is a string processing function. True False Fla

ID: 3919095 • Letter: V

Question

Visual Basic Programming


IndexOf is a string processing function.

True

False


Flag this Question
Question 21 pts
If you create a variable of type String, then it can contain values like "0".

True

False


Flag this Question
Question 31 pts
To declare a variable that can hold literals like True or False, you may use:
Dim MyVar As Boolean

True

False


Flag this Question
Question 41 pts
To declare a variable that will hold the value of someone's salary, you may use:
Dim X As Boolean

True

False


Flag this Question
Question 51 pts
When working in design view, double clicking a button, creates the Click event handler for the button.

True

False


Flag this Question
Question 61 pts
The return value of "abcdefg".substring(1,n) is the string starting at "b" with n-1 additional letters or to the end of the original string if n is a positive integer > 0.

True

False


Flag this Question
Question 71 pts
The return value of "abcd".indexof("a") is 1.

True

False


Flag this Question
Question 81 pts
The source code of the form would be in Machine Language.

True

False


Flag this Question
Question 91 pts
If we are given the following code:

Dim X(9) As Boolean

Then which of the statements below is true?

X(9) is False.

X(10) is Nothing.

X(9) is True

No correct answer is shown.


Flag this Question
Question 101 pts
A variable of type StreamWriter has which of the following methods (functions) defined?

DoubleClick

ControlChars.CR

Writeline( )

Click


Flag this Question
Question 111 pts
A variable of type StreamReader has which of the following methods available?

Readline

Read

All answers shown are correct

Close


Flag this Question
Question 121 pts
Which of the following is a valid function argument definition:

ByVal x As Integer

No Correct Answer is Shown

ByRef int x

ByVal x() Arrray


Flag this Question
Question 131 pts
When defining a function, the first line ends with clause that begins with As. Which of the following does it do:

declares the arguments data type

declares the function name data type

declares the return data type

No correct answer is shown


Flag this Question
Question 141 pts

For this question, please refer to the code that follows:
Dim Sum As Integer = 0
Dim Count As Integer = 0
Do while Count < 35
    Sum += CINT(Inputbox("Enter a grade"))
    Count += 1
Loop

The loop above runs for how many times:

2

1

0

35


Flag this Question
Question 151 pts

Refer to the previous question.

What is the value of Count before we start the loop?

0

No correct answer is shown

1

Nothing


Flag this Question
Question 161 pts
As in the previous question, what is the value of Count after the first iteration?

0

1

Nothing

No correct answer is shown


Flag this Question
Question 171 pts
When defining a function, ___________ is used to provide a value back to the calling code.

End

Return

argument list

If statement


Flag this Question
Question 181 pts
To declare an array X, that will only contain 100 names, you would use:

Dim X(100) As String

Dim X(99) As String

No Correct Answer is Shown

Dim X(100) As Name

Explanation / Answer

Answer 1:
IndexOf is a string processing function : True

Answer 2:
If you create a variable of type String, then it can contain values like "0" : True

Answer 3:
To declare a variable that can hold literals like True or False, you may use:
Dim MyVar As Boolean : True
Answer 4:
To declare a variable that will hold the value of someone's salary, you may use:
Dim X As Boolean : False
Answer 5:
When working in design view, double clicking a button, creates the Click event handler for the button : True
Answer 6:
The return value of "abcdefg".substring(1,n) is the string starting at "b" with n-1 additional letters or to the end of the original string if n is a positive integer > 0 : True

Answer 7:
The return value of "abcd".indexof("a") is 1 : False
Answer 8:
The source code of the form would be in Machine Language : False
Answer 9:
If we are given the following code:

Dim X(9) As Boolean : X(9) is True


Answer 10:
A variable of type StreamWriter has which of the following methods (functions) defined?


WriteLine()
Answer 11:
A variable of type StreamReader has which of the following methods available?

All answers shown are correct

Answer 12:
When defining a function, the first line ends with clause that begins with As. Which of the following does it do:
declares the arguments data type
Answer 13:
35 times
Answer 14:
0
Answer 15:
1
Answer 16:
When defining a function, ___________ is used to provide a value back to the calling code.

return
Answer 17:
To declare an array X, that will only contain 100 names, you would use:

Dim X(100) As String