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 3RQ
Program Description Answer
The statement strAmount = strAmount.PadRight(9, “!”c) changes the contents of the strAmount variable from “678.95” to “678.95!!!”.
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
The 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.
Which 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 ");
write a java GUI application that will keep track of the weekly lotto numbers for a month. The application must capture the four weekly numbers entered by a user. Create four fields and a list box to display the weekly lotto numberson the form. also create a submit button that will capture the four weely numbers entered 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
- 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_forwardText line breaks and returns are controlled using which tags?. <b></b> <p></p> <ol></ol> <a></a>arrow_forwardIf the following JavaScript commands were used to construct and place the niftyDivelement, then removing this element may be accomplished by using the statement document.deleteChild(niftyDiv);.let niftyDiv = document.createElement("div"); document.body.appendChild(niftyDiv); Choose between True or False: True Falsearrow_forward
- Which JavaScript expression can you use to retrieve the value from the web form input control with the id “numberOfParticipants”? a. getInputValue("numberOfParticipants") b. let value = document.getElementById("numberOfParticipants") c. document.getElementById("numberOfParticipants").input d. document.getElementById("numberOfParticipants").valuearrow_forwardWhich 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_forwardThe strName variable contains the string “Jeffers”. Which of the following statements changes the contents of the variable to the string “Jeff”? a. strName = strName.Remove(4) b. strName = strName.Remove(5) c. strName = strName.Remove(5, 3) d. strName = strName.Remove(3, 5)arrow_forward
- Which 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_forwardCreate a subroutine called WherePutMe that asks the user for a row number and column letter then places the 2,2 position of a selection into that cell. (HINT: Make sure that you select a selection before running the sub!) HINT: If x is an integer and is equal to 7 and y is a string and equal to "B", you can place z into cell B7 by: Range(y & x) = z. Hope this helps.arrow_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
- If 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_forwardOpen the application in the folder under the coursework. Open the HTML file and notice that an Invoice Date field has been added. Then, open the HTML file and notice that it includes a getFormattedDate() function that formats the Date object that’s passed to it in MM/DD/YYYY format and then returns the date string. Start the application, enter a subtotal, and click the Calculate button. Note that nothing is displayed in the Invoice Date field. In the click() event handler for the Calculate button, add code that gets the current date and formats it using the getFormattedDate() function. Then, add code that provides a default value of the formatted current date for the invoice date. Note that if an invoice date is entered, that date isn’t validated. Add code that sets the value of the Invoice Date field. If you’ve done this right, the application should display the current date when you click the Calculate button without entering anything in the Invoice Date field. <!DOCTYPE…arrow_forwardAn auto dealer's tblTrucks table has two text fields named Make and Model, and two numeric fields named Year and ListPrice. In the TableAdapter Configuration Wizard, which of the following statements adds the numbers in the ListPrice field to give a total value for the dealer's truck inventory? a. SELECT SUM(ListPrice) AS TotalValue b. SELECT SUM(ListPrice) AS TotalValue FROM tblTrucks c. SELECT SUM(ListPrice) AS TotalValue FROM tblTrucks d. SELECT (ListPrice) FROM tblTrucksarrow_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,