Visual Basic - Study Mode

[#546] Set the identifying labels tab index property that is . . . . . . . . than text box's tab index property.
Correct Answer

(A) One number lesser

[#547] The main Property of check box is . . . . . . . .
Correct Answer

(A) check

[#548] What will contain in txtFirst after the following Visual Basic code is executed? strName = "Penny Swanson"
txtFirst.Text = strName.Remove(5)
Correct Answer

(A) Penny

Explanation

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] In VB, The . . . . . . . . first we check the condition, if the condition is true then it execute the true statement same as while condition .
Correct Answer

(A) for loop

[#550] A . . . . . . . . provides an area in the form for the user to enter data.
Correct Answer

(A) Text box