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.
True or False When you pass the formatting string "C" or "c" to the ToString method, the number is returned formatted as currency.
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.
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
- 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 ....... Thenarrow_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_forwardList the method you would use to determine each of the following about the value ofa string object: contains the substring “VIDI”arrow_forward
- The empty string in Visual Basic is represented by which named constant?arrow_forwardUsing one of the of a string object, you may determine the location of the substring.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
- select pre increment operators .A variable++ .B ++variable .C variable-- .D --variablearrow_forwardUsing one of the of a string object will allow you to determine the location of the substring that you are looking for.arrow_forwardWrite a Visual Basic statement that uses the Insert method to change the contents of the strWord variable from “me” to “mean”.arrow_forward
- Write 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_forwardAssume that the following variables contain the values shown:numberBig = 100numberMedium = 10numberSmall = 1wordBig = "Constitution"wordMedium = "Dance"wordSmall = "Toy”For each of the following Boolean expressions, decide whether the statement is true, false, or illegal.a. numberBig > numberSmallb. numberBig < numberMediumc. numberMedium = numberSmalld. numberBig = wordBige. numberBig = "Big"f. wordMedium > wordSmallg. wordSmall = "TOY"h. numberBig <= 5 * numberMedium + 50i. numberBig >= 2000j. numberBig > numberMedium + numberSmallk. numberBig > numberMedium AND numberBig < numberSmalll. numberBig = 100 OR numberBig > numberSmallm. numberBig < 10 OR numberSmall > 10n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1o. wordSmall > wordBigp. wordSmall > wordMediumarrow_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