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
Sam’s Paper Shoppe wants you to create an application that allows a salesclerk to enter an item’s price and the quantity purchased by a customer. When the quantity purchased is greater than 5,
The expression 5 * 4 > 6 ˆ 2 AndAlso True OrElse False evaluates to _____________________.a. Trueb. False
Create an application, using the following names for the solution and project, respectively: Jerome Solution and Jerome Project. Save the application in the VB2015\ Chap04 folder. Create the
In this exercise, you modify one of the Gross Pay Calculator applications from the lesson. Use Windows to make a copy of the Gross Solution-Dual folder. Rename the copy Modified Gross Solution-Dual.
The expression 5 * 4 > 6 ˆ 2 evaluates to _____________________.a. Trueb. False
In this exercise, you modify the wedding reception application from Exercise 9. The modified application will display the number of rectangular tables needed to seat the bridal party as well as the
In this exercise, you modify the Net Income or Loss application from the lesson. Use Windows to make a copy of the Net Solution folder. Rename the copy Modified Net Solution. Open the Net Solution
The expression 7 + 3 * 2 > 5 * 3 AndAlso True evaluates to _____________________.a. Trueb. False
Create an application that displays the number of round tables needed to seat only the guests at a wedding reception. (In other words, the bridal party does not need to be included in this
In this exercise, you modify one of the Gross Pay Calculator applications from the lesson. Use Windows to make a copy of the Gross Solution-Single folder. Rename the copy Modified Gross
The expression 8 >= 4 + 6 OrElse 5 > 6 AndAlso 4 < 7 evaluates to _____________________.a. Trueb. False
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
A procedure should calculate a 2.5% commission when the strCommType variable contains the string “Prime” (in any case); otherwise, it should calculate a 2% commission. The commission is
Write an If...Then...Else statement that displays the string “Cat” in the lblAnimal control when the strAnimal variable contains the letter “C” (in any case); otherwise, display the string
The expression 6 + 3 > 7 AndAlso 11 > 2 * 5 evaluates to _____________________.a. Trueb. False
Create an application that can be used to teach the Italian words for the colors red, yellow, and green. Use the following names for the solution and project, respectively: Colors Solution and Colors
The statement txtHours.Focus() invokes the txtHours _____________________ event.a. Clickb. Enterc. Focusd. SetFocus
Write an If...Then...Else statement that displays the value 25 in the lblShipping control when the strState variable contains the string “Alaska” (in any case); otherwise, display the value 15.
The expression 6 > 12 OrElse 4 < 5 evaluates to _____________________.a. Trueb. False
In this exercise, you create an application for Beachwood Industries. Use the following names for the solution and project, respectively: Beachwood Solution and Beachwood Project. Save the
Which of the following tells the computer to highlight all of the text contained in the txtName control?a. txtName.SelectAll()b. txtName.HighlightAll()c. Highlight(txtName)d. SelectAll(txtName.Text)
Write an If...Then...Else statement that assigns the number 35 to the intCommission variable when the decSales variable contains a number that is less than or equal to $250; otherwise, assign the
Marcy’s Department store 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 application
When a user tabs to a text box, the text box’s _____________________ event occurs.a. Accessb. Enterc. TabOrderd. TabbedTo
Create an application that displays the result of dividing the larger of two numbers entered by the user by the smaller one, as indicated in Figure 4-48. Use the following names for the solution and
If the user clicks the Yes button in a message box, the message box returns the number 6, which is equivalent to which value?a. DialogResultButton.Yesb. DialogResult.Yesc. DialogResult.YesButtond.
Write an If...Then...Else statement that displays the string “Time to reorder” in the lblMsg control when the intInStock variable contains a number that is less than 250; otherwise, display the
Create an application, using the following names for the solution and project, respectively: Dahlia Solution and Dahlia Project. Save the application in the VB2015\ Chap04 folder. Create the
Triple County Electric wants you to create an application that calculates a customer’s monthly electric bill, given the customer’s name and his or her current and previous meter readings. If the
Write an If...Then...Else statement that displays the string “Incorrect quantity” in the lblMsg control when the intQuantity variable contains a number that is less than 0; otherwise, display the
Which of the following If clauses should you use to compare the string contained in the txtId control with the state abbreviation CA?a. If txtId.Text = ToUpper(“CA”) Thenb. If txtId.Text =
Open the MessageBox Value Solution (MessageBox Value Solution.sln) file contained in the VB2015\Chap04\MessageBox Value Solution folder. Open the Code Editor window. When the Hours worked text box
Tea Time Company wants you to create an application that allows a clerk to enter the number of pounds of tea ordered, the price per pound, and whether the customer should be charged a $15 shipping
You use the _____________________ constant to include the Exclamation icon in a message box.a. MessageBox.Exclamationb. MessageBox.IconExclamationc. MessageBoxIcon.Exclamationd. MessageBox.WarningIcon
Write an If...Then...Else statement that displays the string “Please enter ZIP code” in the lblMsg control when the txtZip control does not contain any data.
Which of the following compound conditions can be used to determine whether the value in the intQuantity variable is outside the range of 0 through 500?a. intQuantity < 0 OrElse intQuantity >
In this exercise, you modify the bakery application from Chapter 3. Use Windows to copy the Bakery Solution folder from the VB2015\Chap03 folder to the VB2015\Chap04 folder, and then open the Bakery
When entered in the appropriate event procedure, which of the following statements cancels the key pressed by the user?a. e.Cancel = Trueb. e.Cancel = Falsec. e.Handled = Trued. e.Handled = False
In this exercise, you modify the Net Income or Loss application from Lesson A. Use Windows to make a copy of the Net Solution folder. Rename the copy Net Solution- Print. Open the Net Solution (Net
What is the TabIndex value of the first control added to a group box whose TabIndex value is 3?a. 3b. 3.0c. 3.1d. None of the above
Write an If...Then...Else statement that displays the string “Columbia” in the lblCapital control when the txtState control contains the string “SC” (in any case).
An If...Then...Else statement in the btnCalc_Click procedure declares a variable in its false path. Where can the variable be used?a. in the entire Code Editor windowb. in the entire btnCalc_Click
Create an application that displays a person’s maximum heart rate, given his or her age. The maximum heart rate is calculated by subtracting the person’s age from the number 220. The application
Create an application that converts American dollars to the three currencies indicated in Figure 4-47. Use the following names for the solution and project, respectively: Converter Solution and
Which of the following statements is false?a. When you delete a group box, the controls contained within the group box are also deleted.b. Moving a group box also moves all of the controls contained
Open the VB2015\Chap03\Debug Solution-Lesson A\Debug Solution (Debug Solution.sln) file. The application is supposed to display the number of times the Count button is pressed, but it is not working
In this exercise, you experiment with procedure-level and class-level variables. Open the VB2015\Chap03\Scope Solution\Scope Solution (Scope Solution.sln) file. The application allows the user to
Open the VB2015\Chap03\Width Solution\Width Solution (Width Solution.sln) file. The application calculates a rectangle’s width, given its perimeter and length. In the General Declarations section
Open the VB2015\Chap03\Floor Solution\Floor Solution (Floor Solution.sln) file. The application displays the area of a floor in square yards, given its length and width (both measured in feet). In
Write the statement to declare a Double variable that can be used by two procedures in the same form. Name the variable dblNetIncome. Also specify where you will need to enter the statement in the
Write an assignment statement that adds together the values stored in the decDomestic and decInternational variables and then assigns the result to a String variable named strIncome.
Write an assignment statement that increases the contents of the decPrice variable by 2%.
In this exercise, you will learn about a form’s CancelButton property, which specifies the button whose Click event procedure is processed when the user presses the Esc key. Open the
Open the VB2015\Chap03\Tax Solution\Tax Solution (Tax Solution.sln) file. The application displays a 5% sales tax on the purchase amount entered by the user. In the General Declarations section of
Open the VB2015\Chap03\Debug Solution-Lesson C\Debug Solution (Debug Solution. sln) file. Start and then test the application. Locate and correct any errors.
Create an application that displays a circle’s area and circumference, given its radius. Use the following names for the solution and project, respectively: Circle Solution and Circle Project. Save
Open the VB2015\Chap03\Mileage Solution\Mileage Solution (Mileage Solution.sln) file. The application displays the miles per gallon, given the miles driven and gallons used. In the General
Create an application using the following names for the solution and project, respectively: Pink Elephant Solution and Pink Elephant Project. Save the application in the VB2015\Chap03 folder. Change
K & L Clothiers wants you to create an application that prints a customer’s sales receipt. A sample receipt is shown in Figure 3-49. Use the following names for the solution and project,
Write an assignment statement that subtracts the contents of the dblExpenses variable from the contents of the dblIncome variable and then assigns the result to the dblNet variable.
If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the lblTotal control?a. lblTotal.Text = Convert.ToInteger(intN1 +
Create an application using the following names for the solution and project, respectively: Credit Card Solution and Credit Card Project. Save the application in the VB2015\ Chap03 folder. Change the
The strFirst, strMiddle, strLast, and strNickname variables contain the strings “Addison”, “Grace”, “Carson”, and “Addi G”, respectively. Write an assignment statement that will
The InputBox function’s prompt argument should be entered using which type of capitalization?a. Book titleb. Sentence
Write a Private statement to declare a class-level variable named dblGrandTotal.
Create an application using the following names for the solution and project, respectively: Pennies Solution and Pennies Project. Save the application in the VB2015\ Chap03 folder. Change the form
The strCity and strState variables contain the strings “Scottsdale” and “AZ”, respectively. Write an assignment statement to display the string “They live in Scottsdale, AZ.” in the
Which of the following statements correctly assigns the InputBox function’s return value to a String variable named strCity?a. String.TryParse(InputBox(strMSG, "City"), strCity)b. strCity =
Write the statement to assign the contents of the dblTotalSales variable to the lblTotal control.
In this exercise, you modify the Chopkins Toys application from Exercise 2. Use Windows to make a copy of the Chopkins Solution folder. Rename the copy Modified Chopkins Solution. Open the Chopkins
The strFirst and strLast variables contain the strings “Kate” and “Juarez”, respectively. Write an assignment statement to display the string “Kate Juarez” in the lblName control.
Which of the following statements correctly assigns the InputBox function’s return value to a Double variable named dblNum?a. Double.TryParse(InputBox(strMSG, "Number"), dblNum)b. dblNum =
Write the statement to store the contents of the txtAge control in an Integer variable named intAge.
Which of the following are computer memory locations that can temporarily store information?a. Literal constantsb. Named constantsc. Variablesd. Both b and c
Create an application using the following names for the solution and project, respectively: Retirement Solution and Retirement Project. Save the application in the VB2015\Chap03 folder. Change the
In this exercise, you modify the bakery application from this lesson. Use Windows to make a copy of the Bakery Solution folder. Rename the copy Modified Bakery Solution-Lesson B. Open the Bakery
The strCity and strState variables contain the strings “Louisville” and “KY”, respectively. Which of the following will display the string “Louisville, KY” (the city, a comma, a space,
Write the statement to declare the procedure-level decINTEREST_RATE named constant whose value is 0.075.
Create an application using the following names for the solution and project, respectively: Van Solution and Van Project. Save the application in the VB2015\Chap03 folder. Change the form file’s
Which of the following statements declares a procedure-level variable that retains its value after the procedure in which it is declared ends?a. Const intCounter As Integerb. Dim intCounter As
The strWord1 and strWord2 variables contain the strings “Input” and “Box”, respectively. Which of the following will display the string “InputBox” (one word) in the lblWord control?a.
Write an assignment statement that assigns the name Carol Jones to a String variable named strEmployee. Also write assignment statements that assign the numbers 34 and 15.99 to variables named intAge
Which of the following statements declares a class-level variable?a. Class intNum As Integerb. Private intNum As Integerc. Private Class intNum As Integerd. Private Dim intNum As Integer
In this exercise, you modify the bakery application from this lesson. Use Windows to make a copy of the Bakery Solution folder. Rename the copy Modified Bakery Solution-Lesson C-Intermediate. Open
Which of the following statements declares a procedure-level variable that is removed from the computer’s memory when the procedure ends?a. Const intCounter As Integerb. Dim intCounter As Integerc.
Open the VB2015\Chap03\Bonus Solution\Bonus Solution (Bonus Solution.sln) file. The application displays a salesperson’s total sales and bonus amounts. The bonus is calculated by multiplying the
Which of the following Visual Basic constants advances the insertion point to the next line?a. Advanceb. ControlChars.Advancec. ControlChars.NewLined. None of the above
Write an assignment statement that assigns Georgia to a String variable named strState.
Which of the following keywords can be used to declare a variable within a procedure?a. Dimb. Procedurec. Staticd. Both a and c
Create an application using the following names for the solution and project, respectively: Tile Solution and Tile Project. Save the application in the VB2015\Chap03 folder. Change the form file’s
Which of the following clauses associates a procedure with the TextChanged event of the txtMid and txtFinal controls?a. Associates txtMid_TextChanged, txtFinal_TextChangedb. Handled
This exercise assumes you have completed the Cranston Berries application from Exercise 3 in each of Chapter 2’s lessons. Use Windows to copy the Cranston Solution folder from the VB2015\Chap02
Which of the following is the concatenation operator?a. @b. &c. $d. #
A procedure needs to store the name of a business, the number of its employees at the beginning of the current year, the number of new employees hired during the current year, the number of employees
Which of the following statements declares a procedure-level variable that remains in the computer’s memory until the application ends?a. Dim Static intScore As Integerb. Private Static intScore As
Create an application using the following names for the solution and project, respectively: Chopkins Solution and Chopkins Project. Save the application in the VB2015\Chap03 folder. Change the form
A _____________________ variable is a procedure-level variable that retains its value after the procedure in which it is declared ends.a. Constantb. Staticc. Stationaryd. Term
This exercise assumes you have completed the Jordan Sports Store application from Exercise 2 in each of Chapter 2’s lessons. Use Windows to copy the Jordan Solution folder from the VB2015\Chap02
The InputBox function displays a dialog box containing which of the following?a. Input areab. OK and Cancel buttonsc. Promptd. All of the above
A procedure needs to store a person’s height and weight. The height may have a decimal place; the weight will always be a whole number. Write the appropriate Dim statements to declare the necessary
Showing 500 - 600
of 662
1
2
3
4
5
6
7