21 Aug Vbquestions
Question 1 (1 point)
The following statement will declare an array that has ____ elements. Dim lakes(5) As Integer
Question 1 options:
| [removed] | four |
| [removed] | five |
| [removed] | six |
| [removed] | seven |
You do not need to specify the highest array subscript in the ____ statement.
Question 2 options:
| [removed] | Do…Loop |
| [removed] | For…Next |
| [removed] | For Each…Next |
| [removed] | While…Wend |
The data used to initialize the elements of an array is enclosed in ____.
Question 3 options:
| [removed] | [ ] |
| [removed] | { } |
| [removed] | ( ) |
| [removed] | ‘ ‘ |
An array called state() is loaded as follows: Dim state() As String = {‘Ohio’, ‘Michigan’, ‘California’, ‘Arizona’} What is the value of the subscript used to reference ‘Arizona’?
Question 4 options:
| [removed] | 1 |
| [removed] | 2 |
| [removed] | 3 |
| [removed] | 4 |
Assigning initial values to an array is often referred to as ____.
Question 5 options:
| [removed] | sorting the array |
| [removed] | populating the array |
| [removed] | assigning the array |
| [removed] | declaring the array |
Using an invalid subscript will result in a ____.
Question 6 options:
| [removed] | run time error |
| [removed] | breakpoint |
| [removed] | logic error |
| [removed] | design-time error |
The statement ____ assigns the string ‘Madrid’ to the first element in the strCities array.
Question 7 options:
| [removed] | strCities(0) = Madrid |
| [removed] | strCities(0) = ‘Madrid’ |
| [removed] | strCities(1) = Madrid |
| [removed] | strCities(0) = {Madrid} |
Consider the following array: Dim numbers(,) As Integer = {1,2},{3,4},{4,5},{6,7},{8,9} What value will the following expression yield for total? total = numbers(1,1) + numbers(2,0)
Question 8 options:
| [removed] | 4 |
| [removed] | 6 |
| [removed] | 8 |
| [removed] | 12 |
Based on the code below, intScores(1, 1) is initialized to ____. Dim intScores(,) As Integer = {75, 90}, {9, 25}, {23, 56}, {6, 12}
Question 9 options:
| [removed] | 9 |
| [removed] | 25 |
| [removed] | 75 |
| [removed] | 90 |
Which of the following correctly shows the syntax for storing data in a one-dimensional array?
Question 10 options:
| [removed] | arrayname = value |
| [removed] | arrayname(subscript) = value |
| [removed] | arrayname = {value} |
| [removed] | arrayname(subscript) = {value} |
The following statement will declare an array. What is the index value for the first element? Dim lakes(5)
Question 11 options:
| [removed] | 0 |
| [removed] | 1 |
| [removed] | 4 |
| [removed] | 5 |
Based on the code below, intScores(0, 0) is initialized to ____. Dim intScores(,) As Integer = {75, 90}, {9, 25}, {23, 56}, {6, 12}
Question 12 options:
| [removed] | 9 |
| [removed] | 25 |
| [removed] | 75 |
| [removed] | 90 |
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
