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 3, Problem 9RQ
Which 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.Clear
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which 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.Clear
Which of the following statements displays a dialog box that prompts the user for a name, and then assigns the user’s response to the strPet variable?a. InputBox("Name:", "Pet Name", strPet)
b. InputBox("Name:", strPet)
c. strPet = InputBox("Name:", "Pet Name")
d. none of the above
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 above
Chapter 3 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 3 - Prob. 1MQ1Ch. 3 - Prob. 2MQ1Ch. 3 - Prob. 3MQ1Ch. 3 - Prob. 4MQ1Ch. 3 - Prob. 5MQ1Ch. 3 - Which of the following are valid names for...Ch. 3 - Prob. 1MQ2Ch. 3 - Prob. 2MQ2Ch. 3 - Write a Dim statement that declares a Boolean...Ch. 3 - Prob. 1MQ3
Ch. 3 - Prob. 2MQ3Ch. 3 - Prob. 3MQ3Ch. 3 - Write a TryParse method that stores the strSales...Ch. 3 - Prob. 1MQ4Ch. 3 - Prob. 2MQ4Ch. 3 - Prob. 3MQ4Ch. 3 - Prob. 4MQ4Ch. 3 - Prob. 5MQ4Ch. 3 - Prob. 1MQ5Ch. 3 - Prob. 2MQ5Ch. 3 - Prob. 3MQ5Ch. 3 - Prob. 4MQ5Ch. 3 - Prob. 1MQ6Ch. 3 - Prob. 2MQ6Ch. 3 - Prob. 3MQ6Ch. 3 - Prob. 4MQ6Ch. 3 - Prob. 5MQ6Ch. 3 - Prob. 1MQ7Ch. 3 - Prob. 2MQ7Ch. 3 - Prob. 3MQ7Ch. 3 - Prob. 4MQ7Ch. 3 - Prob. 1MQ8Ch. 3 - Prob. 2MQ8Ch. 3 - Prob. 3MQ8Ch. 3 - Prob. 4MQ8Ch. 3 - Prob. 1MQ9Ch. 3 - Prob. 2MQ9Ch. 3 - Prob. 3MQ9Ch. 3 - Prob. 1RQCh. 3 - Prob. 2RQCh. 3 - What is the result of the following expression: 96...Ch. 3 - Which of the following is an invalid name for a...Ch. 3 - The expression intNum * intNum * intNum is...Ch. 3 - What is the result of the following expression: 3...Ch. 3 - Prob. 7RQCh. 3 - Which of the following statements declares a...Ch. 3 - Which of the following can be used to clear the...Ch. 3 - Prob. 10RQCh. 3 - Which of the following declares a procedure-level...Ch. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - A static variable has the same...Ch. 3 - Prob. 18RQCh. 3 - Which of the following statements declares a...Ch. 3 - Most of the memory locations declared in an...Ch. 3 - Prob. 1ECh. 3 - Prob. 2ECh. 3 - Prob. 3ECh. 3 - Prob. 14E
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 declares a procedure-level String variable? a. Dim String strCity b. Dim strCity As String c. Private strCity As String d. Both b and c.arrow_forwardWhich of the following is a valid header for a procedure that receives a copy of the value stored in a String variable? a. Private Sub DisplayName(ByCopy strName As String) b. Private Sub DisplayName ByVal(strName As String) c. Private Sub DisplayName(ByVal strName As String) d. None of the above.arrow_forwardWhich of the following will not display two asterisks on each of three lines in the lblMsg control?a. lblMsg.Text = "**" &ControlChars.NewLine & "**" & ControlChars.NewLine & "**"b. For intCounter As Integer = 1 To 3lblMsg.Text = lblMsg.Text & "**" & ControlChars.NewLineNext intCounter c. For intX As Integer = 1 To 3For intY As Integer = 1 To 2lblMsg.Text = lblMsg.Text & "*"Next intYlblMsg.Text = lblMsg.Text & ControlChars.NewLineNext intXd. For intX As Integer = 1 To 2For intY As Integer = 1 To 3lblMsg.Text = lblMsg.Text & "*"Next intYlblMsg.Text = lblMsg.Text & ControlChars.NewLineNext intXarrow_forward
- Which of the following data types is appropriate for a variable that will storealphanumeric text? a. Alpha b. AlphaNum c. String d. Textarrow_forwardWhich of the following will not display the number 123 on each of two lines in the lblMsg control? (The intY variable was declared with the statement Dim intY As Integer.)a. For intX As Integer = 1 To 2intY = 1DolblMsg.Text = lblMsg.Text & intY.ToStringintY += 1Loop Until intY > 3lblMsg.Text = lblMsg.Text & ControlChars.NewLineNext intX b. intY = 1Do Until intY > 2For intX As Integer = 1 To 3lblMsg.Text = lblMsg.Text & intX.ToStringintY = intY + 1Next intXlblMsg.Text = lblMsg.Text & ControlChars.NewLineLoopc. For intX As Integer = 1 To 2intY = 1Do Until intY > 3lblMsg.Text = lblMsg.Text & intY.ToStringintY += 1LooplblMsg.Text = lblMsg.Text & ControlChars.NewLineNext intXd. intY = 1Do Until intY > 2For intX As Integer = 1 To 3lblMsg.Text = lblMsg.Text & intX.ToStringNext intXintY = intY + 1lblMsg.Text = lblMsg.Text & ControlChars.NewLineLooparrow_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_forward
- Which of the following advances the insertion point to the next line in a control?a. Control.Chars.Advanceb. ControlChars.Advance c. Control.Chars.NewLined. ControlChars.NewLinearrow_forwardIf 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")arrow_forwardWhich JavaScript statement should you use to determine whether the string stored in the variable funnyStory includes the word “cat”? a. let includesCat = funnyStory.includes(" cat "); b. let includesCat = funnyStory.includes("cat"); c. let includesCat = funnyStory.indexOf(cat); d. let includesCat = funnyStory.substring(" cat ");arrow_forward
- 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_forwardWhich 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_forwardWhich of the following is a valid header for a procedure that is passed the number 15? a. Private Function GetTax(ByVal intRate As Integer) As Decimal b. Private Function GetTax(ByAdd intRate As Integer) As Decimal c. Private Sub CalcTax(ByVal intRate As Integer) d. Both a and c.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 LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
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