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 with microsoft visual basic 2015
Questions and Answers of
Programming with Microsoft Visual Basic 2015
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
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
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
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
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
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
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
The Return statement is entered in the ___________________ statement in a Property procedure.a. Getb. Set
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
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
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
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
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
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
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
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.
Which of the following is the name of the Inventory class’s default constructor?a. Inventoryb. InventoryConstructorc. Defaultd. New
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
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
To hide a variable or method contained in a class, you declare the variable or method using the ___________________ keyword.a. Hideb. Invisiblec. Privated. ReadOnly
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
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
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
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
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
A Private variable in a class can be accessed directly by a Public method in the same class.a. Trueb. False
Rewrite the code from Exercise 4 using auto-implemented properties.Data From Exercise 4:Write the class definition for a class named Worker. The class should include Private variables and Property
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
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
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
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
A WriteOnly property can be an auto-implemented property.a. Trueb. False
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
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
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.
Write the code for an auto-implemented property named Commission. The property’s data type is Decimal.
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
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.Data From Exercise
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
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
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
Write the Property procedure for a ReadOnly property named Sales, which is associated with the _dblSales variable.
The method name combined with the method’s optional parameterList is called the method’s ___________________.a. Autographb. Inscriptionc. Signatured. Statement
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
A constructor is ___________________.a. A Function procedureb. A Property procedurec. A Sub procedured. Either a Function procedure or a Sub procedure
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
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
What are overloaded methods and why are they used?
Two or more methods that have the same name but different parameterLists are referred to as ___________________ methods.a. Loadedb. Overloadedc. Paralleld. Signature
Explain how the computer determines the appropriate constructor to use when instantiating an object using a class that contains more than one constructor.
The name of a class file ends with ___________________.a. .clab. .clsc. .vbd. None of the above
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
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
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
In this exercise, you modify the application from Exercise 12. Use Windows to make a copy of the Average Solution folder. Rename the folder Modified Average Solution. Open the Average Solution
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)
Open the VB2015\Chap10\Average Solution\Average Solution (Average Solution.sln) file. The application should display a student’s name and the average of five test scores entered by the user.a.
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
In this exercise, you modify the Die Tracker application from Chapter 9. Copy the Die Solution folder from the VB2015\Chap09 folder to the VB2015\Chap10 folder, and then open the Die Solution (Die
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
Create an application, using the following names for the solution and project, respectively: Car Solution and Car Project. Save the application in the VB2015\Chap10 folder. Create the interface shown
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
In this exercise, you code an application that displays a grade based on the number of points entered by the user. The grading scale is shown in Figure 10-16. Open the VB2015\Chap10\Chang
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
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
In this exercise, you modify the Paper Warehouse application completed in this lesson. Use Windows to make a copy of the Paper Solution-Structure folder. Rename the folder Modified Paper
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,
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
What type of object is created by the AppendText method?a. Fileb. SequenceReaderc. StreamWriterd. None of the above
Open the VB2015\Chap10\City Solution\City Solution (City Solution.sln) file. Open the Code Editor window and review the existing code. Locate the btnDisplay_Click procedure. The procedure should
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
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
What type of object is created by the OpenText method?a. Fileb. SequenceReaderc. StreamWriterd. None of the above
Write the code to declare a variable named outFile that can be used to write data to a sequential access file. Then write the statement to open a sequential access file named inventory.txt for output.
Open the VB2015\Chap09\City Solution\City Solution (City Solution.sln) file. Open the Code Editor window. The form’s Declarations section declares and initializes two parallel one-dimensional
Which of the following statements changes the contents of the strWord variable from “sting” to “string”?a. strWord = strWord.AddTo(2, "r")b. strWord = strWord.Insert(2, "r")c. strWord =
An application contains the Structure statement shown here. Write a Dim statement that declares a five-element one-dimensional array of MyFriend variables. Name the array home. Then write an
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
Write a Do clause that determines whether the end of a sequential access file has been reached. The file is associated with a StreamReader variable named inFile.
Which of the following can be used to determine whether the employ.txt file exists?a. If IO.File.Exists("employ.txt") Thenb. If IO.File("employ.txt").Exists Thenc. If IO.Exists("employ.txt") = True
An application contains the Structure statement shown here. Write a Private statement that declares a 10-element one-dimensional array of Computer variables. Name the array business. Then write an
Where is the Structure statement typically entered?a. The form’s Declarations sectionb. The Definition section in the Code Editor windowc. The form’s Load event procedured. The User-defined
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
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.
Write an If clause that determines whether the inventory.txt sequential access file exists.
What does the Peek method return when the end of the file is reached?a. –1b. 0c. The last character in the filed. The newline character
An application contains the Structure statement shown here. Write a Dim statement that declares a MyFriend variable named school. Then write assignment statements that assign the value in the
An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?a. Dim workers(4) As Employeeb. Dim workers(5) As
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
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
Write the code to close the sequential access file associated with a StreamWriter variable named outFile.
Which of the following reads a line of text from a sequential access file and assigns the line (excluding the newline character) to the strText variable?a. inFile.Read(strText)b.
An application contains the Structure statement shown here. Write a Dim statement that declares a Computer variable named homeUse. Then write an assignment statement that assigns the string
An array is declared using the statement Dim cities(10) As CityInfo. Which of the following statements assigns the number 4500 to the intPopulation member variable contained in the last array
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
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
Write the code to declare a variable named inFile that can be used to read data from a sequential access file. Then write the statement to open a sequential access file named inventory.txt for input.
If the file to be opened exists, the ___________________ method erases the file’s contents.a. AppendTextb. CreateTextc. InsertTextd. OpenText
Write a Structure statement that defines a structure named SongInfo. The structure contains three member variables named strName, strArtist, and strSongLength. Then write a Private statement that
The course structure variable contains a member variable named strGrade. Which of the following statements assigns the string “B” to the member variable?a. course.strGrade(0) = "B"b.
Showing 100 - 200
of 662
1
2
3
4
5
6
7