#### Details of this Paper

##### vbquestions

Description

solution

Question

;;Question 1 (1 point);The following statement will declare an array that has ____ elements. Dim lakes(5) As Integer;Question 1 options;four;five;six;seven;Question 2 (1 point);You do not need to specify the highest array subscript in the ____ statement.;Question 2 options;Do...Loop;For...Next;For Each...Next;While...Wend;Question 3 (1 point);The data used to initialize the elements of an array is enclosed in ____.;Question 3 options;[ ];{ };();;Question 4 (1 point);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;1;2;3;4;Question 5 (1 point);Assigning initial values to an array is often referred to as ____.;Question 5 options;sorting the array;populating the array;assigning the array;declaring the array;Question 6 (1 point);Using an invalid subscript will result in a ____.;Question 6 options;run time error;breakpoint;logic error;design-time error;Question 7 (1 point);The statement ____ assigns the string 'Madrid' to the first element in the strCities array.;Question 7 options;strCities(0) = Madrid;strCities(0) = 'Madrid;strCities(1) = Madrid;strCities(0) = {Madrid};Question 8 (1 point);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;4;6;8;12;Question 9 (1 point);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;9;25;75;90;Question 10 (1 point);Which of the following correctly shows the syntax for storing data in a one-dimensional array?;Question 10 options;arrayname = value;arrayname(subscript) = value;arrayname = {value};arrayname(subscript) = {value};Question 11 (1 point);The following statement will declare an array. What is the index value for the first element? Dim lakes(5);Question 11 options;0;1;4;5;Question 12 (1 point);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;9;25;75;90

Paper#69194 | Written in 18-Jul-2015

Price : \$37