Need help with Visual Basic questions for project. The exam will be open for 2 hours so I will need the answers within that time frame. Anyone who is willing to help please let me know the time when you will be online to help me with the questions. Then I will go ahead and start the quiz and post the questions. The Final Exam will consist of a set of 100 multiple-choice questions. Please let me know asap. Thanks
Optional Information: Computer OS: Windows VistaBrowser: IE
HiCustomerThank you for the question. Are you writing any VB applications for this test? Do you know which versoin of Visual Basic the course you are taking is based on?
Hi,
No we dont need to write any program. Its just true/false questions and multiple choice. Please let me know when is a good time? Thanks
Can you tell me which version of Visual Basic you are working with?
VB 2008 express? But the final exam is online. So basically i need someone to answer the multiple choice questions..
Thanks
Do you have any sample questions from previous exams, or study guides? I just would like to determine what kinds of questions will be on the exam. Thanks,
I found some sample questions..
. Like other variables, array variables can be declared and assigned initial values at the same time. (Points: 3) True False2. After an array has been declared, its type (but not its size) can be changed with a ReDim statement. (Points: 3) True False3. The members of a structure must all be of the same data type. (Points: 3) True False4. After the following Dim statement is executed, how many subscripted variables called myvar(i) will be available?Dim myVar(7) As Double
(Points: 3) 0 1 8 9 5. In the statement Dim score(30) As Double the number 30 designates which of the following? (Points: 3) the highest value of the subscripts of the elements for the array score(). the maximum value that can be assigned to any element in the array score(). the data type for the array score(). the value initially assigned to each element in the array score(). 6. The GetUpperBound(0) function returns what information about an array? (Points: 3) The highest number that can be used as a subscript for the array. The largest value that can be assigned to an array element. The number of elements in the array. The highest dimension of the array. 7. What is the value of j after the following code segment has been executed? Dim state(49) As String, j as Integer 'Assume that the data file STATES.TXT contains 'the names of the 50 states of the United States 'in the order they were admitted to the union. Dim sr As IO.StreamReader = IO.File.OpenText("STATES.TXT") j = 0 Do While sr.Peek <> -1 state(j) = sr.ReadLine j += 1 Loop sr.Close() For i As Integer = 0 to state.GetUpperBound(0) lstBox.Items.Add( "State Number " & i + 1 & " is " & state(i)) Next (Points: 3) 48 49 50 Unable to determine 8. In an ascending ordered array, the value of each element is (Points: 3) less than or equal to the value of the next element. greater than or equal to the value of the next element. equal to the value of the next element. greater than the value of the next element. 9. Consider the following structure definition. Which Dim statement would correctly declare an array of this structure for elements having subscripts from 0 through 30? Structure carType Dim yr As Integer Dim make As String Dim model As String End Structure (Points: 3) You cannot have an array of structures. Dim carType(30) Dim car(30) As carType Dim carType(30) As car 10. The bubble sort compares (Points: 3) first and last items. items separated by a variable gap. adjacent items. three items at once.
I only have 1 hrs 10 minutes i think the system deducted my time when i first tried to login.
Please reply asap. I have already sent you the questions...
thanks
Hi Nick,I think the large number of items in your post of questions just hosed the other question. I'll post the answers here in groups of five. I'm hurrying.
1. The Visual Basic Code Editor will automatically detect certain types of errors as you are entering code. (Points: 2)TrueFalse2. Keywords are also referred to as reserved words. (Points: 2)TrueFalse3. The divide-and-conquer-method of problem solving breaks a problem into large, general pieces first, then refines each piece until the problem is manageable. (Points: 2)TrueFalse4. Visual Basic responds to events using which of the following? (Points: 2)a code procedure an event procedure a form procedure a property 5. When the user clicks a button, _________ is triggered. (Points: 2)an event a method a setting a property
6. What property of controls tells the order they receive the focus when the tab key is pressed during run time? (Points: 2)Focus order Focus number Tab index Control order 7. Sizing Handles make it very easy to resize virtually any control when developing applications with Visual Basic. When working in the Form Designer, how are these sizing handles displayed? (Points: 2)A rectangle with 4 arrows, one in each corner, around your control. A 3-D outline around your control. A rectangle with small squares around your control. None of the above. 8. The Properties window plays an important role in the development of Visual Basic applications. It is mainly used (Points: 2)to change how objects look and feel. when opening programs stored on a hard drive. to allow the developer to graphically design program components. to set program related options like Program Name, Program Location, etc. 9. When creating a new application in Visual Basic, you are asked to supply a name for the program. If you do not specify a name, a default name is XXXXX XXXXX is this default name? (Points: 2)Wapplication followed by a number. Application followed by a number. WindowsApplication. WindowsApplication followed by a number. 10. Which of the properties in a control's list of properties is used to give the control a meaningful name? (Points: 2)Text ContextMenu ControlName Name
11. Pseudocode is (Points: 2)data that have been encoded for security. the incorrect results of a computer program. a program that doesn't work. the obscure language computer personnel use when speaking. a description of an algorithm similar to a computer language. 12. An algorithm is defined as: (Points: 2)a mathematical formula that solves a problem. a tempo for classical music played in a coda. a logical sequence of steps that solve a problem. a tool that designs computer programs and draws the user interface. 13. A variable declared inside an event procedure is said to have local scope (Points: 2)TrueFalse14. A variable declared outside of an event procedure is said to have class-level scope. (Points: 2)TrueFalse15. Option Explicit requires you to declare every variable before its use. (Points: 2)TrueFalse
16. The value returned by InputBox is a string. (Points: 2)TrueFalse17. What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople (Points: 2)Dim numPeople = Dim numPeople = Int(100) numPeople = 100 Dim numPeople As Integer = 100 18. Which of the following arithmetic operations has the highest level of precedence? (Points: 2)+ - * / ^ exponentiation( ) 19. What value will be assigned to the numeric variable x when the following statement is executed? x = 2 + 3 * 4 (Points: 2)20 14 92 234 20. Which of the following is a valid name for a variable? (Points: 2)Two_One 2One Two One Two.One
50 mins to go
21. Keywords in Visual Basic are words that (Points: 2)should be used when naming variables. are used to name controls, such as TextBox1, Command2, etc. have special meaning and should not be used when naming variables. are used as prefixes for control names (such as txt, btn, lbl, and lst). 22. To continue a long statement on another line, use: (Points: 2)an underscore character. an ampersand character. Ctrl + Enter. a space followed by an underscore character. 23. What is the proper syntax when using a message dialog box? (Points: 2)MessageBox.Show("Hi there", "Hi") MessageBox.Show(Hi there, Hi) MessageBox.Show "Hi There", "Hi" MessageBox.Show Hi There, Hi 24. What will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567) (Points: 2)$1234.567 1,234.57 $1234.57 $1,234.57 25. The following lines of code are correct. If age >= 13 And < 20 Then txtOutput.Text = "You are a teenager." End If (Points: 2)TrueFalse
40 minutes
26. Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE". If (x > y) Or (y > z) Then txtBox.Text = "TRUE" End If (Points: 2)TrueFalse27. Asc("A") is 65. What is Asc("C")? (Points: 2)66 67 68 "C" 28. Asc("A") is 65. What is displayed by txtBox.Text = Chr(65) & "BC"? (Points: 2)ABC A BC 656667 Not enough information is available. 29. Which of the following expressions has as its value the words "Hello World? surrounded by quotation marks? (Points: 2)"Hello World" Chr(34) & "Hello World" Chr(34) & Hello World & Chr(34) Chr(34) & "Hello World" & Chr(34) 30. Which of the following is true? (Points: 2)"Cat" = "cat" "Cat" < "cat" "Cat" > "cat" Relational operators are only valid for numeric values. 31. Which of the following is a valid Visual Basic conditional statement? (Points: 2)2 < n < 5 2 < n Or < 5 2 < n Or 5 (2 < n) Or (n < 5) 32. The three main logical operators are ________, _________, and ________. (Points: 2)And, Or, Not And, Not, If Or, Not, If False, And, True 33. Which value for x would make the following condition true: x >= 5 (Points: 2)x is equal to 7 x is equal to 5 x is equal to 5.001 all of the above 34. Which value for x would make the following condition true: Not (x >= 5) (Points: 2)x is equal to 7 x is equal to 4 x is equal to 5.001 x is equal to 5.001 35. Which value for x would make the following condition true: (x >= 5) And (x <= 6) (Points: 2)x is equal to 7 x is equal to 5 x is equal to 5.001 B and C 36. Constructs in which an If block is contained inside another If block are called: (Points: 2)multi-If blocks nested If blocks sequential If blocks none of the above 37. One may use an If block within a Select Case block. (Points: 2)TrueFalse38. One may use a Select Case block within an If block. (Points: 2)TrueFalse39. Select Case choices are determined by the value of an expression called a selector. (Points: 2)TrueFalse40. Items in the value list must evaluate to a literal of the same type as the selector (Points: 2)TrueFalse
30 minutes
15 minutes left :(
41. A single Case statement can contain multiple values. (Points: 2)TrueFalse42. You can specify a range of values in a Case clause by using the To keyword. (Points: 2)TrueFalse43. A variable declared inside a Select Case block cannot be referred to by code outside of the block. (Points: 2)TrueFalse44. Suppose that the selector in a Select Case block is the string variable myVar. Which of the following is NOT a valid Case clause? (Points: 2)Case "Adams" Case "739" Case (myVar.Substring(0, 1) Case myVar.Length 45. Different items appearing in the same value list of a Select Case block must be separated by a ____________. (Points: 2)semi colon comma colon pair of quotation marks 46. Which Case clause will be true whenever the value of the selector in a Select Case block is between 1 and 5 or is 8? (Points: 2)Case 1 To 8 Case 1 To 5, 8 Case 1 To 8, 5 Case 1 To 5; 8 47. Which Case clause will be true whenever the value of the selector in a Select Case block is greater than or equal to 7? (Points: 2)Case Is >7 Case Is = 8 Case Is >= 7 Case Is <= 8 48. What type of items are valid for use in the value list of a Case clause? (Points: 2)literals variables expressions all of the above 49. What happens to a variable declared locally inside a Sub procedure after the procedure terminates? (Points: 2)It maintains its value even after the End Sub statement executes. It ceases to exist after the End Sub statement executes. It loses its value temporarily after the End Sub statement executes, but regains that value upon re-entry to the Sub procedure. It is reset to its default value. 50. Suppose a variable is passed by reference to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub procedure. What will the value of the variable be after the Sub procedure has executed? (Points: 2)It will have the newly modified value from inside the Sub procedure. Its value can?t be determined without more information. It will retain the value it had before the call to the Sub procedure None of the above. 51. Suppose a variable is passed by value to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub procedure. What will the value of the variable be after the Sub procedure has executed? (Points: 2)It will have the newly modified value from inside the Sub procedure. Its value can?t be determined without more information It will retain the value it had before the call to the Sub procedure None of the above. 52. The declaration statement for a class-level variable should be placed __________. (Points: 2)inside an event procedure inside a general procedure anywhere in the program region, except inside a procedure above the statement Public Class frmName 53. Variables declared inside a procedure are said to have ________________. (Points: 2)local scope procedure-level scope class-level scope none of the above 54. What will be the output of the following program when the button is clicked?Private Sub btnDisplay_Click(...) Handles btnDisplay.ClickDim number As Double = 3DoubleAndSquare(number)txtBox.Text = CStr(number)End SubSub DoubleAndSquare(ByRef myVar As Double)myVar = myVar + myVarmyVar = myVar * myVar (Points: 2)3 36 6 0 55. Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true? (Points: 2)The program will malfunction when it is executed. When the value of myName is changed in one Sub procedure, it will also be changed in the other Sub procedure. Visual Basic's smart editor will alert you that this is an error before the program is executed. The two variables will be local to their respective Sub procedures. 56. Which of the following statements is guaranteed to pass the variable numVar by value to the Sub procedure Tally? (Points: 2)Tally(numVar) Tally(ByVal numVar) Tally((numVar)) Tally(ByVal numVar As Double) 57. The ______________ of a Sub procedure are vehicles for passing numbers and strings to the Sub procedure. (Points: 2)Call Statements arguments parameters variables declared inside 58. Which of the following is NOT a reason for using procedures? (Points: 2)They break a complex problem down into smaller pieces. They make a program run faster. They can be reused easily. They make it possible for a team of people to work together on a single program. 59. Which one of the following is true about arguments and parameters?
(Points: 2)Arguments appear in Call statements; parameters appear in Sub statements. Parameters appear in Call statements; arguments appear in Sub statements. They are synonymous terms.
They are completely unrelated in a program.
60.
What is wrong with the following Call statement and its corresponding Sub statement?
MyProcedure("The Jetsons", 1000, 209.53)
Sub MyProcedure(ByVal var1 As Double, ByVal var2 As Double, _
ByVal var3 As Double)
(Points: 2)It is not valid to pass something like "The Jetsons." Constant values like 1000 cannot be passed, only variables. var1 is not of the same data type as "The Jetsons." Nothing is wrong with them.
10 minutes to go
61. When an End Sub statement is reached in a Sub procedure, execution jumps to (Points: 2)the statement before the Call statement which invoked the Sub procedure. the statement after the Call statement which invoked the Sub procedure. the beginning of the event procedure containing the Call statement the end of the event procedure containing the Call statement. 62. The statement Const TAX_RATE As Doubleface=Calibri size=2> is not valid. (Points: 2)TrueFalse63. Function names should be suggestive of the role performed. The names also must conform to the rules for naming variables. (Points: 2)TrueFalse64. The input to a user-defined function can consist of one or more values. (Points: 2)TrueFalse65. Both the input and output of a Function procedure can consist of several values. (Points: 2)TrueFalse66. Suppose you want to write a procedure that takes three numbers, num1, num2, and num3; and returns their sum, product, and average. It is best to use a Function procedure for this task. (Points: 2)TrueFalse67. Although a function can return a value, it cannot directly display information in a text box. (Points: 2)TrueFalse68. Function procedures can invoke other Function procedures. (Points: 2)TrueFalse69. A Function may return up to two values. (Points: 2)TrueFalse70. The input to a user-defined function can consist of: (Points: 2)a single value one or more values no values All of the above 71. Variables appearing in the header of a Function procedure are called ____________. (Points: 2)values of the function parameters coordinates arguments 72. The arguments appearing in a Call statement must match the parameters in the appropriate Sub or Function header in all but one of the following ways. Which one? (Points: 2)Number of arguments Names of arguments Data type of arguments Order of arguments 73. What will be the output of the following program when the button is clicked?Private Sub btnDisplay_Click(...) Handles btnDisplay.ClickDim word, result As Stringword = "Benjamin"result = Rotate(word)result = Rotate(result & word)result = Rotate(result)txtBox.Text = resultEnd SubFunction Rotate(ByVal var As String) As StringDim varlength As Integervarlength = var.LengthReturn var.Substring(1) & var.Substring(0, 1)End Function (Points: 2)jaminBBenjaminen BenjaminBenjamin njaminBe None of the above 74. What is displayed when the button is clicked?Private Sub btnDisplay_Click(...) Handles btnDisplay.ClickDim a, b as StringDim x as Integera = "How now brown cow."b = "brown"x = FindIt(a, b)txtBox.Text = CStr(x)End SubFunction FindIt(ByVal z1 as String, ByVal z2 as String) As IntegerDim x as Integerx = z1.IndexOf(z2)End Function (Points: 2)"How now" 8 0 An error None of the above 75. A Do While loop checks the While condition before executing the statements in the loop. (Points: 2)TrueFalse76. A Do?Loop Until block is always executed at least once (Points: 2)TrueFalse77. A counter variable is normally incremented or decremented by 1. (Points: 2)TrueFalse78. The value of the control variable should not be altered within the body of a For?Next loop. (Points: 2)TrueFalse79. The body of a For...Next loop in Visual Basic will always be executed once no matter what the initial and terminating values are. (Points: 2)TrueFalse80. The body of a For...Next loop in Visual Basic will always be executed once no matter what the initial and terminating values are. (Points: 2) duplicate question?TrueFalse
3 minutes
You should request all of your time.
81. Which While statement is equivalent to Until num < 100? (Points: 2)While num <= 100 While num > 100 While num >= 100 There is no equivalent While statement. 82. What is wrong with the following Do While loop?Dim index As Integer = 1
Do While index <> 10lstBox.Items.Add("Hello")index += 2 Loop (Points: 2)
It should have been written with a Do Until loop. It is an infinite loop. The test variable should not be changed within the loop itself. Nothing 83. When Visual Basic executes a Do While loop it first checks the truth value of the _________. (Points: 2)pass loop condition statement 84. calculate the sums of numerical values in lists.
(Points: 2)Flags Counters Accumulators Nested loops 85. When the number of repetitions needed for a set of instructions is known before they are executed in a program, the best repetition structure to use is a(n) (Points: 2)Do While...Loop structure. Do...Loop Until structure. For...Next loop If block with a GoTo statement. 86. Suppose the days of the year are numbered from 1 to 365 and January 1 falls on a Tuesday as it did in 2008. What is the correct For statement to use if you want only the numbers for the Thursdays in 2008? (Points: 2)For i As Integer = 3 to 365 Step 7 For i As Integer = 1 to 365 Step 3 For i As Integer = 365 To 1 Step -7 For i As Integer = 3 To 365 Step 6 87. In a For statement of the form shown below, what is the default step value when the "Step c" clause is omitted? For i As Integer = a To b Step c (Points: 2)the same as a the same as b 0 1 88. Both the bubble sort and the Shell sort require the interchanging of values stored in a pair of variables. (Points: 2)TrueFalse89. A binary search works just as effectively on an unordered list (Points: 2)TrueFalse90. A binary search searches an ordered list by successively dividing the list in halves until the item searched for is found or determined to be not present. (Points: 2)TrueFalse
only had time to submit 80 . got 143 out of 200. Thanks a lot
Couldn't you have requested the time they took from you for the technical difficulties?
Experience: MCSD * C# VB C++ .NET * Excel * MS Access * SQL Server * Oracle * Java * Python * Pascal * Alice
91. A structure can contain members that are simple variables only; members cannot be arrays. (Points: 2)TrueFalse92. If you use the ReDim statement to make an array smaller than it was, data in the eliminated elements can be retrieved by using the Preserve keyword. (Points: 2)TrueFalse93. Like other variables, array variables can be declared and assigned initial values at the same time. (Points: 2)TrueFalse94. If the following statement appears in a program, the array score() must have been declared using the String data type. score(1) = 87 (Points: 2)TrueFalse95. Which of following is not true of a sequential search? (Points: 2)The data need not be sorted. It is usually slower than a binary search. It starts either at the top or bottom of the data. It is better than the binary search for large amounts of data. 96. The bubble sort compares (Points: 2)first and last items. items separated by a variable gap. adjacent items. three items at once. 97. What is the value of j after the following code segment has been executed? Dim state(49) As String, j as Integer 'Assume that the data file STATES.TXT contains 'the names of the 50 states of the United States 'in the order they were admitted to the union. Dim sr As IO.StreamReader = IO.File.OpenText("STATES.TXT") j = 0 Do While sr.Peek <> -1 state(j) = sr.ReadLine j += 1 Loop sr.Close() For i As Integer = 0 to state.GetUpperBound(0) lstBox.Items.Add( "State Number " & i + 1 & " is " & state(i)) Next (Points: 2)48 49 50 Unable to determine 98. In the statement Dim score(30) As Double the number 30 designates which of the following? (Points: 2)the highest value of the subscripts of the elements for the array score(). the maximum value that can be assigned to any element in the array score(). the data type for the array score(). the value initially assigned to each element in the array score(). 99. Each individual variable in the list student(0), student(1), student(2) is known as a(n) (Points: 2)subscript dimension element type 100. Which statement is true regarding the following Dim statement?
Dim state(49) As String, population(49) As Double
(Points: 2)It is invalid since more than one array is dimensioned by a single Dim statement. It is invalid since the two arrays must have the same data type. The subscripts of state() range from 1 to 49. The subscripts of population() range from 0 To 49.
Can i contact you later if they allow me to take it again or give me some more minutes or something? Thanks
Absolutely!
70 minutes for 100 questions is simply not possible. I'd be crying, whining, and begging for my entire allotted time!
I posted the last 10 questions. I have to go offline for about an hour now.
I'm back, but wondering how it goes for you and the exam.
I am still waiting for them to answer me.. I will let you know whatever happens. Thanks so much
I'll check the status throughout today, Hopefully they will let you finish the last 20 questions.
no they still didnt reply to my email still waiting on them. I accepted the question . can you close this one? i think its just a duplicate..Thanks