focusNode
Didn't know it?
click below
Knew it?
click below
Embed Code - If you would like this activity on your web page, copy the script below and paste it into
your web page.
Normal Size Small Size show me how
VB Prog Ch 3 Variables, Constants, and Calculations
Arguments | items within parentheses after the name of either a method or a procedure; represents information that the method or procedure needs to perform its task(s) |
Class scope | the scope of a class-level memory location (variable or named constant); refers to the fact that the memory location can be used by any procedure in the form class’s declarations section |
Class-level named constants | a named constant declared in a form class’s declarations section; it has class scope and should be declared using the keywords Private Const |
Class-level variables | a variable declared in a form class’s declarations section; it has class scope and should be declared using the keyword Private |
Const statement | the statement used to create a named constant |
Declaring a memory location | reserving a location in the computer’s main memory for use within an application’s code |
Demoted | the process of converting a value from one data type to another data type that can store only smaller numbers or numbers with less precision |
Dim statement | the statement used to declare procedure-level variables Enter event |
Flowchart | a planning tool that uses standardized symbols to illustrate the steps a procedure must take to accomplish its purpose |
Flowlines | the lines connecting the symbols in a flowchart |
Form class’s declarations section | the area located between the Public Class and End Class clauses in the Code Editor window; class-level memory locations are declared in this section |
Format | specifying the number of decimal places and the special characters to display in a number treated as a string |
Implicit type conversion | the process by which a value is automatically converted to fit the data type of the memory location to which it is assigned |
Input/output symbol | the parallelogram in a flowchart |
Integer division operator | represented by a backslash (\); divides two integers and then returns the quotient as an integer |
Lifetime | indicates how long a variable or named constant remains in the computer’s main memory |
Literal type character | a character (such as the letter D) appended to a literal for the purpose of forcing the literal to assume a different data type (such as Decimal) |
Modulus operator | represented by the keyword Mod; divides two numbers and then returns the remainder of the division |
Named constant | a computer memory location where programmers can store data that cannot be changed during run time |
Private keyword | used to declare class-level memory locations (variables and named constants) |
Procedure scope | the scope of a procedure-level memory location (variable or named constant); refers to the fact that the memory location can be used only by the procedure that declares it |
Procedure-level named constants | named constants declared in a procedure; the constants have procedure scope |
Procedure-level variables | variables declared in a procedure; the variables have procedure scope |
Process symbols | the rectangles in a flowchart |
Promoted | the process of converting a value from one data type to another data type that can store either larger numbers or numbers with greater precision |
Pseudocode | a planning tool that uses phrases to describe the steps a procedure must take to accomplish its purpose |
RAM | random access memory |
Random access memory | the main memory of a computer |
Scope | indicates where a memory location (variable or named constant) can be used in an application’s code |
SelectAll method | used to select all of the text contained in a text box |
Start/stop symbol | the ovals in a flowchart |
Static keyword | used to declare a static variable |
Static variable | a procedure-level variable that remains in main memory and also retains its value until the application (rather than its declaring procedure) ends |
String | a sequence of characters (numbers, letters, special characters, and so on) |
String.Empty | the value that represents the empty string in Visual Basic |
TextChanged event | occurs each time the value in a control’s Text property changes |
ToString method | formats a copy of a number and returns the result as a string |
TryParse method | used to convert a string to a specified numeric data type |
Variable | a computer memory location where programmers can temporarily store data, as well as change the data, during run time |
When a value is converted from one data type to another data type that can store larger numbers the value is said to be ____?
After declaring a named constant, you can refer to that constant using its name later in the program. When a value is converted from one data type to another data type that can store larger numbers, that value is said to be demoted.
Which of the following is a computer memory location whose value does not change during run time?
A constant is a data item whose value cannot change during the program's execution.
What is the primary difference between a variable and a named constant in C++?
Simply put, a variable is a value that is changing or that have the ability to change. A constant is a value which remains unchanged. For example, if you have a program that has a list of 10 radii and you want to calculate the area for all of these circles.
Which type of structure makes a decision based on one or more conditions?
Which type of structure makes a decision based on one or more conditions? The selection structure is also referred to as an iteration.