Boolean Variable: A variable that can be changed between true and false, true or false
String: A series of characters that do not have numberical data but are a value, "I'm smarrttt!"
Method: The operations that an object is capable of performing,
import System.Globalization: Contains definitions for numberStyles and NumberFormatInfo, age = 35s
Operators: mathmatical symbols used in calculations, +-*/
Procedure Scope: The scope of the use of the variable in the procedure,Button click is event procedure.
Block scope: The scope of block-level variables, which can be used only within the statement block in which they are declared, If...Then....Else
Option Strict: strings will not be implicity converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
Identifier: The name of an object, nameTextBoxLiteral
Constant: An item of data whose value does not change while an application is running, tax rate.
TryParse Method: Used to convert a string to a number. 4 to int 4.
Convert Class: This class contains methods that return the result of converting a value to a specified data type, float to int.
Scope: Indicates where a variable can be used in the application's code, int.money can not be used in order form section.
Comments: Used to document a program internally; created using the apostrophe. 'Read this comment.
Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same through out.
Pseudocode: Uses prhases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.
DIM: A method to declare a variable in Visual Basic. Ex. Dim incomeValueLiteral Type
Character: a character used to convert a literal constant to data type.
Line Continuation Character: An underscore, which must be preceded by a space; used to break up a long instruction into two or more physical lines in the Code Editor window.
Precedence Numbers: Indicate the order in which the computer performs an operation (such as an arithmetic operation) in an expression.
Lifetime: Indicates how long a variable remains in the computer in the computer’s internal memory.
Module Scope: Refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.Option Explicit: Disables implicit declaration of variables.
Empty String: A set of quotation marks with nothing between them. ""
Questions:
How do you name a variable and provide one example.
-You can name it in a way that it doesn’t conflict with other commands. (no spaces or special characters) EX: yellowBoards
How do you declare a variable and provide one example.
-You can declare a variable by using the DIM command. EX: Dim yellowBoards As Integer
What is the difference between DIM and Const?
-Dim is a variable that can be changed, while Const is a variable that is only named once and it stays the same. EX: Const TaxtRate As Decimal = 0.06D
How do you include a mathematical expression in assignment statements?
-you use variables. totalSkate= yellowBoards + blueBoards
How do you clear the text property when application is running?
-you use the clear function. yellowTextBox.Clear()
How do you format a number for output as a string?
-You use the convert.Tostring function. EX: totalBoardsLabel.Text = Convert.ToString(totalSkateBoards)
Thursday, February 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment