All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Study Help
New
Search
Search
Sign In
Register
study help
computer science
programming with microsoft visual basic 2015
Questions and Answers of
Programming with Microsoft Visual Basic 2015
Open the VB2015\Chap08\Item Solution\Item Solution (Item Solution.sln) file. The btnVerify_Click procedure should determine whether the item number was entered in the required format: two digits, a
The strItem variable contains 25 characters. Which of the following For clauses will access each character contained in the variable, character by character?a. For intIndex As Integer = 0 To 25b. For
Use Windows to make a copy of the Net Pay Solution folder from Lesson A. Rename the copy Net Pay Solution-Menu. Open the Net Pay Solution (Net Pay Solution.sln) file contained in the Net Pay
The horizontal line in a menu is called _____________________ .a. A menu barb. A separator barc. An item separatord. None of the above
Write a Visual Basic statement that removes the leading and trailing spaces from the txtAddress control.
The txtState control contains the word Alaska followed by one space. Which of the following statements removes the space from the control’s contents?a. txtState.Text = txtState.Text.Trimb.
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap08\ Debug Solution 3 folder. Open the Code Editor window and review the existing code. Start and then test the
If the strLocation variable contains the string “75 Oak Avenue”, what will the strAddress.IndexOf("Oak") method return?a. –1b. 3c. 4d. True
Open the Social Security Solution (Social Security Solution.sln) file contained in the VB2015\Chap08\Social Security Solution-Remove folder. The interface provides a text box for entering a Social
If the strAddress variable contains the string “2345 Hawthorne Blvd”, what will the strAddress.IndexOf("Hawthorne", 5) method return?a. –1b. 5c. 6d. False
Visual Basic provides the StartsWith and EndsWith methods for determining whether a specific sequence of characters occurs at the beginning or end, respectively, of a string. The StartsWith
Visual Basic provides the Replace method for replacing a sequence of characters in a string with another sequence of characters. The method’s syntax is string.Replace(oldValue, newValue). When
In this lesson, you learned how to use the Trim method to remove space characters from both the beginning and end of a string. You can also use the Trim method to remove other characters. The syntax
Visual Basic provides the TrimStart and TrimEnd methods for removing one or more characters from the beginning or end, respectively, of a string. The TrimStart method’s syntax is
Visual Basic provides the Mid statement for replacing a specified number of characters in a string with another string. The statement’s syntax is Mid(targetString, start [, count]) =
Which of the following is false?a. The order of the arguments listed in the Call statement should agree with the order of the parameters listed in the receiving procedure’s header.b. The data type
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(ByContents strName As String)b. Private Sub
What is the three-character extension appended to solution files in Visual Basic 2015?a. .prgb. .slnc. .srcd. .vbs
In this exercise, you modify the bonus application from Exercise 4. Use Windows to make a copy of the Bonus Solution folder. Rename the copy Modified Bonus Solution. Open the Bonus Solution (Bonus
A procedure allows the user to enter one or more values. The first input instruction will get the first value only and is referred to as the _____________________ read.a. Enteringb. Initializerc.
What will the following code display in message boxes?Dim intX As Integer = 1Do While intX < 5 MessageBox.Show(intX.ToString) intX += 1Loop
In this exercise, you modify the Favorites application from Lesson A. Use Windows to make a copy of the Favorites Solution folder. Rename the copy Favorites Solution-Intermediate. Open the Favorites
In this exercise, you modify the Cerruti Company application from this lesson. Use Windows to make a copy of the Cerruti Solution folder. Rename the copy Cerruti Solution-Sub. Open the Cerruti
To determine whether a variable is being passed to a procedure by value or by reference, you will need to examine _____________________.a. The Call statementb. The procedure headerc. The statements
Write the code for a Sub procedure that receives three Integer variables: the first two by value and the last one by reference. The procedure should multiply the first variable by the second variable
Create an application, using the following names for the solution and project, respectively: Planets Solution and Planets Project. Save the application in the VB2015\ Chap07 folder. Create the
In this exercise, you modify the Cerruti Company application from this lesson. Use Windows to make a copy of the Cerruti Solution folder. Rename the copy Modified Cerruti Solution. Open the Cerruti
Which of the following statements invokes the GetArea Sub procedure, passing it two variables by value?a. Call GetArea(dblLength, dblWidth)b. Call GetArea(ByVal dblLength, ByVal dblWidth)c. Invoke
Write the code for a function that receives a copy of the value stored in an Integer variable. The function should divide the value by 2 and then return the result, which may contain a decimal place.
In this exercise, you modify the application from Exercise 4. Use Windows to make a copy of the Planets Solution folder. Rename the copy Planets Solution-Sub. Open the Planets Solution (Planets
Open the Translator Solution (Translator Solution.sln) file contained in the VB2015\Chap07\Translator Solution-Sub folder. The application should use three independent Sub procedures to translate the
In this exercise, you experiment with passing variables by value and by reference. Open the VB2015\Chap07\Passing Solution\Passing Solution (Passing Solution.sln) file.a. Open the Code Editor window
In this exercise, you modify the application from Exercise 4. Use Windows to make a copy of the Planets Solution folder. Rename the copy Planets Solution-Function. Open the Planets Solution (Planets
Open the Translator Solution (Translator Solution.sln) file contained in the VB2015\Chap07\Translator Solution-Function folder. The application should use three functions to translate the English
In this exercise, you modify the Favorites application from this lesson. Use Windows to make a copy of the Favorites Solution folder. Rename the copy Modified Favorites Solution. Open the Favorites
In this exercise, you modify one of the Concert Tickets applications from Lesson A. Use Windows to make a copy of the Concert Solution-Function folder. Rename the copy Concert Solution-Intermediate.
The Donut Shoppe sells four varieties of doughnuts: Glazed ($.75), Sugar ($.75), Chocolate ($.75), and Filled ($.95). It also sells regular coffee ($1.50) and cappuccino ($2.75). The store manager
In this exercise, you modify one of the Concert Tickets applications from this lesson. Use Windows to make a copy of the Concert Solution-Sub folder. Rename the copy Modified Concert Solution-Sub.
In this exercise, you modify the Donut Shoppe application from Exercise 7. Use Windows to make a copy of the Donut Solution folder. Rename the copy Modified Donut Solution. Open the Donut Solution
In this exercise, you modify one of the Concert Tickets applications from this lesson. Use Windows to make a copy of the Concert Solution-Function folder. Rename the copy Modified Concert
Create an application, using the following names for the solution and project, respectively: Mats Solution and Mats Project. Save the application in the VB2015\ Chap07 folder. Mats-R-Us sells three
Create an application, using the following names for the solution and project, respectively: Gross Solution-Sub and Gross Project. The application’s interface is shown in Figure 7-30. The lstHours
In this exercise, you modify the Mats-R-Us application from Exercise 9. Use Windows to make a copy of the Mats Solution folder. Rename the copy Modified Mats Solution. Open the Mats Solution (Mats
Create an application, using the following names for the solution and project, respectively: Gross Solution-Function and Gross Project. The application’s interface is shown in Figure 7-30. The
Create an application, using the following names for the solution and project, respectively: Cable Direct Solution and Cable Direct Project. Save the application in the VB2015\Chap07 folder. Create
If the statement Call CalcNet(decNetPay) passes the variable’s address, the variable is said to be passed _____________________.a. By addressb. By contentc. By referenced. By value
Open the VB2015\Chap07\Average Solution\Average Solution (Average Solution.sln) file. Open the Code Editor window and review the existing code. The btnAvg_Click procedure should use a function to
The purpose of this exercise is to demonstrate a common error made when using functions. Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\ Chap07\Debug Solution-Lesson C
Create an application, using the following names for the solution and project, respectively: Savings Solution-Function and Savings Project. The application’s interface is shown in Figure 7-31. The
A Sub procedure named GetEndingInventory is passed four Integer variables named intBegin, intSales, intPurchases, and intEnding. The procedure should calculate the ending inventory using the
In this exercise, you modify the Savings Account application from Exercise 13. Use Windows to make a copy of the Savings Solution-Function folder. Rename the copy Savings Solution-Sub. Also change
Which of the following statements should you use to call the GetEndingInventory procedure described in Review Question 14?a. Call GetEndingInventory(intBegin, intSales, intPurchases, intEnding)b.
Open the Conversion Solution (Conversion Solution.sln) file contained in the VB2015\Chap07\Conversion Solution-Sub folder. Code the application so that it uses two independent Sub procedures: one to
The memory locations listed in the parameterList in a procedure header have procedure scope and are removed from the computer’s internal memory when the procedure ends.a. Trueb. False
Open the Conversion Solution (Conversion Solution.sln) file contained in the VB2015\ Chap07\Conversion Solution-Function folder. Code the application so that it uses two functions: one to convert a
Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statement should assign the function’s return
In this exercise, you learn how to specify that one or more arguments are optional in a Call statement. Open the VB2015\Chap07\Optional Solution\Optional Solution (Optional Solution.sln) file.a. Open
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap07\ Debug Solution-Lesson A folder. Open the Code Editor window and review the existing code. Start the application.
Write the code for a function named GetState. The function should prompt the user to enter the name of a U.S. state and then return the user’s response. Then write a statement to invoke the
Each memory location listed in the parameterList in the procedure header is referred to as _____________________.a. An addressb. A constraintc. A parameterd. A value
In this exercise, you modify the Monthly Payment application from Lesson B. Use Windows to make a copy of the Payment Solution folder. Rename the copy Payment Solution-FormClosing. Open the Payment
Which of the following rounds the contents of the dblNum variable to two decimal places?a. Math.Round(dblNum, 2)b. Math.Round(2, dblNum)c. Round.Math(dblNum, 2)d. Round.Math(2, dblNum)
In this exercise, you create an application that displays the capital of the state whose name is selected in a combo box. Create an application, using the following names for the solution and
Write the code for a Sub procedure named GetState. The procedure should prompt the user to enter the name of a U.S. state, storing the user’s response in its strState parameter. Then write a
The items listed in the Call statement are referred to as _____________________.a. Argumentsb. Parametersc. Passersd. None of the above
In this exercise, you will remove the Math.Round function from the payroll application created in the lesson; doing this will allow you to observe the “penny off” error. Use Windows to make a
Which of a form’s events is triggered when you click the Close button on its title bar?a. Closeb. CloseFormc. FormClosed. FormClosing
In this exercise, you create an application that displays the name of the artist corresponding to the song title selected in a combo box. Create the application, using the following names for the
Write the code for a Sub procedure that receives a Double number passed to it. The procedure should multiply the number by 1.5 and then display the result in the lblAnswer control. Name the procedure
Which of the following is false?a. A function can return only one value to the statement that invoked it.b. A Sub procedure can accept only one item of data passed to it.c. The parameterList in a
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap06\ Debug Solution-A29 folder. The code should display a 5% commission for each sales amount that is entered, but it is
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap06\ Debug Solution-A28 folder. The code should display the numbers 10 through 1, but it is not working correctly. Correct
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap06\ Debug Solution-A27 folder. The code should display the numbers 1 through 4, but it is not working correctly. Correct
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap06\ Debug Solution-A26 folder. The code should display a 10% bonus for each sales amount that is entered, but it is not
Create an application, using the following names for the solution and project, respectively: General Solution and General Project. Save the application in the VB2015\ Chap06 folder. The
Open the VB2015\Chap06\Multiplication Solution (Multiplication Solution.sln) file. Code the application to display a multiplication table similar to the one shown in Figure 6-31. Use the For...Next
In this exercise, you modify one of the Projected Sales applications from this lesson. Use Windows to make a copy of the Sales Solution-For Next folder. Rename the copy Sales Solution-Do While. Open
In this exercise, you modify the Addition application from this lesson. Use Windows to make a copy of the Addition Solution folder. Rename the copy Addition Solution Intermediate. Open the Addition
In this exercise, you modify one of the Projected Sales applications from this lesson. Use Windows to make a copy of the Sales Solution folder. Rename the copy Sales Solution-Intermediate. Open the
What will the following code display?Dim intTotal As IntegerDo MessageBox.Show(intTotal.ToString) intTotal = intTotal + 2Loop Until intTotal
What will the following code display?Dim intTotal As IntegerDo While intTotal <= 7 MessageBox.Show(intTotal.ToString) intTotal += 3Loop
Write a For...Next statement that calculates and displays the squares of odd numbers from 3 through 15 (e.g., 9, 25, and so on). Display each number on a separate line in the lblNums control.
Write a For...Next statement that displays the numbers from 6 through 60 in increments of 6 in the lblNums control. Display each number on a separate line in the control.
Write the Visual Basic code that corresponds to the flowchart shown in Figure 6-30. Display the calculated results on separate lines in the lblCount control. start initialize counter to 5 T display
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap06\ Debug Solution-B15 folder. Open the Code Editor window and review the existing code. Start and then test the
Rewrite the pretest loop from Exercise 14 as a posttest loop. Add another button to the interface used in Exercise 14. Enter your code from this exercise in the button’s Click event procedure. Test
In this exercise, you learn how to use the String Collection Editor window to fill a list box with values. Open the VB2015\Chap06\ListBox Solution\ListBox Solution (ListBox Solution.sln) file. Open
Rewrite the pretest loop from Exercise 13 using the Do...Loop statement. Add another button to the interface created in Exercise 13. Enter your code from this exercise in the button’s Click event
Write the Visual Basic code for a pretest loop that uses an Integer variable named intEven to display the even integers from 2 through 20 in the lblEven control. Use the For...Next statement. Display
Modify Solution 2 shown earlier in Figure 6-4. The solution should now keep track of the number of times Sahirah’s laser beam missed the spider. After saying “You are safe now. The spider is
Which of the following statements is equivalent to the statement dblTotal = dblTotal + dblScore?a. dblTotal += dblScoreb. dblScore += dblTotalc. dblTotal =+ dblScored. dblScore =+ dblTotal
Open the VB2015\Chap06\Car Solution\Car Solution (Car Solution.sln) file. (The image is provided courtesy of OpenClipArt.org/Keistutis.) The btnClickMe_Click procedure should make the “I WANT THIS
Write a Visual Basic assignment statement that subtracts the contents of the decReturns variable from the contents of the decSales accumulator variable.
Which of the following control structures are used in flowchart D in Figure 6-28?a. Sequenceb. Selectionc. Repetition T.
Create an application, using the following names for the solution and project, respectively: Bar Chart Solution and Bar Chart Project. Save the application in the VB2015\Chap06 folder. The
Open the VB2015\Chap06\Fibonacci Solution\Fibonacci Solution (Fibonacci Solution.sln) file. The application should display the first 10 Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13, 21, 34, and 55. Notice
Write a Visual Basic assignment statement that updates the intTotal counter variable by –3.
Which of the following control structures are used in flowchart C in Figure 6-28?a. Sequenceb. Selectionc. Repetition T.
Create an application, using the following names for the solution and project, respectively: New Salary Solution and New Salary Project. Save the application in the VB2015\Chap06 folder. Assume that
Open the VB2015\Chap06\Random Solution\Random Solution (Random Solution.sln) file. The application should give the user 10 chances to guess a random number generated by the computer. The random
Showing 300 - 400
of 662
1
2
3
4
5
6
7