Docsity

Array and Timer Controls in Visual Basic: Terms and Definitions, Quizzes of Computer Science

Toggle sidebar
bg1
TERM 1
Array
DEFINITION 1
like a group of variables that have the same name and data
type and are related in some way.Dim intArray(
highestSubscript ) As Integer
TERM 2
elements
DEFINITION 2
values stored within an arrayYou can refer to an array
element by intArray(2)that would be element 2 in intArray.
TERM 3
Subscript/Index
DEFINITION 3
A number that identifies a specific element within an array.
TERM 4
Simple variable
DEFINITION 4
AKA scalar variable is one that is unrelated to any other
variable in memory.
TERM 5
one-dimensional array
DEFINITION 5
simply a row or column of variables
pf3
pf4

Partial preview of the text

Download Array and Timer Controls in Visual Basic: Terms and Definitions and more Quizzes Computer Science in PDF only on Docsity!

Array

like a group of variables that have the same name and data type and are related in some way.Dim intArray( highestSubscript ) As Integer TERM 2

elements

DEFINITION 2 values stored within an arrayYou can refer to an array element by intArray(2)that would be element 2 in intArray. TERM 3

Subscript/Index

DEFINITION 3 A number that identifies a specific element within an array. TERM 4

Simple variable

DEFINITION 4 AKA scalar variable is one that is unrelated to any other variable in memory. TERM 5

one-dimensional array

DEFINITION 5 simply a row or column of variables

two-dimensional array

resembles a table in that it has rows and columns TERM 7

Declaring an array

DEFINITION 7 Version 1 = accessibility arrayname(highestSubscript) As datatypeVersion 2 = accessibility arrayname() As datatype = {initialValues} TERM 8

Array bounds checking

DEFINITION 8 Visual Basic does not allow a statement to use a subscript outside the range of valid subscripts for an array. TERM 9

For Each Loop

DEFINITION 9 A special loop designed specifically to access values from arrays and array-like structuresFor Each var As type In arraystatementsNext TERM 10

sequential

search

DEFINITION 10 Uses a loop to examine the elements in an array, one after the other, starting with the first.

Timer control

Allows an application to automatically execute code at regular time intervals.