Exam 8: Arrays and More
Exam 1: Introduction to Programming and Visual Basic40 Questions
Exam 2: Creating Applications With Visual Basic36 Questions
Exam 3: Variables and Calculations41 Questions
Exam 4: Making Decisions39 Questions
Exam 5: Lists and Loops36 Questions
Exam 6: Procedures and Functions31 Questions
Exam 7: Multiple Forms, Modules, and Menus35 Questions
Exam 8: Arrays and More34 Questions
Exam 9: Files, Printing, and Structure36 Questions
Exam 10: Working With Databases32 Questions
Exam 11: Developing Web Applications33 Questions
Exam 12: Classes, Collections, and Inheritance36 Questions
Select questions type
Values in an array are stored and worked with using a __________.
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
C
Which of the following statements sorts an array named intValues?
Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
D
Which of the following code segments is the correct solution for the following problem? Find the first occurrence of the value "Joe" in the array strNames. Save the index of the element containing "Joe" in a variable named intPosition. Discontinue searching the array once the first occurrence of the element "Joe" has been located. Assume any variables you need are already defined.
Free
(Multiple Choice)
4.8/5
(47)
Correct Answer:
C
Which of the following code segments displays each element in an Integer array named intValues without using an index to reference the items in the array.
(Multiple Choice)
4.8/5
(31)
Which statement is the best solution for the following problem? Write a statement that initializes a two-dimensional array of Integers named intGrades. The array will have 2 rows, with 93, 91, and 84 in the first row and 85, 89, and 91 in the second row.
(Multiple Choice)
4.9/5
(30)
Which of the following could be used to iterate through each element of a two-dimensional array.
(Multiple Choice)
4.9/5
(42)
Parallel arrays have all of the following characteristics, except __________.
(Multiple Choice)
4.7/5
(37)
Which of the following statements defines a two-dimensional Integer array named intTwoDArray with 6 rows and 4 columns?
(Multiple Choice)
4.8/5
(41)
Which of the following is the correct definition for a procedure that accepts a String array as an argument?
(Multiple Choice)
4.9/5
(27)
Which of the following declares an array to contain the weekly sales of a group of salespeople for a year? (use the constant intNumSalesmen for the number of salesmen and 52 for the number of weeks)
(Multiple Choice)
4.8/5
(36)
Which of the following allows an application to automatically execute code at regular time intervals?
(Multiple Choice)
4.9/5
(29)
This property of a control allows it be positioned a specified distance from the outside edge of the form.
(Multiple Choice)
4.8/5
(30)
When changing the number of elements in an array at run-time with the ReDim statement, existing values in the array are destroyed unless the ______keyword is used.
(Multiple Choice)
4.7/5
(35)
Which type of loop is designed specifically to use a subscript to access the elements of an array?
(Multiple Choice)
4.9/5
(28)
Which of the following provides the index of the highest numbered element of the array strNames?
(Multiple Choice)
4.8/5
(30)
What value should be placed in a Timer control's Interval property to trigger a Tick event every 10 seconds?
(Multiple Choice)
4.9/5
(47)
Assume that an integer array named intValues contains intNUM elements. Which of the following code segments most efficiently finds the largest element in the array and displays it in a label named lblMaxValue? Assume that values have already been inserted into the array.
(Multiple Choice)
4.8/5
(35)
The following statements apply to a Timer control, except _____________.
(Multiple Choice)
4.8/5
(39)
What task is accomplished by the following code? Dim intFirstArray(2) As Integer
Dim intSecondArray(2) As Integer
IntFirstArray(0) = 10
IntFirstArray(1) = 19
IntFirstArray(2) = 26
IntSecondArray = intFirstArray
(Multiple Choice)
4.8/5
(37)
Which of the following code segments sets all elements of the array strStudentNames to the value NONE?
(Multiple Choice)
4.8/5
(27)
Showing 1 - 20 of 34
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)