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
Ask a Question
Search
Search
Sign In
Register
study help
computer science
programming microsoft visual basic
Questions and Answers of
Programming Microsoft Visual Basic
The accountant at Canton Manufacturing Company wants you to create an application that calculates an asset’s annual depreciation using the double-declining balance and sum-of-the-years’ digits
Create a Windows Forms application. Use the following names for the project and solution, respectively: General Project and General Solution. Save the application in the VB2017\Chap05 folder. A
In this exercise, you create an application that allows the user to enter the gender (either F or M) and GPA for any number of students. The application should calculate the average GPA for all
Create a Windows Forms application. Use the following names for the project and solution, respectively: Mills Project and Mills Solution. Save the application in the VB2017\Chap05 folder. Mills
In this exercise, you modify the Monthly Payment application from this chapter’s Apply lesson. Use Windows to make a copy of the Payment Solution folder. Rename the copy Modified Payment Solution.
In this exercise, you create an application for Discount Warehouse. Create a Windows Forms application. Use the following names for the project and solution, respectively: Discount Project and
Open the Multiplication Solution.sln file contained in the VB2017\Chap05\Multiplication Solution folder. Code the application to display a multiplication table similar to the one shown in Figure
In this exercise, you modify the Numbers application from Exercise 6. Use Windows to make a copy of the Numbers Solution folder. Rename the copy Modified Numbers Solution. Open the Numbers
Open the Numbers Solution.sln file contained in the VB2017\Chap05\Numbers Solution folder. The application allows the user to display a list of numbers in a list box. The user will enter the start
In this exercise, you modify one of the Projected Sales applications from this chapter’s Apply lesson. Use Windows to make a copy of the Projected Sales Solution-ForNext folder. Rename the copy
In this exercise, you modify one of the Projected Sales applications from this chapter’s Apply lesson. Use Windows to make a copy of the Projected Sales Solution folder. Rename the copy Modified
In this exercise, you modify the Savings Account application from this chapter’s Apply lesson. Use Windows to make a copy of the Savings Solution folder. Rename the copy Modified Savings Solution.
Create a Windows Form application. Use the following names for the project and solution, respectively: State Capital Project and State Capital Solution. Save the application in the VB2017\Chap05
In this exercise, you modify the Monthly Payment application from this chapter’s Apply lesson. Use Windows to make a copy of the Payment Solution folder. Rename the copy Payment Solution-DoLoop.
If a list box’s Sorted property is set to True, how will the numbers 4, 35, 3, 1, and 12 be displayed in the list box?a. 4, 35, 3, 1, 12b. 1, 3, 4, 12, 35c. 1, 12, 3, 35, 4d. 35, 12, 4, 3, 1
If a list box’s Sorted property is set to False, how will the numbers 4, 35, 3, 1, and 12 be displayed in the list box?a. 4, 35, 3, 1, 12b. 1, 3, 4, 12, 35c. 1, 12, 3, 35, 4d. 35, 12, 4, 3, 1
To make the btnCalc control the default button, you need to set the _____________________ property.a. btnCalc’s AcceptButtonb. btnCalc’s DefaultButtonc. form’s AcceptButtond. form’s
Which of the following calculates the monthly payment (expressed as a positive number) for a loan of $10,000 for 2 years with a 3.5% annual interest rate?a. –Financial.Pmt(0.035, 2, 10000)b.
What will the following code display in the lblSum control?Dim intSum As IntegerDim intY As IntegerDo While intY < 3For intX As Integer = 1 To 4intSum += intXNext intXintY += 1LooplblSum.Text =
What will the following code display in the lblAsterisks control?For intX As Integer = 1 To 2For intY As Integer = 1 To 3lblAsterisks.Text = lblAsterisks.Text & "*"Next intYlblAsterisks.Text =
Which event occurs when the user selects a different item in a list box?a. SelectionChangedb. SelectedItemChangedc. SelectedValueChangedd. None of the above.
Which of the following statements selects the fourth item in the lstNames control?a. lstNames.SelectIndex = 3b. lstNames.SelectIndex = 4c. lstNames.SelectedIndex = 3d. lstNames.SelectedItem = 4
Which of the following properties stores the index of the item selected in a list box?a. Indexb. SelectedIndexc. Selectiond. SelectionIndex
The items in a list box belong to which collection?a. Itemsb. Listc. ListItemsd. Values
Which of the following methods is used to add items to a list box?a. Addb. AddListc. Itemd. ItemAdd
The loop controlled by the correct For clause from Review Question 13 will end when the intX variable contains the number _____________________.a. 100b. 111c. 101d. 110
Which of the following For clauses indicates that the loop instructions should be processed as long as the intX variable’s value is less than 100?a. For intX As Integer = 10 To 100b. For intX As
Which of the following statements is equivalent to the statement dblTotal = dblTotal + dblSales?a. dblTotal += dblSalesb. dblSales += dblTotalc. dblTotal =+ dblSalesd. dblSales =+ dblTotal
In addition to the sequence structure, which of the following control structures is used in flowchart D in Figure 5-46?a. Selectionb. Repetitionc. Both a and b. A T. -O-T- LL
In addition to the sequence structure, which of the following control structures is used in flowchart C in Figure 5-46?a. Selectionb. Repetitionc. Both a and b. A T. -O-T- LL
In addition to the sequence structure, which of the following control structures is used in flowchart B in Figure 5-46?a. Selectionb. Repetitionc. Both a and b. A T. -O-T- LL
In addition to the sequence structure, which of the following control structures is used in flowchart A in Figure 5-46?a. Selectionb. Repetitionc. Both a and b. -0- 0-0-E-C-E-H
The computer will stop processing the loop in Review Question 6 when the intCount variable contains the number _____________________.a. 11b. 12c. 13d. 14
How many times will the string literal “Hi” appear in the lblMsg control?For intCount As Integer = 6 To 13 Step 2lblMsg.Text = lblMsg.Text &"Hi" & ControlChars.NewLineNext intCountA.
How many times will the string literal “Hi” appear in the lblMsg control?Dim intCount As IntegerDolblMsg.Text = lblMsg.Text &"Hi" & ControlChars.NewLineintCount += 1Loop While intCount
How many times will the string literal “Hi” appear in the lblMsg control? Dim intCount As IntegerDo While intCount > 4lblMsg.Text = lblMsg.Text &"Hi" &
The instructions in a _____________________ loop might not be processed at all, whereas the instructions in a _____________________ loop are always processed atleast once.a. Posttest, pretest b.
Which of the following statements can be used to code a loop whose instructions you want processed 10 times?a. Do…Loopb. For…Nextc. All of the above.
Which of the following clauses will stop the loop when the value in the intPopulation variable is less than the number 5000?a. Do While intPopulation >= 5000b. Do Until intPopulation < 5000c.
The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap04 folder.
In this exercise, you modify the Sales application from Exercise 14 in Chapter 3. Use Windows to copy the Sales Solution folder from the VB2017\Chap03 folder to the VB2017\Chap04 folder. Open the
In this exercise, you modify the Grade application from Exercise 13 in Chapter 3. Use Windows to copy the Grade Solution folder from the VB2017\Chap03 folder to the VB2017\Chap04 folder. Open the
Create a Windows Forms application. Use the following names for the project and solution, respectively: Jacket Haven Project and Jacket Haven Solution. Save the application in the VB2017\Chap04
In this exercise, you create an application for Genatone Inc. The application displays the price of an order based on the number of units ordered and the customer’s status (either wholesaler or
Each salesperson at Canton Inc. receives a commission based on the amount of his or her sales. The commission rates and additional payment amounts are shown in Figure 4-60. Create a Windows Forms
Williams Cable Company wants an application that displays a customer’s monthly cable bill, which is based on the information shown in Figure 4-59. Create a Windows Forms application. Use the
Software Haven sells a software package that is available in three editions. The application should display the price of the edition a customer wants to purchase. The retail prices for the Ultimate,
In this exercise, you modify the application from Exercise 7. The modified application will display the number of rectangular tables needed to seat the bridal party as well as the number of round
Open the Wedding Solution.sln file contained in the VB2017\Chap04\Wedding Solution folder. The application should display the number of round tables needed to seat only the guests at a wedding
Patti Garcia owns two cars, referred to as Car 1 and Car 2. She wants to drive one of the cars to her vacation destination, but she’s not sure which one (if any) would cost her the least amount in
Lorenzo’s is having a BoGoHo (Buy One, Get One Half Off) sale. The store manager wants an application that allows the salesclerk to enter the prices of two items. The half off should always be
In this exercise, you modify the application created in Exercise 2. Use Windows to make a copy of the Hales Solution folder. Rename the copy Hales Solution-Select Case. Open the Hales Solution.sln
Create a Windows Forms application. Use the following names for the project and solution, respectively: Baxters Project and Baxters Solution. Save the application in the VB2017\Chap04 folder. Change
Create a Windows Forms application. Use the following names for the project and solution, respectively: Hales Project and Hales Solution. Save the application in the VB2017\Chap04 folder. Change the
Create a Windows Forms application. Use the following names for the project and solution, respectively: States Capitals Project and States Capitals Solution. Save the application in the VB2017\Chap04
An expression can contain arithmetic, comparison, and logical operators. Indicate the order of precedence for the three types of operators by placing a number (1, 2, or 3) on the line to the left of
The six logical operators are listed below. Indicate their order of precedence by placing a number (1, 2, and so on) on the line to the left of the operator. If two or more operators have the same
Which of the following statements is equivalent to the statement dblTotal = dblRate * dblTotal?a. dblTotal =* dblRateb. dblTotal *= dblRatec. dblRate *= dblTotald. dblRate =* dblTotal
Which of the following If clauses determines whether the user pressed the % key?a. If ControlChars.PercentSign = True Thenb. If e.KeyChar = "%" Thenc. If e.KeyChar = Chars.PercentSign Thend. If
Which of the following If clauses determines whether the user pressed the Backspace key?a. If e.KeyChar = ControlChars.Back Thenb. If e.KeyChar = Backspace Thenc. If e.KeyChar =
When entered in the appropriate event procedure, which of the following statements cancels the key pressed by the user?a. e.Handled = Trueb. e.Handled = Falsec. e.KeyCancel = Trued. e.KeyCancel =
When entering data in a text box, each key the user presses invokes the text box’s_____________________ event.a. Focusb. Keyc. KeyFocusd. KeyPress
Which of the following events occurs when a check box is clicked?a. Changedb. Checkedc. CheckedChangedd. None of the above.
Which of the following If clauses will evaluate to True when the Bonus check box is selected?a. If chkBonus.Check = True Thenb. If chkBonus.Checked Thenc. If chkBonus.Checked = True Thend. Both b and
If a radio button is selected, its _____________________ property contains the Boolean value True.a. Checkedb. Onc. Selectedd. Selection
A form contains six check boxes. Three of the check boxes are located in a group box. How many of the check boxes on the form can be selected at the same time?a. Oneb. Twoc. Threed. Six
It is customary in Windows applications to designate a default check box.a. True b. False
Which capitalization should be used for the text appearing in check boxes and radio buttons? a. Sentence capitalization b. Book title capitalization c. Either book title capitalization
If a check box is not selected, what value is contained in its Checked property?a. Trueb. Uncheckedc. Falsed. Unselected
What is the minimum number of radio buttons in a group?a. Oneb. Twoc. Threed. There is no minimum number of radio buttons.
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 1?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus =
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 7?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus =
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 8?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus =
What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable contains the number 4?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 = "Bronze"
Which of the following Case clauses is valid in a Select Case statement whose selectorExpression is an Integer variable named intAge?a. Case Is > 21b. Case 21, 65c. Case 1 To 10d. All of the above.
Where can a nested selection structure appear?a. Only in an outer selection structure’s false pathb. Only in an outer selection structure’s true pathc. In either of an outer selection
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string “3”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel "2"
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string “10”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel "2"
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string “5”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel "2"
What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string “2”?a. Bronzeb. Goldc. Platinumd. Silver "2" Then If strLevel = "1" OrElse
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 33?a. 0b. 5c. 8d. 10 If intAge
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 12?a. 0b. 5c. 8d. 10 If intAge
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 2?a. 0b. 5c. 8d. 10 If intAge
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 65?a. 0b. 5c. 8d. 10 If intAge
Evaluate the following expression: 5 * 4 > 6 ˆ 2 AndAlso True OrElse False.a. True b. False
Evaluate the following expression: 5 * 7 > 6 ˆ 2.a. True b. False
Evaluate the following expression: 7 + 3 * 2 > 6 * 3 AndAlso True.a. True b. False
Evaluate the following expression: 8 <= 4 + 6 AndAlso 5 > 6 OrElse 4 < 7.a. True b. False
Evaluate the following expression: 6 + 3 > 7 AndAlso 11 < 2 * 5.a. True b. False
Evaluate the following expression: 13 > 12 OrElse 6 < 5.a. True b. False
Which of the following If clauses compares the string contained in the txtId control with the abbreviation for the state of Georgia?a. If ToUpper(txtId.Text.Trim) = "GA" Thenb. If
Which of the following compound conditions determines whether the value in the intOrdered variable is outside the range of 0 through 25?a. intOrdered < 0 OrElse intOrdered > 25b. intOrdered
Open the VB2017\Chap03\FixIt Solution\FixIt Solution.sln file. The application should calculate and display the area of a rectangular floor (in square feet) and the total cost of tiling the floor.
In this exercise, you will complete the Sales application that you created in Exercise 8 in Chapter 2.a. Use Windows to copy the Sales Solution folder from the VB2017\Chap02 folder to the
In this exercise, you will complete the Grade Percentages application that you created in Exercise 7 in Chapter 2.a. Use Windows to copy the Grade Solution folder from the VB2017\Chap02 folder to the
In this exercise, you modify the Chopkins Toys application from Exercise 11. Use Windows to make a copy of the Chopkins Solution folder. Rename the copy Modified Chopkins Solution. Open the Chopkins
Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder.
In this exercise, you will complete the Kramden Inc. application that you created in Exercise 6 in Chapter 2.a. Use Windows to copy the Kramden Solution folder from the VB2017\Chap02 folder to the
In this exercise, you will complete the Raises and New Salaries application that you created in Exercise 5 in Chapter 2.a. Use Windows to copy the Salary Solution folder from the VB2017\Chap02 folder
Showing 200 - 300
of 392
1
2
3
4