Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 7, Problem 2RQ
Which of the following statements changes the contents of the strWord variable from “led” to “lead”?
- a. strWord = strWord.AddTo(2, "a")
- b. strWord = strWord.Insert(2, "a")
- c. strWord = strWord.Insert(3, "a")
- d. strWord = strWord.Into(3, "a"c)
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which of the following statements changes the contents of the strWord variable from “led” to “lead”? a. strWord = strWord.AddTo(2, "a") b. strWord = strWord.Insert(2, "a") c. strWord = strWord.Insert(3, "a") d. strWord = strWord.Into(3, "a"c)
Which of the following expressions evaluates to True when the strPart variable contains the string “12AX45”?a. strPart Like "99[A-Z][A-Z]99"b. strPart Like "######"
c. strPart Like "##[A-Z][A-Z]##"d. none of the above
Which of the following expressions evaluates to True when the strItem variable contains the string “1234Y5”? a. strItem Like "####[A-Z]#" b. strItem Like "9999[A-Z]9" c. strItem Like "######" d. None of the above.
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
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Which of the following expressions evaluates to True when the strItem variable contains the string 1234Y5? a. strItem Like ####[A-Z]# b. strItem Like 9999 [A-Z] 9 c. strItem Like ###### d. None of the above.arrow_forwardThe strName variable contains the string “Doe Jane”. Which of the following changes the variable’s contents to the string “Doe, Jane”? a. strName = strName.Insert(3, ",") b. strName = strName.Insert(4, ",") c. strName = strName.AddTo(3, ",") d. None of the above.arrow_forwardWhich of the following can be used to clear the text contained in the lblTax control? a. lblTax = String.Empty b. lblTax.Text = String.Empty c. lblTax.ClearText d. lblTax.Text.Cleararrow_forward
- Which of the following Visual Basic constants advances the insertion point to the next line? a. Advance b. ControlChars.Advance c. ControlChars.NewLine d. none of the abovearrow_forwardWhich of the following will display $8.00, $8.50, $9.00, and $9.50 in message boxes?a. For decDollars As Decimal = 8 To 9.5 Step 0.05MessageBox.Show(decDollars.ToString("C2"))Next decDollarsb. For dblDollars As Double = 8 To 9.5 Step 0.5MessageBox.Show(dblDollars.ToString("C2"))Next dblDollarsc. For strDollars As String = "$8.00" To "$9.50" Step "0.5"MessageBox.Show(strDollars)Next strDollarsd. both b and carrow_forwardWhich of the following statements formats the contents of the dblNet variable with a dollar sign and two decimal places? a. lblNet.Text = dblNet.ToCurrency("C2") b. lblNet.Text = dblNet.ToString("C2") c. lblNet.Text = ToString(dblNet , "C2") d. lblNet.Text = dblNet.ToFormat("C2")arrow_forward
- Which of the following options will return the string "Welcome to Canada!"? Try to answer this question from your understanding and not typing the expression into the Python interactive mode. Question options: a. str1 = "Welcome" str2 = "to"str3 = "Canada"str4 = "!"str1 + " " + str2 + " " + str3 + " " + str4 b. str1 = "Welcome" str2 = "to"str3 = "Canada"str4 = "!"str1 + " " + str2 + " " + str3 + str4 c. str1 = "Welcome" str2 = "to"str3 = "Canada"str4 = "!"str1 + str2 + str3 + "!" d. str1 = "Welcome" str2 = "to"str3 = "Canada"str4 = "!"str1[0] + str2[1] + str3[2] + "!"arrow_forwardWhich of the following variable names are written with the convention used in this book?1. decintrestrate2. InterestRateDecimal3. decInterestRatearrow_forwardWhich of the following methods can be used to determine whether the strRate variable contains the percent sign? a. blnResult = strRate.Contains("%") b. intResult = strRate.IndexOf("%") c. intResult = strRate.IndexOf("%", 0) d. All of the above.arrow_forward
- Which of the following returns the Boolean value True when thestrPetName variable contains the string “Micki”? strPetName.Contains ("k") strPetName Like "M*" strPetName. Substring (2, 1) = "c" all of the abovearrow_forwardDo as directed. There is an application in which user may check subject check box and enter subject marks in relevant text field. In case of checking check box relevant text field state is changed to editable and by unchecking check box relevant text field state is changed to read only, you have to Write a code for “Total and Average Quality Points” button in which you have to calculate total points, average point and show in relevant fields. Also write code for click event of check boxes. Average Points = Total Points/Number of Coursesarrow_forwardIf 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.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 LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License