Java Games: Flashcards, matching, concentration, and word search.

Tutorial 3A Word Review

Creating Variables and Constants

AB
variablesmemory locations where data can be stored
variable datacan be processed 10 to 20 times faster than data stored in the property of an object
bytestores binary numbers
Booleanstores logical values
currencystores numbers with up to 15 digits to the left of the decimal and 4 digits to the right of the decimal
doublestores floating-point numbers
longstores integers
stringstores text information
variantstores any of the other data types
floating-point numbera number expressed as a multiple of some power of 10
dblthree-character id for double
lngthree-character id for long
sngthree-character id for single
vntthree-character id for variant
255 characterslimit on the lenght of a variable name
reserved wordcannot be used as a variable name because it has special meaning in Visual Basic
Dim statementused to declare a local variable
Public statementused to declare a global variable
initializinggiving a variable a beginning value
literal constantan item of data whose value does not change while the program is running
symbolic constantsmemory locations whose contents cannot be changed while the program is running
scopeindicates which procedures in the application can use the variable
local variableits use is limited to only the procedure in which it is declared
form-level variableremains in memory until the application ends
global variableare used in applications containing multiple forms and remain in memory until the application ends
Option Explicitused to prevent you from using undeclared variables in your code
code modulea separate file added to your application that contains code
Consta statement in Visual Basic used to create a symbolic constant


Mr. EAK

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities