New Semester
Started
Get
50% OFF
Study Help!
--h --m --s
Claim Now
Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
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
Tutors
Online Tutors
Find a Tutor
Hire a Tutor
Become a Tutor
AI Tutor
AI Study Planner
NEW
Sell Books
Search
Search
Sign In
Register
study help
computer science
programming microsoft visual basic
Microsoft Visual Basic 2017 For Windows Web And Database Applications 1st Edition Corinne Hoisington - Solutions
What is the difference between passing by value and passing by reference?
What is the fewest number of arguments you can pass to a Sub procedure?
What section of code performs a specific task and returns a value?
What section of code performs a specific task and does not return a value?
If a variable intPlatform is assigned the value 4 in a Sub procedure, what is the value of intPlatform when the variable is placed outside of the Sub procedure if it is not passed out of the procedure?
How many values can a Function procedure return?
Write a Return statement that returns the variable intCricketScore.
Write the Visual Basic statements declaring a Sub procedure called Elevator that receives one variable called intFloors. The variable intFloors will be changed in the procedure. Write only the first and last lines of the Sub procedure.
When multiple arguments are passed to a procedure, the order is not important. True or false?
If you want a copy of a variable passed to a procedure, which way should you pass it?
You must have a Return statement in a Sub procedure. True or false?
You cannot have a Return statement in a Function procedure. True or false?
Which type of exception would be detected if you used the conversion command Convert.ToInt32 to convert a non-integer value?
Which type of exception would be detected if you used the conversion command Convert.ToDecimal to try to convert an ampersand?
If you enter a number that is too large for the data type, which type of exception would be detected?
When deciding whether a set of programming steps should be placed in a Sub procedure or a Function procedure, what are three questions you should ask?
Fix the code: Private Sub btnCyberMonday_Tap (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCyberMonday. Tap Dim decPurchase As Decimal Dim intCount As Decimal End Sub decPurchase = Convert.ToDecimal (txtCost. Txt) Inventory (decPurchase$, intCount) Private Sub Inventory
Fix the code: Private Sub btnSoftball_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSoftball.click End Sub Dim decHits As Decimal = 210 Dim decTimes At Bat As Decimal = 428 Dim decBatting Average As Decimal decBattingAverage = BattingAverage (decHits, decTimesAt Bat)
Fix the code: Private Sub btnMileage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMileage. Click Dim intMiles As Decimal = 323.2D Dim decGallons As Decimal = 13.8D Dim decMiles Per As Decimal decMilesPer = Compute (decMiles, decGallons). lblDisplays. Text = "Your MPG
Label the following parts of the window shown in Figure 2-56: 1. A L Finis Ty 2. 5.. FIGURE 2-56 +
Why would you sign in with a Microsoft account when opening Visual Studio?
What does RAD stand for?
What is the difference between red and blue snap lines?
What is the prefix of the Button object?
A Button, Label, Form, and a PictureBox are all . \( \qquad \)
How do you select three PictureBox objects on the Windows Form object at the same time for alignment purposes?
What is the purpose of a mock-up?
What are the first two phases of the program development life cycle?
Write the Form object name "CastleTickets" with the correct prefix.
Write the Label object name "Knights" with the correct prefix.
Write the Button object name "Moat" with the correct prefix.
Which property of the Label object do you use to change the displayed writing on the Form object?
Which property do you use to change the size of the text on a Button object?
How do you save the project you have created for the user interface mock-up?
When the Latte Selection program was executed, was the Enabled property of the Mocha button set to True or False?
Which property controls the background color of the Button object?
Which property controls the text color of a Label object?
Which color palette is guaranteed to be displayed properly on every computer?
When a PictureBox object is placed on the form, what is the default SizeMode property setting?
When you place a PictureBox object on a Windows form, in which project folder is the image stored in the Solution Explorer?
Which option should be selected in the SizeMode property to align the center of the image with the center of the PictureBox object?
Which option should be selected in the SizeMode property to make the image fit within the PictureBox object?
Which property has been set to False if a PictureBox object is hidden in a window when the program begins?
Which property has been set to False if a Button object is dimmed when you run the application?
What two options can you select for the Visible property in the Properties window?
Write a line of code that would set the Visible property to False for a PictureBox object named picCaptainAmerica.
Write a line of code that would set the Enabled property to True for a Button object named btnSuperman.
Write a line of code that would set the Visible property to True for a PictureBox object named picWonderWoman.
Write a comment line of code that states, "This code displays the superhero images."
What color is used to display comments in the code window of Visual Basic 2017?
Write a line of code that will close an application window and exit the application.
What does a red squiggly line mean in the code window?
Which symbol is associated with the assignment statement?
Why is it best to use IntelliSense when you enter code in the code window? List two reasons.
Fix the following line of code to set the Enabled property to True for the btnCharacter Button object. btnCharacter.Enable.True
Fix the following line of code to change the visibility of the btnExitProgram Button object so that you can view it when the program runs.btnExitProgram.Visibilty = Yes
Fix the following line of code to set the Visible property to False for the lblGotham Label object.lblGotham.Visible = ' False
Fix the following comment line of code.The 'following line of code makes the Batman logo visible
Fix the following line of code.Close
Examine the code below. Then, write a line of code to replace the erroneous line.\[\begin{aligned} & \text { btnMarvelProgram.Enabled = True } \\ & \text { picSpiderman.Visibilty = Enable } \\ & \text { picThor.Visible = False } \end{aligned}\]
For the Yellowstone National Park application shown in Figure 3-71, write the Visual Basic 2017 coding statement to view the picture when the user clicks the btn ParkImage button, assuming the Visible property had been set to False for the picParkBison PictureBox object in the Properties window.
Which property in the Properties window controls whether the picParkBison image is displayed when the program begins? Which option for the property would you select to make the button dimmed when the program begins?
When you import the picture into the Resources folder and select the image to use in the picParkBison PictureBox object, which SizeMode property option would you select to view the complete picture?
Write the Visual Basic coding statement for the btnParkImage click event that would cause the image to be displayed.
To change the window background color to LightSkyBlue as shown in Figure 3-71, what property should you modify?
What property is used to display the text "View the World" in the window title bar?
Which data type should an ampersand (\&) symbol be assigned?
Write a Dim statement for each of the following variables using the variable type and variable name that would be best for each value.a. The population of Alaskab. The smallest data type you can use for the age of a childc. A constant for the first initial of your first named. The minimum wagee.
Determine whether each of the following variable names is valid or invalid. Explain the error in each invalid variable name.a. \#samtechnowb. first_Input_Valuec. Orange-is-new-blackd. \(3 \mathrm{CPO}\)e. Closef. Name Of Cortana g. _cdecPi
List the steps that specify how you would perfectly align a group of TextBox objects along their left edges.
Which data type is best for currency amounts?
Explain the hierarchy for the order of operations.
What is the solution to each of the following arithmetic expressions?a. \(6+7 * 2-1\)b. \(48 / 6^{*} 2^{\wedge} 2\)c. \(40-6 \wedge 2 / 3\)d. 74 Mod 9e. \(9 \backslash 4^{*} 3\)f. \(2 \wedge 3^{*}(8-5)\)g. \((15 \operatorname{Mod} 2)+5^{*} 3\)
What is the difference between a method and a procedure?
What is the difference between a variable and a literal?
Correct the following statements:a. DimitHeight As Integrb. Dim dblDiscountAmount A Dblc. Constant_cstrCollege As Sentence = "PVCC"d. Dim strSenatorName As Numbere. strLastName = 'Prof. J Starks'f. 1.5 * decPay = decOverTimePayRate
Write a statement that sets the focus on the txtSeafood TextBox object.
Write a statement that removes the contents of the txtPrince TextBox object.
Write a statement that blanks the Text property of the lb|EligibilityAge Label object.
Write a statement to convert the value in the String variable strNeckSize to an integer value and place the integer value in a variable named intNeckSize.
Write a statement to convert the value in the String variable strHourlyPay to a Decimal value and place the Decimal value in a variable named decGross.
Write a statement to close a form that currently is open.
Write a statement that declares a constant named _cdecInsuranceDeductible as a Decimal data type and set its value to 500.00 .
Which Windows Form property allows the user to press the Esc key while the form is active and activate a button's event handler?
What is a local variable? How does its scope differ from that of a global variable?
When the following statements are executed, what would be displayed in the lblHourlyWage Label object decHourlyWage \(=13.837\)lblHourlyWage.Text = decHourlyWage.ToString("C")
Fix the following code:Option Strict Dim intDistance As Integer intDistance \(=17.5\)
Fix the following code:Dim dblRegularPay As Double Dim dblovertimePay As Double```intRegularPay = 783.87 intOvertimePay = 105.92 lbl.TotalPay = (dblRegularPay + dblOvertimePay).ToString ('C')```
Analyze the code and then correct it.Dim strCity as String = "Miami"Dim strState as Double = "Florida"Dim strLocation as String strLoc = strCity + strState
What will occur when the user clicks the btnSlope Button in the following code?```Private Sub btnSlope_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSlope.Click Dim decRise As Decimal Dim decRun As Decimal Dim decSlope As Decimal decRise = 12.3D decRun = 2.1D decSlope
How would the number . 0456 be displayed if the format specifier ("P") is used in a Convert. ToString statement?
How would the number 3746.35555 be displayed if the format specifier ("F3") is used in a Convert.ToString statement?
If you want the user to enter her phone number with the area code, which.NET component would be best to use on the Windows Form object?
Using the format specifier with the ToString procedure, write the statement that would display:a. The value in the decDvdCost variable with a dollar sign and two places to the right of the decimal point in a label named lblDvdb. The value in the decWithholdingTaxRate variable with a percent sign
Write a single line of code to declare a variable decWindSpeed as a Decimal data type and assign it the value 25.47. Use a forced literal to ensure that the compiler views this number as a Decimal data type.
What would the values of these variables be at the end of the code that follows?a. intPartsb. intBoxesc. intLeftovers Dim intParts As Integer Dim intBoxes As Integer Dim intLeftovers As Integer intParts \(=78\)intPartsPerBox \(=8\)intBoxes = intParts \(\backslash\) intPartsPerBox intLeftovers =
Are the following statements written correctly? If not, how should they be written?Dim dblPay as Double lblPay.Text = dblPay.ToString("C2")
For a Button object named btnCalories, write the click event handler to implement the following requirements and calculate the number of calories burned during a run:a. Declare variables named strMilesRan, decCaloriesConsumed, and decMilesRan.b. Declare a constant named _cdecCaloriesBurnedPerHour
What would the output be when the user clicks the btnDrivingAge Button?Private Sub btnDrivingAge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDrivingAge.Click Dim intPresentAge As Integer Const cintDrivingAge As Integer \(=16\)Dim intYearsToDrive As Integer
If a form opens and the first of three RadioButtons is checked within a GroupBox object, what happens to the first RadioButton object when you click the second RadioButton object?
Showing 300 - 400
of 831
1
2
3
4
5
6
7
8
9
Step by Step Answers