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 three main characters in question 7 would be assigned to strGameOfThrones(1)?
What is the lower index of an array?
Write a statement that assigns the length of an array named intMovieTimes to intSpan.
Write a statement that assigns the elements shown in Figure 8-87 to a two-dimensional array with implicit sizing named intPinNumbers. 1659 2916 9876 3928 1117 9665 5397 4488 1211 0767 2956 2041
How many elements can be stored in the array in Figure \(8-88\) ? Dim decRoomSize (4, 6) As Decimal FIGURE 8-88
Write a statement that assigns the value 16.7 to the last item in the array in question 12 .
Write a statement that assigns the first line of an opened text file to the first element in an array named strHobbit.
Write a statement that opens a text file named d:\accesscodes.txt and assigns the instance of the StreamReader to objReader.
Write a Sort statement to sort an array named strZipCodes.
If a binary search returns a negative value, what does that mean?
What is the default value of the elements in an array called intTopSpeed()?
Write the statement that hides the Windows Form object that is currently open in an application.
Write the statement that would initialize the variable intFinalExam as a Public Shared class-level variable that can be accessed in other Windows Form objects.
Correct the lines of code in Figure 8-89. Dim intJellyBeans () As Integer = (23, 77, 89, 124, 25) ReDim intJellyBeans (10) As Integer FIGURE 8-89
Correct the line of code in Figure 8-90. Dim strHighwayNumbers () As String = (95, 81, 605, 5} FIGURE 8-90
Rewrite the code shown in Figure 8-91 to fix any errors. Dim strFriends (4) => {"Brea", "Eric", "Daniel", "Ryan", "Brittany"} FIGURE 8-91
What exception would be produced by the code shown in Figure 8-92? Dim int Plane Type (300) As Integer Dim intCount As Integer For intCount = 0 To 301 Next int PlaneType (intCount)=767 FIGURE 8-92
Rewrite the code in Figure 8-93 to read each line of a text file into an array named strFordModel. Do While objReader. Peek = -1 strFordModel (intCount) int Count + 1 Loop FIGURE 8-93
Rewrite the statement in Figure 8-94 to fix the error. Dim intEvenNumbers (4), (8) As Integer FIGURE 8-94
Explain how the two statements shown in Figure 5-84 are evaluated. If strAirline = "Jet Green" AndAlso strHotel = "Homeland Suites Then If atrAirline "Jet Green" And strHotel "Homeland Suites" Then
Identify the error in the code shown in Figure 5-85 and explain how to correct the code. If dblCommission >= 2500 Then Dim intBonus As Integer Else int Bonus = 500. intBonus = 0 End If FIGURE 5-85
The Select Case statement shown in Figure 5-86 contains one or more errors. Identify the error(s) and rewrite the statements correctly. Select Case intNumberOfSeats. Case 5000 strVenueType =
The Select Case statement shown in Figure 5-87 contains one or more errors. Identify the error(s) and rewrite the statements correctly. Select Case charFlightCode Case 'P', 'A' lblFare.Text = 'First
The If ... Then . . . Else statement shown in Figure 5-88 contains one or more errors. Identify the error(s) and rewrite the statements correctly. If strShippingMethod "Overnite" Then If
Write an If . . . Then decision structure to compare the two numbers in the decDeveloperPay and decWebDesignerPay variables. Display a message box that states decDeveloperPay is greater than
Write an If statement that displays the message box "A Day's Drive" if the value in the variable decMiles is within the range from 300 to 599.
Write an If . . . Then . . . Else statement that checks the value in the variable chrGender for the value M (Male) or \(\mathrm{F}\) (Female) and assigns the information shown in Figure 5-89 to
Write a Select Case statement that tests the user's age in a variable named intAge and assigns the generation name of that age group to the variable strGeneration, according to the information shown
Rewrite the Select Case statement shown in Figure 5-91 as an If . . . Then . . . Else statement. Select Case chrDepartment Case "B", "b" strDept "Baby Infant Clothing" Case "T", "t" strDept
In each of the following examples, is the condition True or False?a. "CVCC" \(>=\) "GRCC"b. "G" \(>=\) "g"c. "Nerdy"< "Nerd"d. "Cool" "cool"e. " 50 " \(>=\) "Fifty"f. ("Paris" < "Barcelona") And
Write a statement that displays the default value of \(\$ 5.49\) in the input box shown in Figure 6-101 and assigns the return value from the InputBox function to a variable named decPizzaSlice with
Write compound operators for the following equations:a. intStrike \(=\) intStrike +10b. dblCube \(=\) dblCube \(^{\wedge} 3\)c. \(\operatorname{strDog}=\operatorname{str} D o g \&\) "Treat"d.
Write For...Next loops that calculate the sum of the following ranges and assign their sum to a variable named intSum:a. The first 50 numbers starting with 0b. The even numbers beginning at 10 and
Find the error(s) in the following For...Next header statements:a. For intCounter = "1" To "19"b. For strNumber \(=98\) To 71 Step 2c. For int Value \(=12\) To 52 Step -4
Explain the purpose of placing an ampersand before or within a MenuStrip item.
Write a command to add a list of precipitation types to a ListBox object named 1stWater.
Write the command to clear a ListBox object named 1stWinners.
What is the name of the property that displays an image as the background of a Form object?
What is the name of the property that can be used to stretch the background image of the Form object?
Using a compound operator, write an assignment statement to decrease the value in intCounter by 6.7.
Write a top-controlled Do Until loop with an empty body that would continue until intValue is less than 19.
Write a bottom-controlled Do While loop with an empty body that continues while the user enters "Yes" into the strContinue variable.
Write a Do While loop to validate that the user enters a nonzero integer into an input box for a variable named intDenominator.
Is the For...Next loop top-controlled or bottom-controlled?
Write the code for an infinite Do Until loop with the variable intForever.
Which loop should be used if you know the required number of times the loop will be executed?
What is the fewest number of times a top-controlled Do Until loop is executed?
Write a data validation Do loop to check that the variable intValidAge entered from an input box is between 1 and 118 .
A loop inside another loop is called a . \( \qquad \)
When you insert standard items in a MenuStrip object, what File menu items are automatically created by default?
The loop shown in Figure 6-102 should repeat 10 times. If it will not repeat 10 times, change the code so it will. 7 9 881 For intRepeat Next 20 To 10 MsgBox("The value is " & int Repeat.
What output does the code shown in Figure 6-103 produce? How would you change the code to produce a list box containing the values \(12-22\) ? intRate 12 Do While intRate
What is the output of the code shown in Figure 6-104? Dim intAdd As Integer Dim intOuterLoop As Integer Dim int InnerLoop As Integer intAdd 0 10 11 12 13 14 5638901234 Next: For intOuter Loop = 1 To
What is the output of the code shown in Figure 6-105? 33 34567000 Dim intValue As Integer intValue = 2 Do While intValue
Fix the errors in the loop shown in Figure 6-106. 41 42 43 44 45 Dim intStart As Integer = 8 Loop intStart = +4 Do While intStart < 24 FIGURE 6-106
What is the output of the code shown in Figure 6-107? 53 54 55 Un in un un in 657 56 57 intCount = 40 Do Until intCount < 26 Loop intCount - 2 1stCount.Items.Add(int Count) FIGURE 6-107
What is the value of lblResult after the code shown in Figure 6-108 is executed? Dim intCounter As Integer = -15 Do While intCount < 25 intCount += 5 lblResult.Text & intCount.ToString() & " 73 74 75
What is the value of lbIResult after the code shown in Figure 6-109 is executed? 00 00 00 00 00 00 00 80 81 82 83 84 85 0123456 86 Dim intCountIt As Integer int Count It 6 Do int Count It += 3
Rewrite the top-controlled Do While loop shown in Figure 6-110 as a top-controlled Do Until loop. 88 89 90 91 92 93 Dim intQuantity As Integer intQuantity = -5 Do While intQuantity < 30 int Quantity
Convert the Do loop shown in Figure 6-111 to a For...Next loop. 95 96 97 98 999900 7696H 99 100 Dim intIncrease As Integer intIncrease = 10 Do While intIncrease
How many times will the inner statement inside the nested loop in Figure 6-112 be executed? 103 104 105 106 For intOuterLoop 3 To 5 For intInner Loop = 6 To 10 1stDays.Items.Add("Value: " &
Write a For...Next loop that adds the odd numbers 1 through 49 and assigns their sum to the variable intSum. The program should start with the lines shown in Figure 6-113 (use the variables shown in
What is the name of the screen that displays a logo and version number of an application allowing the program to load?
Name the two types of procedures.
Write the line of code that would display frmSplash1 for approximately six seconds.
What is the difference between passing by value and passing by reference?
What is the fewest number of arguments you can pass to a Sub procedure?
What section of code performs a specific task and returns a value?
What section of code performs a specific task and does not return a value?
If a variable intPlatform is assigned the value 4 in a Sub procedure, what is the value of intPlatform when the variable is placed outside of the Sub procedure if it is not passed out of the
How many values can a Function procedure return?
Write a Return statement that returns the variable intCricketScore.
Write the Visual Basic statements declaring a Sub procedure called Elevator that receives one variable called intFloors. The variable intFloors will be changed in the procedure. Write only the first
When multiple arguments are passed to a procedure, the order is not important. True or false?
If you want a copy of a variable passed to a procedure, which way should you pass it?
You must have a Return statement in a Sub procedure. True or false?
You cannot have a Return statement in a Function procedure. True or false?
Which type of exception would be detected if you used the conversion command Convert.ToInt32 to convert a non-integer value?
Which type of exception would be detected if you used the conversion command Convert.ToDecimal to try to convert an ampersand?
If you enter a number that is too large for the data type, which type of exception would be detected?
When deciding whether a set of programming steps should be placed in a Sub procedure or a Function procedure, what are three questions you should ask?
Fix the code: Private Sub btnCyberMonday_Tap (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCyberMonday. Tap Dim decPurchase As Decimal Dim intCount As Decimal End Sub
Fix the code: Private Sub btnSoftball_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSoftball.click End Sub Dim decHits As Decimal = 210 Dim decTimes At Bat As Decimal =
Fix the code: Private Sub btnMileage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMileage. Click Dim intMiles As Decimal = 323.2D Dim decGallons As Decimal = 13.8D Dim
Label the following parts of the window shown in Figure 2-56: 1. A L Finis Ty 2. 5.. FIGURE 2-56 +
Why would you sign in with a Microsoft account when opening Visual Studio?
What does RAD stand for?
What is the difference between red and blue snap lines?
What is the prefix of the Button object?
A Button, Label, Form, and a PictureBox are all . \( \qquad \)
How do you select three PictureBox objects on the Windows Form object at the same time for alignment purposes?
What is the purpose of a mock-up?
What are the first two phases of the program development life cycle?
Write the Form object name "CastleTickets" with the correct prefix.
Write the Label object name "Knights" with the correct prefix.
Write the Button object name "Moat" with the correct prefix.
Which property of the Label object do you use to change the displayed writing on the Form object?
Which property do you use to change the size of the text on a Button object?
How do you save the project you have created for the user interface mock-up?
When the Latte Selection program was executed, was the Enabled property of the Mocha button set to True or False?
Showing 100 - 200
of 696
1
2
3
4
5
6
7