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 with microsoft visual basic 2015
Bundle Programming With Microsoft Visual Basic 2015 7th + Mindtap Programming 1 Term Printed Access Card 7th Edition Diane Zak - Solutions
4. Which event procedure contains the code to process when a different radio button is selected in a radio button list control?a. CheckedChangedb. SelectedIndexChangedc. SelectedIndexd. SelectionChanged
3. Which of the following determines whether the first radio button in the rblAges control is selected?a. If rblAges.Selected = 0 Thenb. If rblAges(0).Selected Thenc. If rblAges.SelectedIndex = 0 Thend. none of the above
2. Which of the following If clauses determines whether the chkTaxable control is selected?a. If chkTaxable = True Thenb. If chkTaxable.Checked Thenc. If chkTaxable.Selected Thend. If chkTaxable.Selection = True Then
1. Which of the following tools is used to group related radio buttons on a Web page?a. ButtonRadioListb. ListRadioButtonc. RadioButtonListd. RadioButtons
7. Create an empty Web Site application named ZipCode and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Zip Code Verifier. Use Figure 12-47 as a guide when designing the Web page. Use a
6. In this exercise, you create a Web application that displays how much a person would weigh on the following planets, given his or her weight on Earth: Venus, Mars, and Jupiter. Create an empty Web Site application named Weight and save it in the VB2015\Chap12 folder. Add a new Web page named
5. Cranston Berries sells three types of berries: strawberries, blueberries, and raspberries.Sales have been booming this year and are expected to increase next year. The sales manager wants you to create an application that allows her to enter the projected increase (expressed as a decimal number)
4. The annual property tax in Richardson County is $1.50 for each $100 of a property’s assessed value. The county clerk wants you to create a Web application that displays the property tax after he enters the property’s assessed value. Create an empty Web Site application named Tax and save it
3. Create an empty Web Site application named Bakery and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Meyer’s. Use Figure 12-46 as a guide when designing the Web page. The image is contained in the
2. Create an empty Web Site application named Tips and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Tip Calculator. Use Figure 12-45 as a guide when designing the Web page. In the Code Editor window,
1. Create an empty Web Site application named Circle and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Circle Area.a. Use Figure 12-44 as a guide when designing the Web page. The circle image is
4. You can use a ___________________ control to verify that an entry on a Web page is within minimum and maximum values.a. MinMaxValidationb. MaxMinValidationc. EntryValidatord. RangeValidator
3. You can use a ___________________ control to verify that a control on a Web page contains data.a. RequiredFieldValidatorb. RequiredFieldc. RequiredValidatord. none of the above
2. The Visual Basic code in a Web page is processed by the ___________________.a. client computerb. Web server
1. In code, you refer to a control on a Web page using the control’s ___________________ property.a. Captionb. IDc. Named. Text
3. Create an empty Web Site application named Market and save it in the VB2015\Chap12 folder. Add three new Web pages named Default.aspx, Apples.aspx, and Oranges.aspx to the application. Change each DOCUMENT object’s Title property to Corner Market.Create Web pages similar to the ones shown in
2. Create an empty Web Site application named Carnival and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Brookfield. Create a Web page similar to the one shown in Figure 12-25. The image on the Web
1. Create an empty Web Site application named Spa and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Spa Monique. Create a Web page similar to the one shown in Figure 12-24. The Spa Monique image is
7. A _____________________ occurs when a user clicks a Submit button on a Web page.a. clientpostb. postbackc. sendbackd. serverpost
6. The text that appears on the application’s tab in the browser window is determined by the _____________________ property.a. Application object’s Nameb. Application object’s Titlec. DOCUMENT object’s Tab Named. DOCUMENT object’s Title
5. The HTML instructions in a Web page are processed by the _____________________.a. client computerb. Web server
4. The first Web page in an empty Web application is automatically assigned the name _____________________.a. Default.apsb. Default1.vbc. Default.aspxd. WebFormDefault.aspx
3. An online form used to purchase a product is an example of a _____________________ Web page.a. dynamicb. static
2. A _____________________ is a program that uses HTML to render a Web page on the computer screen.a. browserb. clientc. serverd. none of the above
1. A computer that requests an ASP page from a Web server is called a _____________________ computer.a. browserb. clientc. requestingd. none of the above
3. Open the VB2015\Chap11\Debug Solution\Debug Solution (Debug Solution.sln)file. Open the Code Editor windows for the form and the class file. Review the existing code. Correct the code to remove the jagged lines in the Shape and Circle class definitions. Save the solution, and then start and test
2. Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015\Chap11\Kerry Sales Solution folder.a. Open the Payroll.vb file. Create a base class named Bonus. The class should contain two Public properties: a String property named SalesId and a Double property named
1. Open the VB2015\Chap11\Formula Solution\Formula Solution (Formula Solution.sln)file. Open the Areas.vb file, which contains the Parallelogram class definition. The class contains two Public properties and two constructors. It also contains a GetArea method that calculates the area of a
4. The Salaried class is derived from a base class named Employee. Which of the following statements can be used by the Salaried class to invoke the Employee class’s default constructor?a. MyBase.New()b. MyEmployee.New()c. Call Employee.Newd. none of the above
3. A base class contains a method named GetTax. Which of the following procedure headers can be used in the derived class to indicate that it is providing its own code for the method?a. Public Inherits Sub GetTax()b. Public Overridable Sub GetTax()c. Public Overrides Sub GetTax()d. Public
2. A base class contains a method named GetTax. Which of the following procedure headers can be used in the base class to indicate that a derived class can provide its own code for the method?a. Public Inherits Sub GetTax()b. Public Overridable Sub GetTax()c. Public Overrides Sub GetTax()d. Public
1. Which of the following clauses allows a derived class named Cat to have the same attributes and behaviors as its base class, which is named Animal?a. Inherited Animalb. Inherits Animalc. Inherited Catd. Inherits Cat
12. Create an application, using the following names for the solution and project, respectively: Serenity Solution and Serenity Project. Save the application in the VB2015\Chap11 folder. Create the interface shown in Figure 11-49. The image for the picture box is stored in the
11. Create an application, using the following names for the solution and project, respectively: Glasgow Solution and Glasgow Project. Save the application in the VB2015\Chap11 folder. Create the interface shown in Figure 11-48. Each member of Glasgow Health Club must pay monthly dues that consist
10. In this exercise, you modify the Grade Calculator application from this lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution (Grade Solution.sln) file contained in the Grade Solution-Intermediate folder.a. Open the
9. Open the VB2015\Chap11\Salary Solution\Salary Solution (Salary Solution.sln) file.Open the Worker.vb class file, and then enter the Worker class definition from Exercises 5 and 6. Save the solution and then close the Worker.vb window. Open the form’s Code Editor window. Use the comments in the
8. Open the Hire Date Solution (Hire Date Solution.sln) file contained in the VB2015\Chap11\Hire Date Solution folder. First, add a default constructor and a parameterized constructor to the FormattedDate class. Also, add a method that returns the month and day numbers separated by a slash (/).
7. In this exercise, you modify the Norbert Pool & Spa Depot application from Lesson A.Use Windows to make a copy of the Norbert Solution folder. Rename the copy Norbert Solution-Auto. Open the Norbert Solution (Norbert Solution.sln) file contained in the Norbert Solution-Auto folder. Modify the
6. Add a method named GetNewSalary to the Worker class from Exercise 5. The method should calculate a Worker object’s new salary, which is based on a raise percentage provided by the application using the object. Before calculating the new salary, the method should verify that the raise
5. Rewrite the code from Exercise 4 using auto-implemented properties.Data from in Exercise 4. Write the class definition for a class named Worker. The class should include Private variables and Property procedures for a Worker object’s name and salary. The salary may contain a decimal place. The
4. Write the class definition for a class named Worker. The class should include Private variables and Property procedures for a Worker object’s name and salary. The salary may contain a decimal place. The class also should contain two constructors: the default constructor and a parameterized
3. Write the code for an auto-implemented property named Commission. The property’s data type is Decimal.
2. Write the Property procedure for a ReadOnly property named Sales, which is associated with the _dblSales variable.
1. What are overloaded methods and why are they used?
5. The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private _dblTax variable. A button’s Click event procedure instantiates a Purchase object and assigns it to the currentSale variable. Which of the following is valid in the Click event procedure?a.
4. A WriteOnly property can be an auto-implemented property.a. Trueb. False
3. A class contains an auto-implemented property named Title. Which of the following is the correct way for the default constructor to assign the string “Unknown” to the variable associated with the property?a. _Title = "Unknown"b. _Title.strTitle = "Unknown"c. Title = "Unknown"d. none of the
2. The method name combined with the method’s optional parameterList is called the method’s ___________________.a. autographb. inscriptionc. signatured. statement
1. Two or more methods that have the same name but different parameterLists are referred to as ___________________ methods.a. loadedb. overloadedc. paralleld. signature
16. Create an application, using the following names for the solution and project, respectively: Parking Solution and Parking Project. Save the application in the VB2015\Chap11 folder. The application should display the total cost of paving the parking lot shown in Figure 11-31. Create a suitable
15. Create an application, using the following names for the solution and project, respectively: Fire Solution and Fire Project. Save the application in the VB2015\Chap11 folder. The application should display the capacity (volume) of a water tank on a fire engine in both cubic feet and gallons,
14. Create an application, using the following names for the solution and project, respectively: Playground Solution and Playground Project. Save the application in the VB2015\Chap11 folder. The application should display the area of a triangular playground in square feet. It should also display
13. In this exercise, you create an application that can be used to calculate the cost of installing a fence around a rectangular area. Create the application, using the following names for the solution and project, respectively: Fence Solution and Fence Project. Save the application in the
12. In this exercise, you create an application that can be used to estimate the cost of laying sod on a rectangular piece of property. Create the application, using the following names for the solution and project, respectively: Harston Solution and Harston Project. Save the application in the
11. In this exercise, you modify the Norbert Pool & Spa Depot application from Exercise 9.Use Windows to make a copy of the Norbert Solution-Introductory folder. Rename the copy Norbert Solution-Intermediate. Open the Norbert Solution (Norbert Solution.sln)file contained in the Norbert
10. Open the VB2015\Chap11\Palace Solution\Palace Solution (Palace Solution.sln) file.Create a Rectangle class similar to the one shown earlier in Figure 11-23; however, use Double variables rather than Integer variables. The application should calculate and display the number of square yards of
9. In this exercise, you modify the Norbert Pool & Spa Depot application from this lesson.Use Windows to make a copy of the Norbert Solution folder. Rename the copy Norbert Solution-Introductory. Open the Norbert Solution (Norbert Solution.sln) file contained in the Norbert Solution-Introductory
8. In this exercise, you modify the Pete’s Pizzeria application from this lesson. Use Windows to make a copy of the Pizzeria Solution folder. Rename the copy Pizzeria Solution-Parameterized. Open the Pizzeria Solution (Pizzeria Solution.sln) file contained in the Pizzeria Solution-Parameterized
7. An application contains the statement Dim myCar As Car. Using the Car class from Figure 11-28, write an assignment statement that instantiates a Car object and initializes it using the strType and dblPrice variables. The statement should assign the object to the myCar variable.
6. Using the Car class from Figure 11-28, write a Dim statement that uses the parameterized constructor to instantiate a Car object. Pass the string “Fusion” and the number 22560.99 to the parameterized constructor. The Dim statement should assign the object to a variable named rentalCar.
5. The Car class definition is shown in Figure 11-28. Write a Dim statement that uses the default constructor to instantiate a Car object in an application. The Dim statement should assign the object to a variable named nissan. Next, write assignment statements that the application can use to
4. Write a Class statement that defines a class named SongInfo. The class contains three Private String variables named _strName, _strArtist, and _strSongLength.Name the corresponding properties SongName, Artist, and SongLength. Then, use the syntax shown in Version 2 in Figure 11-5 to create a
3. Rewrite the Class statement from Exercise 2 so that it uses Private variables rather than Public variables. Be sure to include the Property procedures and default constructor.
2. Write a Class statement that defines a class named Book. The class contains three Public variables: Title, Author, and Price. The Title and Author variables are String variables. The Price variable is a Decimal variable. Then use the syntax shown in Version 1 in Figure 11-5 to declare a variable
1. Explain how the computer determines the appropriate constructor to use when instantiating an object using a class that contains more than one constructor.
13. A class contains a Private variable named _strState. The variable is associated with a Public property named State. Which of the following is the best way for a parameterized constructor to assign the value stored in its strName parameter to the variable?a. _strState = strNameb. State =
12. The Return statement is entered in the ___________________ statement in a Property procedure.a. Getb. Set
11. If you need to validate a value before assigning it to a Private variable, you enter the validation code in the ___________________ block in a Property procedure.a. Assignb. Getc. Setd. Validate
10. Which of the following instantiates an Inventory object and assigns it to the chair variable?a. Dim chair As Inventoryb. Dim chair As New Inventoryc. Dim chair = New Inventoryd. Dim New chair As Inventory
9. Which of the following is the name of the Inventory class’s default constructor?a. Inventoryb. InventoryConstructorc. Defaultd. New
8. To hide a variable or method contained in a class, you declare the variable or method using the ___________________ keyword.a. Hideb. Invisiblec. Privated. ReadOnly
7. An application can access the Private variables in a class ___________________.a. directlyb. using properties created by Public Property proceduresc. through Private procedures contained in the classd. none of the above
6. A Private variable in a class can be accessed directly by a Public method in the same class.a. Trueb. False
5. Which of the following statements is false?a. A class can contain only one constructor.b. An example of a behavior is the SetTime method in a Time class.c. An object created from a class is referred to as an instance of the class.d. An instance of a class is considered an object.
4. The Item class contains a Public method named GetDiscount. The method is a Function procedure. An application instantiates an Item object and assigns it to a variable named cellPhone. Which of the following can be used by the application to invoke the GetDiscount method?a. dblDiscount = Call
3. The Inventory class contains a Private variable named _strId. The variable is associated with the Public ItemId property. An application instantiates an Inventory object and assigns it to a variable named onHand. Which of the following can be used by the application to assign the string
2. A constructor is ___________________.a. a Function procedureb. a Property procedurec. a Sub procedured. either a Function procedure or a Sub procedure
1. The name of a class file ends with ___________________.a. .clab. .clsc. .vbd. none of the above
9. Preston Enterprises stores employee IDs and salaries in a sequential access file named Employees.txt. Open the VB2015\Chap10\Preston Solution\Preston Solution (Preston Solution.sln) file. Open the Employees.txt file, which is contained in the project’s bin\Debug folder. Each line contains an
8. Create an application, using the following names for the solution and project, respectively: Commercial Solution and Commercial Project. Save the application in the VB2015\Chap10 folder. Each year, KJPR-Radio polls its audience to determine the best Super Bowl commercial. Create the interface
7. Zander Inc. stores employee IDs and salaries in a sequential access file named Employees.txt. Open the VB2015\Chap10\Zander Solution\Zander Solution (Zander Solution.sln) file. Open the Employees.txt file, which is contained in the project’s bin\Debug folder. The ID and salary information
6. In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Structure. Open the Ebook Solution (Ebook Solution.sln) file contained in the Ebook Solution-Structure folder. Create a
5. In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Undo. Open the Ebook Solution (Ebook Solution.sln) file contained in the Ebook Solution-Undo folder. Add an Undo Remove button
4. In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-No Duplicate. Open the Ebook Solution (Ebook Solution.sln) file contained in the Ebook Solution-No Duplicate folder. Before
3. Open the VB2015\Chap10\Movies Solution\Movies Solution (Movies Solution.sln)file. The btnAdd_Click procedure should add the movie title entered in the text portion of the combo box to the list portion, but only if the title is not already in the list. The btnRemove_Click procedure should remove
2. In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Verify Remove. Open the Ebook Solution (Ebook Solution.sln) file contained in the Ebook Solution-Verify Remove folder. The
1. In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Verify Save. Open the Ebook Solution (Ebook Solution.sln) file contained in the Ebook Solution-Verify Save folder. The
5. The lstFriends control contains five items. Which of the following writes the last item to the file associated with the outFile variable?a. outFile.WriteLine(lstFriends.Items(5))b. outFile.WriteLine(lstFriends.Items(4))c. outFile.WriteLine(lstFriends.Index(4))d. none of the above
4. Which of the following determines whether an item is selected in the lstFriends control?a. If lstFriends.SelectedIndex >= 0 Thenb. If lstFriends.SelectedItem –1 Thenc. If lstFriends.IndexSelected = –1 Thend. none of the above
3. Which of the following removes the fourth item from the lstFriends control?a. lstFriends.Items.Remove(4)b. lstFriends.Items.RemoveAt(4)c. lstFriends.Items.RemoveIndex(3)d. none of the above
2. Which of the following right-aligns the contents of the strNumbers variable?a. strNumbers = strNumbers.PadLeft(10)b. strNumbers = strNumbers.PadRight(10)c. strNumbers = strNumbers.AlignLeft(10)d. strNumbers = strNumbers.RightAlign(10)
1. Which of the following opens a sequential access file named MyFriends.txt for input?a. inFile = IO.File.Input("MyFriends.txt")b. inFile = IO.InputFile("MyFriends.txt")c. inFile = IO.File.InputText("MyFriends.txt")d. inFile = IO.File.OpenText("MyFriends.txt")
13. Open the VB2015\Chap10\Debug Solution\Debug Solution (Debug Solution.sln) file.Open the Code Editor window and study the existing code. Start the application. Test the application by entering Sue and 1000, and then by entering Pete and 5000. A run time error occurs. Read the error message.
12. In this exercise, you modify the application from Exercise 11. Use Windows to make a copy of the PAO Solution folder. Rename the folder Modified PAO Solution. Open the PAO Solution (PAO Solution.sln) file contained in the Modified PAO Solution folder.Modify the code to use a structure in the
11. Create an application, using the following names for the solution and project, respectively: PAO Solution and PAO Project. Save the application in the VB2015\Chap10 folder. Create the interface shown in Figure 10-34. The Party list box should contain three items: Democratic, Republican, and
10. Open the VB2015\Chap10\Sales Solution\Sales Solution (Sales Solution.sln) file. The frmMain_Load procedure should read the five sales amounts contained in the sales.txt file, storing the amounts in a one-dimensional array and also displaying the amounts in the lstOriginal control. The sales.txt
9. Open the Test Scores Solution (Test Scores Solution.sln) file contained in the VB2015\Chap10\Test Scores Solution folder. The btnSave_Click procedure should allow the user to enter an unknown number of test scores, saving each score in a sequential access file. The btnDisplay_Click procedure
8. Open the VB2015\Chap10\Pay Solution\Pay Solution (Pay Solution.sln) file. Open the Code Editor window. The application stores six hourly pay rates in a one-dimensional array named dblRates. Each rate corresponds to a pay code from 1 through 6. Code 1’s rate is stored in the dblRates(0) element
7. Open the VB2015\Chap10\States Solution\States Solution (States Solution.sln) file.Open the Code Editor window, and then open the states.txt file contained in the project’s bin\Debug folder. The sequential access file contains the names of five U.S.states. Close the states.txt window. The
6. Open the VB2015\Chap10\Bonus Solution\Bonus Solution (Bonus Solution.sln) file.The Save button should write the bonus amounts entered by the user to a sequential access file named bonus.txt. Save the file in the project’s bin\Debug folder. The Display button should read the bonus amounts from
Showing 100 - 200
of 1847
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Last
Step by Step Answers