CPT187Test2 Flashcards
(153 cards)
_______ is an arithmetic operation.
division, addition, multiplication
The Decimal data type can represent __________
dollar amounts, very precise decimal numbers, large numbers
A _____ can be represented by using the Char data type.
letter, punctuation symbol, symbol
The prefix ______ should be used for naming a TextBox object.
txt
The event handler of a button designated as the Cancel button will be processed when the user presses the ______ key on the keyboard.
ESC
Where is a variable stored and what is it?
A variable is a named location in RAM where data is stored.
What data types have one byte?
byte
What data types have 2 bytes?
char, short, Boolean
What data types have 4 bytes?
integer, object and single
what data types have 8 bytes?
Double, Date, Long
What data type occupy 16 bytes?
Decimal
abbr for String
str
abbr for Integer
int
abbr for Decimal
dec
abbr for Double
dbl
abbr for Char
chr
abbr for Boolean
bln
abbr for Byte
byt
abbr for Date
dtm
abbr for Long
lng
abbr for Short
shr
abbr for Single
sng
What are the prefixes for each object?
TextBox object and MaskedTextBox object, txt
What is the difference between the accept, cancel, and focus and what do they do?
When the focus is on a TextBox object, the insertion point is located in the text box. The Focus procedure does this automatically without requiring the user to click in the box. The statement looks like this: txtNumberOfDownloads.Focus()
You can assign a button in the user interface to be an Accept button, which means the program will carry out the event handler processing associated with the button if the user clicks the button or presses the ENTER key.
You can also do the same with the Cancel button.