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 microsoft visual basic
Questions and Answers of
Programming Microsoft Visual Basic
If the strWord variable contains the string “crispy”, which of the following statements assigns the letter s to the strLetter variable?a. strLetter = strWord.Substring(3)b. strLetter =
The strName variable contains the string “Doe Jane”. Which of the following changes the variable’s contents to the string “Doe, Jane”?a. strName = strName.Insert(3, ",")b. strName =
Which of the following statements assigns the first four characters in the strItem variable to the strWarehouse variable?a. strWarehouse = strItem.Assign(0, 4)b. strWarehouse = strItem.Assign(1, 4)c.
If the strAddress variable contains the string “15 Palm Ave.”, what will the strAddress.IndexOf("Palm", 5) method return?a. –1b. 5c. 6d. False
If the strAddress variable contains the string “41 Main Street”, what will the strAddress.IndexOf("Main") method return?a. –1b. 3c. 4d. True
If the strMsg variable contains the string “Her birthday is Friday!”, which of the following assigns the number 16 to the intNum variable?a. intNum = strMsg.Substring(0, "F")b. intNum =
If the strName variable contains the string “Sharon Kelper”, which of the following changes the contents of the variable to the string “Sharon P. Kelper”?a. strName = strName.Insert(6, "
If the strPresident variable contains the string “Abraham Lincoln”, what value will the strPresident.IndexOf("ham") method return?a. Trueb. –1c. 4d. 5
Which of the following methods can be used to determine whether the strRate variable contains the percent sign?a. blnResult = strRate.Contains("%")b. intResult = strRate.IndexOf("%")c. intResult =
The strAmount variable contains the string “678.95”. Which of the following statements changes the contents of the variable to the string “678.95!!!”?a. strAmount = strAmount.PadRight(9,
Which of the following statements changes the contents of the strWord variable from “led” to “lead”?a. strWord = strWord.AddTo(2, "a")b. strWord = strWord.Insert(2, "a")c. strWord =
Which of the following assigns the number of characters in the strAddress variable to the intNum variable?a. intNum = strAddress.Lengthb. intNum = strAddress.LengthOfc. intNum = Length(strAddress)d.
Open the VB2017\Chap06\FixIt Solution\FixIt Solution.sln file. Start the application. Click 20 in the Length combo box and then click 30 in the Width combo box. Click the Calculate area button, which
In this exercise, you create an application that calculates the number of single rolls of wallpaper required to cover a room. Create a Windows Forms application. Use the following names for the
In this exercise, you create an application that calculates a customer?s cable bill. Create a Windows Forms application. Use the following names for the project and solution, respectively: Cable
In this exercise, you modify the application created in Exercise 9. Use Windows to make a copy of the Translator Solution folder. Rename the copy Translator Solution-Sub. Open the Translator
Create a Windows Forms application. Use the following names for the project and solution, respectively: Translator Project and Translator Solution. Save the application in the VB2017\Chap06 folder.a.
Mats-R-Us sells three different types of mats: Standard ($99), Deluxe ($129), and Premium ($179). All of the mats are available in blue, red ($10 extra), and pink ($15 extra). There is also an extra
The Donut Shoppe sells four varieties of doughnuts: Glazed ($1.05), Sugar ($1.05), Chocolate ($1.25), and Filled ($1.50). It also sells regular coffee ($1.50) and cappuccino ($2.75). The store
In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-RadioButton folder. Create an
In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-CheckBox folder. Create an
In this exercise, you modify the Cerruti Company application from this chapter’s Apply lesson. Use Windows to make a copy of the Cerruti Solution folder. Rename the copy Modified Cerruti Solution.
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap02 folder.
Which of the following objects provides the connection between a DataSet object and a control on a form?a. Boundb. Bindingc. BindingSourced. Connecting
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.
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
The CompanyDataSet contains a table named Sales and a field named Income. Which of the following loops will accumulate the values in the Income field?a. For Each row As CompanyDataSet.Sales.RowIn
Which of the following refers to the process of connecting a dataset object to a control in the interface?A. AssigningB. BindingC. JoiningD. None of the above.
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
Which of the following SQL data types is associated with the Visual Basic String data type?a. Char(n)b. String(n)c. Varchar(n)d. Both a and c.
Which of the following SQL data types can store the number 12345.67?a. Decimal(7, 2)b. Decimal(5, 2)c. Decimal(2, 7)d. Decimal(2, 5)
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap11 folder.
Which of a database file’s properties determines if and when the file is copied to the project’s bin\Debug folder?a. Copy to Debugb. Copy to Outputc. Copy to Output Directoryd. Copy to bin\Debug
SQL stands for _____________________.a. Select Query Languageb. Semi-Quick Languagec. Structured Quick Languaged. Structured Query Language
Open the VB2017\Chap11\FixIt Solution\FixIt Solution.sln file. Open the Code Editor window. Correct any errors in the code. Start the application. Click the Calculate button. The total on hand should
Which of the following is false?a. You can use a query to retrieve specific information from a database.b. You can write queries using SQL.c. You cannot use a query when a database has more than one
You can use the bindingnavigator control to _____________________.A. Add records to a datasetB. Save records in a datasetC. Delete records from a datasetD. All of the above.
The Employees table contains six fields. The EmpNum, Rate, and DeptCode fields are numeric. The LastName, FirstName, and Status fields contain text. The Status field contains either the letter F (for
Open the Adalene Solution.sln file contained in the VB2017 Chap12 Adalene Solution folder. The application is already connected to the Adalene.mdf file, and the AdaleneDataSet has already been
Open the Opals Solution.sln file contained in the VB2017\Chap12\Opals Solution folder. The application is already connected to the Opals.mdf file, and the OpalsDataSet has already been created. The
Which of the following will select the State and Capital fields for states with populations that exceed 5,000,000? (The Population field is numeric.)a. SELECT State, Capital FROM States WHERE
Which of the following will select the Id and Status fields for records whose Status field contains only the letter F?a. SELECT Id, Status FROM Employ WHERE Status = 'F'b. SELECT Id, Status FROM
Open the Games Solution.sln file contained in the VB2017\Chap12\Games Solution folder. Start the application to view the records, and then click the Exit button. In addition to displaying all of the
Which of the following will select the State and Capital fields for the Kansas and Kentucky records?a. SELECT State, Capital FROM States WHERE State LIKE 'K_'b. SELECT State, Capital FROM States
In this exercise, you modify the Games application from Exercise 5. Use Windows to make a copy of the Games Solution folder. Rename the copy Games Solution-Total. The frmMain_Load procedure should
In a SELECT statement, which clause is used to limit the records that will be selected?a. LIMITb. ORDER BYc. ONLYd. WHERE
What does the funnel symbol that appears next to a field’s name in the Query Builder dialog box indicate?a. The field is used in a SELECT statement’s ORDER BY clause.b. The field is used in a
Open the VB2017\Chap12\FixIt Solution\FixIt Solution.sln file. Start the application. Click the Grade radio button, type the letter a in the Grade box, and then click the Display button. The
The SQL SELECT statement performs case-sensitive comparisons.a. True b. False
When used in a parameter query, which of the following WHERE clauses will select the records for employees working more than 40 hours?a. WHERE Hours > @Hoursb. WHERE Hours > !Hoursc. WHERE
Which of the following calculates the average of the values in the OnHand field?a. SELECT AVERAGE(OnHand) AS Available FROM dbo.Inventoryb. SELECT OnHand.AVG AS Available FROM dbo.Inventoryc. SELECT
Which of the following calculates a 10% commission on the values in the Sales field and then stores the results in the Commission field?a. SELECT Year, Sales, Commission = Sales * 0.1 FROM
A computer that requests an asp page from a web server is called a _____________________ computer.A. BrowserB. ClientC. RequestingD. Server
Which of the following is a program that uses html to render a web page on the Computer screen?A. BrowserB. ClientC. ServerD. Renderer
Which of the following is responsible for processing a web page’s html instructions?A. Client computer b. Web server
In code, you refer to a control on a Web page by using which of the following properties?a. Captionb. IDc. Named. Text
Which of the following controls is used to verify that a control on a Web page contains data?a. FieldValidatorb. RequiredFieldc. RequiredFieldValidatord. RequiredValidator
Which of the following controls is used to verify that an entry on a Web page is within minimum and maximum values?a. MinMaxValidationb. MaxMinValidationc. EntryValidatord. RangeValidator
Logic errors are listed in the Error List window.a. True b. False
The process of locating and fixing any errors in a program is called _________________.A. Bug-proofingB. Bug-eliminatingC. DebuggingD. Error removal
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.
Open the New Pay Solution.sln file contained in the VB2017\AppC\New Pay Solution folder. Use what you learned in the appendix to debug the application.
Open the Hawkins Solution.sln file contained in the VB2017\AppC\Hawkins Solution folder. Use what you learned in the appendix to debug the application.
Open the Allenton Solution.sln file contained in the VB2017\AppC\Allenton Solution folder. Use what you learned in the appendix to debug the application.
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. True b. False
Open the Framington Solution.sln file contained in the VB2017\AppC\Framington Solution folder. Use what you learned in the appendix to debug the application.
Open the Commission Calculator Solution.sln file contained in the VB2017\AppC\ Commission Calculator Solution folder. Use what you learned in the appendix to debug the application.
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.
Open the Beachwood Solution.sln file contained in the VB2017\AppC\Beachwood Solution folder. Use what you learned in the appendix to debug the application.
The statement constant dblrate as double is an example of a _________________.A. Correct statementB. Logic errorC. Syntax errorD. Run time error
Open the Average Score Solution.sln file contained in the VB2017\AppC\Average Score Solution folder. Use what you learned in the appendix to debug the application.
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
Open the Martins Solution.sln file contained in the VB2017\AppC\Martins Solution folder. Use what you learned in the appendix to debug the application.
Open the CityState Solution.sln file contained in the VB2017\Chap08\CityState Solution folder. Open the Code Editor window. Locate the btnDisplay_Click procedure. The procedure should declare and
The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the following blocks of code correctly calculates the average value stored in the array? The intTotal,
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly multiply each element by 2? The intSub variable
The intsales array is declared as follows: dim intsales() as integer = {10000, 12000, 900, 500, 20000}. The statement intsales(2) + = 10 will _____________________.a. Replace the 900 amount with 10b.
Open the Electricity Solution.sln file contained in the VB2017\Chap08\Electricity Solution folder. Open the Code Editor window and locate the btnCalc_Click procedure. Each of the 12 numbers in the
The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process
In this exercise, you modify one of the Waterson Company applications from this chapter’s Apply lesson. Use Windows to make a copy of the Waterson Solution-Highest folder. Rename the copy Waterson
Which of the following declares a five-element one-dimensional array?a. Dim intSold(4) As Integerb. Dim intSold(5) As Integer = {4, 78, 65, 23, 2}c. Dim intSold() As Integer = {4, 78, 65, 23, 2}d.
In this exercise, you modify the Gross Pay application from this chapter’s Focus lesson. Use Windows to make a copy of the Gross Solution folder. Rename the copy Gross Solution-Functions. Open the
In this exercise, you modify the Gross Pay application from this chapter’s Focus lesson. Use Windows to make a copy of the Gross Solution folder. Rename the copy Modified Gross Solution. Open the
In this exercise, you modify the History Grade application from this chapter’s Focus lesson. Use Windows to make a copy of the History Solution folder. Rename the copy History Solution-Functions.
Explain the difference between invoking a Sub procedure and invoking a function.
Explain the difference between passing a variable by value and passing it by reference.
Explain the difference between a Sub procedure and a Function procedure.
If a message is for informational purposes only and does not require the user to make a decision, the message box should display which of the following?a. An ok button and the information iconb. An
Which constant displays the Exclamation icon in a message box?a. MessageBox.Exclamationb. MessageBox.IconExclamationc. MessageBoxIcon.Exclamationd. MessageBox.WarningIcon
Which of the following statements prevents a form from being closed?a. e.Cancel = Falseb. e.Cancel = Truec. e.Close = Falsed. e.sender.Close = False
Which event is triggered when the computer processes the me.close() statement entered in the btnexit_click procedure?a. The form’s closing eventb. The form’s formclosing eventc. The btnexit
Which of the following rounds the contents of the dblSales variable to two decimal places?a. dblSales = Math.Round(dblSales, 2)b. dblSales = Math.Round(2, dblSales)c. dblSales = Round.Math(dblSales,
Which of a form’s events is triggered when you click the Close button on its title bar?a. FormCloseb. FormClosingc. FormExitd. None of the above.
Which event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion?a. ChangedItemb. ChangedValuec. SelectedItemChangedd.
The item that appears in the text portion of a combo box is stored in which property?a. SelectedTextb. SelectedValuec. Textd. TextItem
Which of the following selects the Cat item, which appears third in the cboAnimal control?a. cboAnimal.SelectedIndex = 2b. cboAnimal.SelectedItem = "Cat"c. cboAnimal.Text = "Cat"d. All of the above.
The items in a combo box belong to which collection?a. Itemsb. Listc. ListBoxd. Values
Which property is used to specify a combo box’s style?a. ComboBoxStyleb. DropDownStylec. DropStyled. Style
Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statementshould assign the function’s return
The memory locations listed in a procedure header’s parameterList have procedure scope and are removed from the computer’s main memory when the procedure ends.a. True b. False
Showing 200 - 300
of 512
1
2
3
4
5
6