Content Frame
Note for screen reader users: There is text between the form elements on this page. To be sure that you do not miss any text, use item by item navigation methods, rather than tabbing from form element to form element
[Skip Breadcrumb Navigation]
Home  arrow Student Resources  arrow Chapter Quizzes  arrow Chapter 8

Chapter 8
Chapter 8 Quiz: Arrays, Timers, and More

This activity contains 10 questions.

Question 1
1
Open Hint for Question 1 in a new window
Which are characteristics of an Array?

i. An array stores multiple values of the same using one name.

ii. Values stored within an array are called elements.

iii. Arrays utilize indexes to identify a specific element within the array.

iv. If n is the number of elements within an array, the subscript of the first element in the array would be 0 and the subscript of the last element in the array would be n-1.

 
End of Question 1


Question 2
2 In the declaration: Dim studentID(10) As Integer the number 10 refers to:
 
End of Question 2


Question 3
3 Assigning an integer to a variable, and then using that variable as a subscript to an array, allows you to utilize a ____________ to access each element of the array.
 
End of Question 3


Question 4
4 A special loop designed specifically to access values from arrays is:
 
End of Question 4


Question 5
5 If an array is declared with the following syntax: Dim studentID(10) As Integer the number statement studentID.Length will return a value of:
 
End of Question 5


Question 6
6 What would the following snippet of code using an array named intValue of 50 integer values accomplish? Dim temp as integer Dim i as integer, j as integer
For i  =  0 to (intValue.Length – 2)
	For j = (i + 1) to (intValue.Length-1)
	   If intValue(i) < intValue(j) Then
		temp =  intValue(i)
		intValue(i) = intValue(j)
		intValue(j) = temp
         End If
 	Next j
Next i
 
End of Question 6


Question 7
7
Open Hint for Question 7 in a new window
Which statements about arrays are true?

i. The word Preserve is optional, and when used with a ReDim statement makes sure that any existing values within the array are not destroyed.

ii. A ReDim statement redefines the dimension of an existing array

iii. A ReDim statement is used when the number of elements an array will contain is known at design time.

iv. The statement Dim intValue() as Integer is incorrect syntax because the array size is missing.

 
End of Question 7


Question 8
8 To pass an array to a sub procedure or function, the parameter variable is declared as an array with
 
End of Question 8


Question 9
9 In the multidimensional array declaration Dim intValues(4, 14) as Integer the number 15 stands for:
 
End of Question 9


Question 10
10
Open Hint for Question 10 in a new window
Which statements are true about Timer Controls?

i. A Timer Control is used to automatically execute code at regular intervals during the run of an application.

ii. A Timer Control responds to a Tick Event. To generate a Tick Event, double click a Timer Control that has been placed within a form.

iii. A Timer Control has three important properties; Enable, Visible, and Interval.

iv. The Interval property works in milliseconds; therefore if the property is set to 100, the interval will restart every second.

 
End of Question 10






Answer choices in this exercise appear in a different order each time the page is loaded.




Copyright © 1995-2008, Pearson Education, Inc., publishing as Pearson Addison Wesley
Legal and Privacy Terms
Pearson Education

[Return to the Top of this Page]