![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_largeCoverImage.gif)
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 7, Problem 12RQ
Program Description Answer
The statement “strLetter = strWord.Substring(3, 1)” assigns the fourth character in the strWord variable to strLetter variable.
Hence, the correct answer is option “B”.
Expert Solution & Answer
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Students have asked these similar questions
This code does not print anything. Would you please check the code again. Thank you.
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.
By using one of the string objects, you will have the ability to precisely locate the place of the substring in which you are interested.
Chapter 7 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 7 - Which of the following statements changes the...Ch. 7 - Prob. 3RQCh. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 11RQCh. 7 - Prob. 12RQCh. 7 - Prob. 14RQCh. 7 - Which of the following expressions evaluates to...Ch. 7 - Which of the following statements declares an...Ch. 7 - Which of the following statements generates a...
Knowledge Booster
Similar questions
- Declare a string variable containing the name of your favorite color, initialize it as a null terminated string.arrow_forwardBy using one of the string objects, you may determine its location.arrow_forwardThe following condition evaluates to True when the string stored in the strLetter variable is lowercase letter; otherwise, it evaluates to False. Please complete the code. If strLetter Like ....... Thenarrow_forward
- TWO: 0010 Create a variable and ask the user to input a number. Ask the user to input a number in a variable that will be rewritten every time the user inserts a number and Enforce the rules: Enforce that the input is a digit from 1 to 100. Give feedback to the user if the number needs to meet the rule. Allow the user to input the number again. If the number meets the rules, convert the input [a string] into an integer and evaluate if the guessed number is the same as the randomly generated number. Evaluate if the randomly generated number is the same that the number input by the user.arrow_forwardFYI: Please Use Pseudocode. (Like the example provided at the end of the question)arrow_forwardList the method you would use to determine each of the following about the value ofa string object: contains the substring “VIDI”arrow_forward
- Assume choice references a string. The following if statement determines whether choice is equal to ‘Y’ or ‘y’:if choice == 'Y' or choice == 'y':Rewrite this statement so it only makes one comparison and does not use the or operator. (Hint: use either the upper or lower methods.)arrow_forwardThe empty string in Visual Basic is represented by which named constant?arrow_forwardQ2: - Write a program in visual basic that exchanges the values of two string type variables. Use two text boxes for the string variables and one command botton for еxeсution.arrow_forward
- select pre increment operators .A variable++ .B ++variable .C variable-- .D --variablearrow_forwardWrite a Visual Basic statement that uses the Insert method to change the contents of the strWord variable from “me” to “mean”.arrow_forwardWrite the first line of an if statement that calls the char.IsUpper method, passing a string variable named sentence and the index value for the first character of the sentence variable as arguments.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning