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 7RQ
Program Description Answer

The statement intNum = strMsg.IndexOf("F") assigns the value 16 to the variable intNum.

Hence, the correct answer is option “C”.

Blurred answer
Students have asked these similar questions
If the strMsg variable contains the string “Her birthday is Friday!”, which of the following assigns the number 16 to the intNum variable? a. intNum = strMsg.Substring(0, "F") b. intNum = strMsg.Contains("F") c. intNum = strMsg.IndexOf("F") d. intNum = strMsg.IndexOf(0, "F")
If the strMessage variable contains the string “Today is Sunday”, which of the following assigns the number 10 to the intNum variable?a. intNum = strMessage.Substring("u")b. intNum = strMessage.Substring("S", 1)c. intNum = strMessage.IndexOf("u")d. intNum = strMessage.IndexOf(0, "S")
If the strWord variable contains the string “crispy”, which of the following statements assigns the letter s to the strLetter variable? a. strLetter = strWord.Substring(3) b. strLetter = strWord.Substring(3, 1) c. strLetter = strWord.Substring(4, 1) d. None of the above.
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning