Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 7, Problem 11RQ
Program Description Answer

The statement to change the contents of the strName variable from “Doe Jane” to “Doe, Jane” is “strName = strName.Insert(3, “,”)”.

Hence, the correct answer is option “A”.

Blurred answer
Students have asked these similar questions
If the strWord variable contains the string “spring”, which of the following statements assigns the letter r to the strLetter variable? a. strLetter = strWord.Substring(2) b. strLetter = strWord(2) c. strLetter = strWord(2, 1) d. All of the above.
The strDue variable contains the string “$****75”. Which of the following statements removes the dollar sign and asterisks from the variable? a. strDue = strDue.Trim("$"c, "*"c) b. strDue = strDue.TrimStart("*"c, "$"c) c. strDue = strDue.TrimStart("$"c, "*"c) d. All of the above.
The strTotal variable contains the string “***75.67”. Write a statement that uses the TrimStart method to change the variable’s contents to “75.67”.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning