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
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
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.
By using one of the string objects, you may determine its location.
The 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 ....... Then
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
- True or False When you pass the formatting string "C" or "c" to the ToString method, the number is returned formatted as currency.arrow_forwardTWO: 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_forwardAssume 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_forward
- The empty string in Visual Basic is represented by which named constant?arrow_forwardList the method you would use to determine each of the following about the value ofa string object: contains the substring “VIDI”arrow_forwardThe __________ indicates that you want the number to appear formatted in a specific way when it is returned as a string from the ToString method. a. formatting string b. insert method c. data type d. variable namearrow_forward
- Q2: - 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_forwardUsing one of the of a string object will allow you to determine the location of the substring that you are looking for.arrow_forwardselect pre increment operators .A variable++ .B ++variable .C variable-- .D --variablearrow_forward
- Write a Visual Basic statement that uses the Insert method to change the contents of the strWord variable from “me” to “mean”.arrow_forwardWrite an assignment statement that adds together the values stored in the decDomestic and decInternational variables and then assigns the result to a String variable named strIncome.arrow_forwardThe __________ indicates that you want the number to appear formatted in a spe- cific way when it is returned as a string from the ToString method.a. formatting stringb. insert methodc. data typed. variable namearrow_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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning