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
Which of the following is not a valid name for an object?a. picMy.Dogb. btnCalcSalesTaxc. lbl2019d. lblProjected2024
Define the term “syntax.”
Which of the following do not need to have their names changed to more meaningful ones?a. All controls that will be codedb. All controls that will be referred to in codec. The formd. Identifying
What is the result of the following expression: 96 \ 30?a. 3b. 3.2c. 6d. 0.2
Which of the following is not a valid name for a variable?a. Dbl8%Rateb. DecCostc. StrNamed. IntAge
What is the result of the following expression: 3 x 5 \ 2 + 30 / 5?a. 7.5b. 13c. 13.5d. 12
Which of the following is used to declare a procedure-level String variable?a. Dim String strCityb. Dim strCity As Stringc. Private strCity As Stringd. Local strCity As String
Which of the following is true?a. A static variable has the same lifetime as a procedure-level variable but the same scope as a class-level variable.b. A static variable has the same scope as a
Evaluate the following expression: 13 > 12 OrElse 6 < 5.a. True b. False
Evaluate the following expression: 6 + 3 > 7 AndAlso 11 < 2 x 5.a. True b. False
Evaluate the following expression: 8 > 10 OrElse 7 > 3.a. True b. False
Evaluate the following expression: 7 + 3 x 2 < 6 x 3 AndAlso 20 > = 4 x 5.a. True b. False
Evaluate the following expression: 5 x 7 > 6 ˆ 2.a. True b. False
Evaluate the following expression: False AndAlso True OrElse True.a. True b. False
Which of the following is the correct order of precedence for the AndAlso, Not, and OrElse logical operators?a. AndAlso, Not, OrElseb. AndAlso, OrElse, Notc. Not, AndAlso, OrElsed. OrElse, AndAlso,
Which of the following is the correct order of precedence for the arithmetic, comparison, and logical operators?a. Arithmetic, Comparison, Logicalb. Arithmetic, Logical, Comparisonc. Comparison,
Which method right-aligns a string?a. PadLeftb. PadRightc. LeftAlignd. RightAlign
What is a constructor?a. A functionb. A Property procedurec. A Sub procedured. Either a function or a Sub procedure
To hide one of a class’s members, you declare the member using which of the following keywords?a. Hideb. Invisiblec. Privated. ReadOnly
Which type of database stores information in tables composed of rows and columns?a. Columnarb. Relationalc. Sortedd. Tabular
You can use the buttons on a BindingNavigator control to do all but which of the following?a. Add records to a datasetb. Save records in a datasetc. Delete records from a datasetd. Edit records in a
What does SQL stand for?a. Select Query Languageb. Semi-Quick Languagec. Structured Quick Languaged. Structured Query Language
Which of the following properties is used to refer to a control (on a web page) in code?a. Captionb. IDc. Named. Text
In this exercise, you modify the Shipping Depot application from Exercise 13. Use Windows to make a copy of the Shipping Depot Solution folder. Rename the copy Modified Shipping Depot Solution. Open
Create a Windows Forms application. Use the following names for the project and solution, respectively: Shipping Depot Project and Shipping Depot Solution. Save the application in the VB2017\Chap08
Open the Kraston Solution.sln file contained in the VB2017\Chap08\Kraston Solution folder. The btnDisplay_Click procedure should display a shipping charge that is based on the number of items a
In this exercise, you modify the Professor Schneider application from Exercise 10. Use Windows to make a copy of the Schneider Solution folder. Rename the copy Schneider Solution-TwoDim. Open the
In this exercise, you code the Professor Schneider application, which displays a grade based on the number of points entered by the user. The number of points should always be less than or equal to
Open the Computer Solution.sln file contained in the VB2017\Chap08\Computer Solution folder. The interface allows the user to enter the number of either new or refurbished computers sold. Open the
Open the Calories Solution.sln file contained in the VB2017\Chap08\Calories Solution folder. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure declares and
In this exercise, you modify the Professor Juarez application from Exercise 5. Use Windows to make a copy of the Professor Juarez Solution folder. Rename the copy Professor Juarez Solution-TwoDim.
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
Open the Professor Juarez Solution.sln file contained in the VB2017\Chap08\Professor Juarez Solution folder.a. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure
Open the Gross Pay Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution folder. The interface provides a text box for entering the number of hours an employee worked. It also provides
Which of the following returns the highest column subscript in a two-dimensional array named decPays?a. decPays.GetUpperBound(1)b. decPays.GetUpperBound(0)c. decPays.GetUpperSubscript(0)d.
Which of the following assigns the number 0 to each element in a two-row, four-column Integer array named intSums?a. For intRow As Integer = 0 To 1For intCol As Integer = 0 To 3intSums(intRow,
Which of the following statements assigns the string “California” to the element located in the fourth column, sixth row in the two-dimensional strStates array?a. strStates(3, 5) = "California"b.
The intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17, 8, 10}}. Which of the following If clauses determines whether the intRow and intCol variables
The intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17, 8, 10}}. The intNum(1, 4) = intNum(1, 2) - 5 statement will_____________________.a. Replace the 10
Which of the following declares a two-dimensional array that has four rows and three columns?a. Dim decNums(2, 3) As Decimalb. Dim decNums(3, 4) As Decimalc. Dim decNums(3, 2) As Decimald. Dim
The dblNums array is a six-element Double array. Which of the following If clauses determines whether the entire array has been searched?a. If intSub = dblNums.Length Thenb. If intSub <=
The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?a. strCapitals(1) b.
If the elements in two arrays are related by their subscripts, the arrays are called _____________________ arrays.a. Associatedb. Coupledc. Matchingd. Parallel
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following If clauses determines whether the intSub variable contains a valid
The strNames array contains 100 elements. Which of the following statements assigns the number 99 to the intLastSub variable?a. intLastSub = strNames.Lengthb. intLastSub = strNames.GetUpperBound(0) +
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 intCounters array contains five elements. Which of the following assigns the number 1 to each element?a. For intSub As Integer = 0 To 4intCounters(intSub) = 1Next intSubb. Dim intSub As IntegerDo
Which of the following assigns the string “Rover” to the fifth element in a one-dimensional array named strPetNames?a. strPetNames(4) = "Rover"b. strPetNames[4] = "Rover"c. strPetNames(5) =
If the intNums array contains six elements, which of the following statements assigns the number 6 to the intElements variable?a. intElements = Len(intNums)b. intElements = Length(intNums)c.
Which of the following statements sorts the intQuantities array in ascending order?a. Array.Sort(intQuantities)b. intQuantities.Sortc. Sort(intQuantities)d. SortArray(intQuantities)
Open the VB2017\Chap07\FixIt Solution\FixIt Solution.sln file. The interface provides a text box for the user to enter one or more words. The btnReverse_Click procedure should display the characters
Open the Validate Number Solution.sln file contained in the VB2017\Chap07\Validate Number Solution folder. The interface provides a text box for entering a 9-digit number. The btnValidate_Click
Open the Addition Solution.sln file contained in the VB2017\Chap07\Addition Solution folder. The btnNew_Click procedure is responsible for generating two random integers from 0 to 10 (including 10)
Each salesperson at Rembrandt Auto-Mart is assigned an ID number that consists of five characters. The first three characters are numbers. The fourth character is a letter: either the letter N if the
In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy
In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Advanced. Open
Open the Shipping Solution.sln file contained in the VB2017\Chap07\Shipping Solution folder. The interface provides a text box for entering a shipping code, which should consist of two numbers
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Index. Open the
In this exercise, you modify the Check Digit application from this chapter’s Apply lesson. Use Windows to make a copy of the Check Digit Solution folder. Rename the copy Check Digit
Open the Zip Solution.sln file contained in the VB2017\Chap07\Zip Solution folder file. The btnDisplay_Click procedure should validate the ZIP code entered by the user. To be valid, the first four
Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder. The interface provides a text box for entering a person’s first and last names. The
Open the Color Solution.sln file contained in the VB2017\Chap07\Color Solution folder. The btnDisplay_Click procedure should display the color of the item whose item number is entered by the user.
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Spaces. Open
Open the Validate ISBN Solution.sln file contained in the VB2017\Chap07\Validate ISBN Solution folder. The interface provides a text box for entering a 13-character ISBN. The btnValidate_Click
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Modified Password Solution. Open
In this exercise, you modify the Check Digit application from this chapter’s Apply lesson. Use Windows to make a copy of the Check Digit Solution folder. Rename the copy Check Digit
Which method right-aligns a string?a. PadLeftb. PadRightc. LeftAlignd. RightAlign
Which property allows you to specify a specific character that will always be displayed in a text box, no matter what character the user types?a. Charb. CharPasswordc. Passwordd. PasswordChar
Which property specifies the number of characters that a text box will accept?a. Lengthb. MaxLengthc. LengthMaxd. Maximum
Which of the following statements enables the btnClear control?a. btnClear.Enabled()b. btnClear.Enabled = Yesc. btnClear.Enabled = Trued. btnClear.Enable = True
Which of the following statements sends the focus to the btnClear control?a. btnClear.Focus()b. btnClear.Focus() = Truec. btnClear.SendFocus()d. btnClear.SetFocus()
Which of the following statements generates a random integer from 1 to 25 (including 25)?a. intNum = randGen.Next(1, 25)b. intNum = randGen.Next(1, 26)c. intNum = randGen(1, 25)d. intNum =
Which of the following statements declares an object to represent the pseudo-random number generator in a procedure?a. Dim randGen As New RandomNumberb. Dim randGen As New Generatorc. Dim randGen As
Which of the following expressions evaluates to True when the strItem variable contains the string “1234Y5”?a. strItem Like "####[A-Z]#"b. strItem Like "9999[A-Z]9"c. strItem Like "######"d. None
Which of the following statements changes the contents of the strSocSec variable from “000-11-2222” to “000112222”?a. strSocSec = strSocSec.Remove("–")b. strSocSec =
If the strWord variable contains the string “spring”, which of the following statements assigns the letter r to the strLetter variable?a. strLetter = strWord.Substring(2)b. strLetter =
Which of the following statements changes the contents of the strZip variable from 60521 to 60461?a. strZip = strZip.Insert(2, "46") strZip = strZip.Remove(4, 2)b. strZip = strZip.Remove(2) strZip =
The strName variable contains the string “Jeffers”. Which of the following statements changes the contents of the variable to the string “Jeff”?a. strName = strName.Remove(4)b. strName =
The strDue variable contains the string “$****75”. Which of the following statements removes the dollar sign and asterisks from the variable?a. strDue = strDue.Trim("$"c, "*"c)b. strDue =
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
Showing 1 - 100
of 392
1
2
3
4