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
Programming With Microsoft Visual Basic 2012 6th Edition Diane Zak - Solutions
11. In this exercise, you learn about a text box’s Clear method, which can be used to remove the contents of the text box during run time. Use Windows to make a copy of the Bakery Solution folder from the chapter. Rename the copy Discovery Bakery Solution. Open the Bakery Solution (Bakery
10. The payroll clerk at Photo Workshop has asked you to create an application that displays an employee’s net pay. The application should allow the payroll clerk to enter the employee’s name, hours worked, and rate of pay. For this application, you do not have to worry about overtime because
9. A group of people needs to be transported to a concert. If an SUV can accommodate seven people, how many SUVs will be completely full and how many people will still need transportation? Create an application that displays the answers. The user will enter the number of people in the group. You
8. Create an application that displays the average of three test scores entered by the user.Use the following names for the solution and project, respectively: Average Solution and Average Project. Save the application in the VB2015\Chap02 folder. Change the form file’s name to Main Form.vb.
7. In this exercise, you modify the bakery application from the chapter. Use Windows to make a copy of the Bakery Solution folder contained in the VB2015\Chap02 folder.Rename the copy Modified Bakery Solution. Open the Bakery Solution (Bakery Solution.sln) file contained in the Modified Bakery
6. Your science teacher has asked you to create an application that displays how much a person would weigh on the following planets: Venus, Mars, and Jupiter. The application’s interface should allow the user to enter the person’s weight on Earth.a. Perform the steps involved in creating an OO
5. Jefferson Sales wants you to create an application that displays a salesperson’s monthly commission, given his or her monthly sales and commission rate (entered in decimal form). The commission is calculated by multiplying the monthly sales by the commission rate.a. Perform the steps involved
4. In this exercise, you complete the application from Lesson B’s Exercise 4. Open the VB2015\Chap02\Age Solution\Age Solution (Age Solution.sln) file. The Calculate button should calculate your age by subtracting your birth year from the current year.Code the Calculate button using the Val
3. In this exercise, you complete the Cranston Berries application from Exercise 3 in both Lesson A and Lesson B. Open the VB2015\Chap02\Cranston Solution\Cranston Solution(Cranston Solution.sln) file.a. The Calculate button should display the projected sales for each type of berry. Code the
2. In this exercise, you complete the Jordan Sports Store application from Exercise 2 in both Lesson A and Lesson B. Open the VB2015\Chap02\Jordan Solution\Jordan Solution (Jordan Solution.sln) file.a. The Calculate button should display two amounts: the weekly gross pay and the biweekly gross pay.
1. In this exercise, you complete the Richardson County application from Exercise 1 in both Lesson A and Lesson B. Open the VB2015\Chap02\Richardson Solution\Richardson Solution (Richardson Solution.sln) file.a. The Calculate button should display the annual property tax, which is $1.50 for
5. What value is assigned to the lblNum control when the lblNum.Text = 99 Mod 25 instruction is processed by the computer?
4. What value is assigned to the lblNum control when the lblNum.Text = 99 \ 25 instruction is processed by the computer?
3. Which symbol is used in a flowchart to represent an output task?a. circleb. ovalc. parallelogramd. rectangle
2. Which function temporarily converts a string to a number and then returns the number?a. Formatb. FormatNumberc. StringToNumberd. Val
1. Which of the following assignment statements will not calculate correctly?a. lblTotal.Text = Val(txtSales1.Text) + Val(txtSales2.Text)b. lblTotal.Text = 4 – Val(txtSales1.Text)c. lblTotal.Text = Val(txtQuantity.Text + 3)d. All of the above assignment statements will calculate correctly.
9. Open the VB2015\Chap01\Debug Solution\Debug Solution (Debug Solution.sln) file.If necessary, open the designer window. Start the application. The application is not working correctly because the splash screen does not disappear after four seconds have elapsed. Click Debug on the menu bar and
8. In this exercise, you learn how to display a tooltip. Open the VB2015\Chap01\ToolTip Solution\ToolTip Solution (ToolTip Solution.sln) file. If necessary, open the designer window. Click the ToolTip tool in the toolbox and then drag the tool to the form.Notice that a tooltip control appears in
7. In this exercise, you will learn how to display a splash screen followed by another form.a. Open the Two Form Solution (Two Form Solution.sln) file contained in the VB2015\Chap01\Two Form Solution folder. If necessary, open the Solution Explorer and designer windows. Notice that the project
6. In this exercise, you will create a splash screen that has a transparent background.a. Open the VB2015\Chap01\Transparency Solution\Transparency Solution(Transparency Solution.sln) file. If necessary, open the designer window.b. Click the form’s title bar to select the form. Set the form’s
5. The Internet contains a vast amount of code snippets that you can use in your Visual Basic applications. And in many cases, you can use the snippet without fully understanding each line of its code. In this exercise, you will use a code snippet that rounds the corners on a splash screen.a. Open
4. Create a Visual Basic Windows application. Name the solution, project, and form file My Splash Solution, My Splash Project, and Splash Form.vb, respectively. Save the application in the VB2015\Chap01 folder. Create your own splash screen. Save the solution and then start the application. Close
3. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Characters Solution and Characters Project. Save the application in the VB2015\Chap01 folder. Change the form file’s name to Main Form.vb. Create the interface shown in Figure 1-35.
2. In this exercise, you modify the Valley Park application created in Lesson B’s Exercise 2.a. Open the VB2015\Chap01\Valley Solution\Valley Solution (Valley Solution.sln) file.If necessary, open the designer window.b. Replace the Exit button with a timer control named tmrExit. The timer should
1. In this exercise, you modify the Warren Fire Department application created in Lesson B’s Exercise 1.a. Open the VB2015\Chap01\Warren Solution\Warren Solution (Warren Solution.sln)file. If necessary, open the designer window.b. Delete the Exit button from the form and then delete the
5. Explain how to delete a control that contains code.
4. You can remove the Minimize, Maximize, and Close buttons from a form’s title bar by setting the form’s _____________________ property to False.a. ControlBoxb. ControlButtonc. TitleBard. TitleBarElements
3. To disable the Minimize button on a form’s title bar, set the form’s _____________________ property to False.a. ButtonMinimizeb. Minimizec. MinimizeBoxd. MinimizeButton
2. Which of the following is false?a. When you add a timer control to a form, the control appears in the component tray.b. The user can see a timer control during run time.c. You stop a timer by setting its Enabled property to False.d. The number entered in a timer’s Interval property represents
1. If a timer is running, the code in its _____________________ event procedure is processed each time an interval has elapsed.a. Intervalb. Tickc. Timedd. Timer
4. In this exercise, you learn about the Format menu’s Align, Make Same Size, and Center in Form options.a. Open the VB2015\Chap01\Format Solution\Format Solution (Format Solution.sln)file. If necessary, open the designer window.b. Click the Button2 control, and then press and hold down the Ctrl
3. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Penguin Solution and Penguin Project. Save the application in the VB2015\Chap01 folder. Change the form file’s name to Main Form.vb. Change the form’s Font property to Segoe UI,
2. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Valley Solution and Valley Project. Save the application in the VB2015\Chap01 folder. Change the form file’s name to Main Form.vb. Change the form’s Font property to Segoe UI, 9pt.
1. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Warren Solution and Warren Project. Save the application in the VB2015\Chap01 folder.a. Change the form file’s name to Main Form.vb.b. Change the form’s name to frmMain. Change its
5. Define the term “syntax.”
4. Which instruction terminates an application that contains only one form?a. Me.Close()b. Me.Done()c. Me.Finish()d. Me.Stop()
3. Which of the following can be accomplished using the Format menu?a. aligning the borders of two or more controlsb. centering one or more controls horizontally on the formc. making two or more controls the same sized. all of the above
2. The text displayed on a button’s face is stored in which property?a. Captionb. Labelc. Named. Text
1. You use the _____________________ control to display text that the user is not allowed to edit while the application is running.a. Buttonb. DisplayBoxc. Labeld. PictureBox
10. When entered in a procedure, which of the following statements will result in a syntax error?a. Me.Clse()b. Integer.TryPars(txtHours.Text, intHours)c. Dim decRate as Decimeld. all of the above
9. The statement Constant dblRATE As Double is an example of a .a. correct statementb. logic errorc. syntax errord. run time error
8. If the intTotalScore and intTests variables contain the numbers 0 and 10, respectively, the statement dblAvg = intTotalScore / intTests will .a. assign 0 to the dblAvg variableb. result in a syntax errorc. result in a logic errord. result in a run time error
7. If the intTotalScore and intTests variables contain the numbers 200 and 0, respectively, the statement dblAvg = intTotalScore / intTests will .a. assign 0 to the dblAvg variableb. result in a syntax errorc. result in a logic errord. result in a run time error
6. You use to pause program execution at a specific line in the code.a. a breakpointb. the Error List windowc. the Step Into option on the DEBUG menud. the Stop Debugging option on the DEBUG menu
5. While stepping through the code in the Code Editor window, you can view the contents of controls and variables that appear in the highlighted statement only.a. Trueb. False
4. Which key is used to step through code?a. F5b. F6c. F7d. F8
3. Logic errors are listed in the Error List window.a. Trueb. False
2. While stepping through code, the debugger highlights the statement that .a. was just executedb. will be executed nextc. contains the errord. none of the above
1. The process of locating and fixing any errors in a program is called .a. bug-proofingb. bug-eliminatingc. debuggingd. error removal
4. You can use the SQL statement to remove a record from a database.a. DELETEb. DETACHc. ERASEd. REMOVE
3. You can use the SQL statement to add a record to a database.a. ADDb. ADD INTOc. APPENDd. INSERT
2. The FillByCity method is associated with a parameter query. Which of the following invokes the method, passing it the contents of the txtCity control’s Text property?a. TblCityTableAdapter.FillByCity(CityDataSet.tblCity, txtCity.Text)b. TblCityTableAdapter.FillByCity(txtCity.Text)c.
1. When used in a parameter query, which of the following WHERE clauses will allow you to select the records for employees working more than 40 hours?a. WHERE Hours >= 40b. WHERE Hours > ?c. WHERE Hours > #d. WHERE Hours < ?
The tblEmploy table contains seven fields. The Emp_Number, Rate, and Code fields are numeric. The Last_Name, First_Name, Hired, and Status fields contain text. The Status field contains either the letter F (for full-time) or the letter P (for part-time). The Code field identifies the employee’s
The tblMagazine table contains three fields. The Cost field is numeric. The Code and MagName fields contain text.a. Write a SQL SELECT statement that arranges the records in descending order by the Cost field.b. Write a SQL SELECT statement that selects only the MagName and Cost fields from records
9. The SQL SELECT statement performs case sensitive comparisons.a. Trueb. False
8. If a funnel symbol appears next to a field’s name in the Query Builder dialog box, it indicates that the field is .a. used in an ORDER BY clause in a SELECT statementb. used in a WHERE clause in a SELECT statementc. the primary keyd. the foreign key
7. In a SELECT statement, which clause is used to limit the records that will be selected?a. LIMITb. ORDER BYc. ONLYd. WHERE
6. The tblState table contains a numeric field named Population. Which of the following SELECT statements will select the State and Capital fields from only states with populations that exceed 5,000,000?a. SELECT State, Capital FROM tblState WHERE Population > 5000000b. SELECT State, Capital FROM
5. The tblState table contains a text field named State. Which of the following SELECT statements will select the State and Capital fields from only the Kansas and Kentucky records?a. SELECT State, Capital FROM tblState WHERE State LIKE 'K'b. SELECT State, Capital FROM tblState WHERE State LIKE
4. Which of the following SELECT statements will select only records whose Status field contains the letter A? The Status field is contained in the tblWorker table.a. SELECT Id, Name, Status FROM tblWorker WHERE Status = 'A'b. SELECT Id, Name, Status FROM tblWorker ORDER BY Status = 'A'c. SELECT
3. Which of the following SELECT statements will select the SSN field from the tblPayInfo table, and then sort the records in descending order by the SSN field?a. SELECT SSN FROM tblPayInfo DESCb. SELECT SSN FROM tblPayInfo ORDER BY SSN DESCc. SELECT SSN FROM tblPayInfo WHERE SSN DESCd. SELECT SSN
2. Which of the following SELECT statements will select the First and Last fields from the tblNames table?a. SELECT First AND Last FROM tblNamesb. SELECT First OR Last FROM tblNamesc. SELECT First, Last FROM tblNamesd. SELECT ONLY First, Last FROM tblNames
1. SQL stands for .a. Select Query Languageb. Semi-Quick Languagec. Structured Quick Languaged. Structured Query Language
5. Which of the following will delete the record associated with a DataRow variable named findRow?a. findRow.Delete()b. findRow.Remove()c. delete(findRow)d. none of the above
4. Using the FriendsDataSet from Review Question 1, which of the following will locate the record whose last name is Winkler, and then assign the record to the row variable?a. row = FriendsDataSet.tblFriends.FindLName("Winkler")b. row = FriendsDataSet.tblFriends.FindByLName("Winkler")c. row =
3. The FriendsDataSet from Review Question 1 is associated with the TblFriendsBindingSource and TblFriendsTableAdapter objects. Which of the following will sort the records by the LName field?a. TblFriendsBindingSource.Sort = "LName"b. TblFriendsBindingSource.Sort("LName")c.
2. Two records were added to the FriendsDataSet from Review Question 1. Which of the following will save the records in the Friends database?a. TblFriendsBindingSource.Save(FriendsDataSet.tblFriends)b. TblFriendsBindingSource.Update(FriendsDataSet.tblFriends)c.
1. The FriendsDataSet contains a table named tblFriends. The table contains two text fields named FName and LName. Which of the following will add a new record to the dataset?a. FriendsDataSet.tblFriends.AddFriendsRow(strF, strL)b. FriendsDataSet.tblFriends.AddRowToFriends(strF, strL)c.
5. Using the Books database from the lesson, which of the following determines the number of books whose price is at least $20?a. Dim intNum As Integer =Aggregate book In BooksDataSet.tblBooks Where book.Price > 20 Into Count()b. Dim intNum As Integer =Aggregate book In BooksDataSet.tblBooks Where
4. Using the Books database from the lesson, which of the following determines the total number of books in the bookstore?a. Dim intNumBooks As Integer =Aggregate book In BooksDataSet.tblBooks Select book.QuantityInStock Into Count()b. Dim intNumBooks As Integer =Aggregate book In
3. Using the Books database from the lesson, which of the following determines the number of records in the dataset?a. Dim intNumRecords As Integer =Aggregate book In BooksDataSet.tblBooks In Counter()b. Dim intNumRecords As Integer =Aggregate book In BooksDataSet.tblBooks Into Count()c. Dim
2. Using the Books database from the lesson, which of the following will select book number 401? The BookNumber field is numeric.a. Dim records = From book In BooksDataSet.tblBooks Where book.BookNumber = "401"Select bookb. Dim records = From book In BooksDataSet.tblBooks Select book.BookNumber =
1. The Enable Deleting check box in a control’s task list determines whether a record can be deleted from the control.a. BindingNavigatorb. BindingSourcec. DataBindingNavigatord. DataGridView
1. The tblMagInfo table contains three fields. The Code and Cost fields are numeric.The Magazine field contains text. The dataset’s name is MagsDataSet.a. Write a LINQ statement that arranges the records in ascending order by the Magazine field.b. Write a LINQ statement that selects records
6. In a LINQ statement, the clause limits the records that will be selected.a. Limitb. Order Byc. Selectd. Where
5. The tblCities table contains a numeric field named Population. Which of the following statements calculates the total population of all of the cities in the table?a. Dim intTotal As Integer =Aggregate city In CitiesDataSet.tblCities Select city.Population Into Sum()b. Dim intTotal As Integer
4. The tblCities table contains a numeric field named Population. Which of the following statements selects all cities having a population that exceeds 15000?a. Dim records =From city In CitiesDataSet.tblCities Where Population > 15000 Select cityb. Dim records =From city In CitiesDataSet.tblCities
3. Which of the following statements selects all of the records in the tblItems table?a. Dim records =From item In ItemsDataSet.tblItems Select All itemb. Dim records =From item In ItemsDataSet.tblItems Select itemc. Dim records =Select item From ItemsDataSet.tblItemsd. Dim records = From
2. Which of the following calculates the sum of the values stored in a numeric field named Quantity?a. Dim dblTotal As Double =Aggregate item In ItemsDataSet.tblItems Select item.Quantity Into Sum()b. Dim dblTotal As Double =From item In ItemsDataSet.tblItems Select item.Quantity Into Sum()c. Dim
1. Which of the following will select only records whose City field begins with an uppercase letter T?a. Dim records = From StoresDataSet.tblStores Select City Like "T*"b. Dim records = From tblStores Where tblStores.City Like "T*"Select cityc. Dim records =From store In StoresDataSet.tblStores
12. Which of the following is true?a. Data stored in a relational database can be retrieved both quickly and easily by the computer.b. Data stored in a relational database can be displayed in any order.c. A relational database stores data in a column and row format.d. all of the above
11. The process of connecting a control to an object in a dataset is called .a. assigningb. bindingc. joiningd. none of the above
10. The field that links a child table to a parent table is called the .a. foreign key in the child tableb. foreign key in the parent tablec. link key in the parent tabled. primary key in the child table
9. If the current record is the ninth record in a dataset that contains 10 records, which of the following statements will position the record pointer on the tenth record?a. TblEmployBindingSource.Position = 9b. TblEmployBindingSource.Position =TblEmployBindingSource.Position + 1c.
8. If an application contains the Catch ex As Exception clause, which of the following can be used to access the exception’s description?a. ex.Descriptionb. ex.Exceptionc. ex.Messaged. Exception.Description
7. Which of the following statements retrieves data from the Friends database and stores it in the FriendsDataSet?a. Me.FriendsDataSet.Fill(Friends.accdb)b. Me.TblNamesBindingSource.Fill(Me.FriendsDataSet)c. Me.TblNamesBindingNavigator.Fill(Me.FriendsDataSet.tblNames)d.
6. Which of the following objects provides the connection between a DataSet object and a control on a form?a. Boundb. Bindingc. BindingSourced. Connecting
5. The information in a database is stored in tables.a. columnarb. relationalc. sortedd. tabular
4. A is an organized collection of related information stored in a computer file.a. databaseb. datasetc. fieldd. record
3. If the record pointer is positioned on record number 7 in a dataset, which of the following will move the record pointer to record number 8?a. TblBooksBindingSource.GoNext()b. TblBooksBindingSource.Move(8)c. TblBooksBindingSource.MoveNext()d. TblBooksBindingSource.PositionNext
2. The property stores an integer that represents the location of the record pointer in a dataset.a. BindingNavigator object’s Positionb. BindingSource object’s Positionc. TableAdapter object’s Positiond. none of the above
1. Which of the following objects connects a database to a DataSet object?a. BindingSourceb. DataBasec. DataGridViewd. TableAdapter
6. You can use the tag to display text on the next line in a control.a. b. c. d. none of the above
5. The date selected in a Calendar control is stored in the control’s property.a. Dateb. SelectedDatec. DateSelectiond. none of the above
4. The item selected in a drop-down list control is stored in the control’s property.a. Itemb. Selectedc. SelectedItemd. none of the above
3. Which of the following adds the word “Alaska” to a drop-down list control?a. b. c. d. none of the above
2. Which of the following specifies that Col3 should occupy 15% of the Web page and be positioned on the right?a. b. c. d.
1. Which of the following specifies the fonts to use for the text on a Web page?a. style="font-family:Segoe UI, Arial, Sans-Serif"b. style="fonts:Segoe UI, Arial, Sans-Serif"c. style:"font-family=Segoe UI, Arial, Sans-Serif"d. style:"fonts=Segoe UI, Arial, Sans-Serif"
4. You can use a control to verify that an entry on a Web page is within a minimum and maximum value.a. MinMaxValidationb. MaxMinValidationc. EntryValidatord. RangeValidator
Showing 700 - 800
of 1847
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Last
Step by Step Answers