Which of the following shows the correct way to remove leading and trailing spaces from a text box named txtStudentID and assign the result to strStudentID?
A) Dim strStudentID as String strStudentID = txtStudentID
B) Dim strStudentID as String strStudentID = txtStudentID.Text
C) Dim strStudentID as String strStudentID = RemoveSpaces(txtStudentID.Text)
D) Dim strStudentID as String strStudentID = txtStudentID.Text.Trim()
Correct Answer:
Verified
Q29: The expression IsNumeric(13.75) returns the value _.
A)
Q30: If a form contains two radio buttons
Q31: It is possible to compare the return
Q32: Which statement copies a string from a
Q33: If the Boolean expression on the left
Q34: What value is assigned to the String
Q35: Which statement tests the value of an
Q36: What value will be assigned to strGrade
Q37: An If statement that appears inside another
Q38: The logical operators (And, Or, Xor, Not)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents