Shared Flashcard Set

Details

Quiz 6 - Chapter 4
Chapter 4
47
Computer Science
Undergraduate 3
10/28/2014

Additional Computer Science Flashcards

 


 

Cards

Term
Term: Allows user to enter data into a program
Definition
Textbox object
Term
What is the prefix for a textbox?
Definition
txt
Term
How large should a textbox be?
Definition
Large enough to fit the largest input
Term
When dragged, __ snap lines indicate the bottom of texts are aligned
Definition
Red
Term
Term: Determines where text is displayed in a text box
Definition
TextAlign property
Term
How can you write more than one line in a text box?
Definition
Select the action tag and check multiline box
Term
Term: Allows for specification of data format in a text box
Definition
Masked Textbox Object
Term
How can you specify the data format on a masked textbox object?
Definition
Selecting the Action tag and the Set Mask command
Term
Term: Designates a button as an accept button
Definition
AcceptButton property
Term
Where can you find the AcceptButton and CancelButton properties?
Definition
Properties window when the form is selected
Term
Term: Designates a button as a cancel button
Definition
CancelButton property
Term
What should a cancel button on a form be used for?
Definition
The user can press esc to clear the text boxes and place the insertion point in the designated area
Term
Term: Type of variable used for values that a user enters into a text box; can be any character
Definition
String variable
Term
Term: Named location in RAM where data is stored
Definition
Variable
Term
How does one declare a string variable?
Definition
"Dim strVariableName As String"
Term
What do VS's green squiggles under a variable declaration mean?
Definition
The variable has not yet been used
Term
What are the three types of numeric data types?
Definition
Integer, decimal, and double
Term
Term: Literally the value required by a statement
Definition
Literals
Term
How can a data type be forced?
Definition
Using a special character @ end of value (I, D, R, C)
Term
Term: Contains one permanent value throughout an execution of a program
Definition
Constant
Term
Term: Process of joining two different values into a single string
Definition
Concatenation
Term
How much memory is used for an integer data type?
Definition
4B
Term
How much memory is used for a decimal data type?
Definition
16B
Term
How much memory is used for a double data type?
Definition
8B
Term
How much memory is used for a char (unicode) data type?
Definition
2B
Term
How much memory is used for a boolean data type?
Definition
2B
Term
How much memory is used for a byte data type?
Definition
1B
Term
How much memory is used for a date data type?
Definition
8B
Term
How much memory is used for an object data type?
Definition
4B
Term
How much memory is used for a short data type?
Definition
2B
Term
How much memory is used for a single data type?
Definition
4B
Term
Term: Contains one permanent value throughout execution of a program
Definition
Constant
Term
What happens if you try to change a constant in your program coding?
Definition
Build error
Term
Term: Literally the value type in the assignment statement
Definition
Literal
Term
How can you force a data type?
Definition
Adding a special character (D, R, C)
Term
What does the Option Strict programming code do?
Definition
Disables automatic conversion of data types
Term
Can you use the clear command on a label?
Definition
No, you must declare 'lblLabel.Text = ""
Term
Term: Specifies where a variable can be referenced
Definition
Scope of a variable
Term
Term: Variable that can only be referenced within a sub procedure
Definition
Local variable
Term
Term: Variable that can be referenced anywhere within a program
Definition
Global variable
Term
What is the lifetime of a variable?
Definition
The scope it can be referenced

Limited if local
Term
What button will run the program?
Definition
F5
Term
What button(s) will stop debugging the program?
Definition
Shift + F5
Term
How could you force a label to have an $ Amount?
Definition
lblLabel.Text = "$" & cdecPricePerDownload.ToString("C")
Term
How can you restrict the number of digits to the right of the decimal?
Definition
lblLabel.Text = cdecPricePerDownload.ToString("C2")
Term
Term: Runtime error in which input entered is wrong kind
Definition
Format Exception
Term
Term: Runtime error in which user enters a larger input than program can process
Definition
Overflow exception
Supporting users have an ad free experience!