1/19
Vocabulary flashcards covering key terms from the Visual Logic notes on arithmetic expressions, operators, and intrinsic functions.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
PEMDAS (Order of Operations)
The rule for evaluating expressions: Parentheses, Exponents, Multiplication & Division (left-to-right), Addition & Subtraction (left-to-right).
Parentheses
Grouping symbols that change the order of operations when evaluating expressions.
Exponentiation
Raising a number to a power; symbol ^; example 2^3 = 8.
Multiplication (*)
Arithmetic operation denoted by *; evaluated left-to-right with Division.
Division (/)
Arithmetic operation denoted by /; evaluated left-to-right with Multiplication.
Integer Division (backslash)
Operator that performs division and discards the remainder, yielding an integer quotient (e.g., 5 divided by 2 using integer division yields 2).
Integer Remainder (Mod)
Operator that returns the remainder after division (e.g., 5 Mod 2 = 1).
Addition (+)
Arithmetic addition operator; example 2+15=17.
Subtraction (-)
Arithmetic subtraction operator; example 7-4=3.
Output Statement
Visual Logic command used to display information; uses the Output keyword and a parallelogram; strings appear exactly as typed inside quotes; expressions evaluate to a value; concatenation uses the & operator.
Concatenation Operator (&)
Operator that joins strings, variables, and expressions into one output expression.
FormatCurrency
Intrinsic function that formats numbers as currency with a dollar sign and thousands separators.
FormatPercent
Intrinsic function that formats a decimal as a percentage (e.g., 0.0625 → 6.25%).
Abs
Intrinsic function that returns the absolute value of a number (e.g., Abs(-3.3) = 3.3).
Int
Intrinsic function that truncates a real number to its integer part (e.g., Int(3.8) = 3).
Round
Intrinsic function that rounds a real number to the nearest integer (e.g., Round(3.8) = 4, Round(7.1) = 7).
Random
Intrinsic function that returns a random integer in a specified range (e.g., Random(5) yields 0 to 4).
Input Dialog
UI prompt used to obtain user input (e.g., 'Please type a value for CENTS:').
String Literal
Text enclosed in quotes; used in programming to represent strings (e.g., 'Hello World').
Average Formula
Compute the average of three numbers as (Num1+Num2+Num3)/3.