Programming Logic Exam 1 Latest
Update
Precision Specifier - ANSWER-Controls the number of significant digits or zeros to
the right of the decimal point.
Culture - ANSWER-A set of rules that determines how culturally dependent values
such as money and dates are formatted.
Arithmetic Operators - ANSWER-Used to perform arithmetic.
Operands - ANSWER-The values that operators use in expressions.
Binary Operators - ANSWER-One value to the left of the operator and another value
to the right of it.
Operator Precedence / Order of Operation - ANSWER-Determines the order in
which parts of a mathematical expression are evaluated.
Associativity - ANSWER-The order in which a sequence of operations with the same
precedence are evaluated.
Add and Assign Operator - ANSWER-(+=) Adds the operand on the right to the
operand on the left and assigns the result to the operand on the left in one step.
Prefix Increment Operator - ANSWER-(++ before a variable) increases the variable's
value by 1 and then evaluates it.
Postfix Increment Operator - ANSWER-(++ after a variable) evaluates a variable and
then adds 1 to it.
Unary Operators - ANSWER-Used with one operand.
Decrement Operator - ANSWER-(--) Reduces a variable's value by 1. There is a
prefix and a postfix version.
Boolean Variable - ANSWER-Can only hold one of two values: true or false.
Bool - ANSWER-A data type that holds a Boolean Value.
Comparison Operator - ANSWER-Compares two items; an expression containing a
comparison operator has a Boolean value.
Unifying Type - ANSWER-Chosen for an arithmetic result when operands are of
dissimilar types.
, Type Precedence - ANSWER-A hierarchy of data types used to determine the
unifying type in arithmetic expressions containing dissimilar data types.
Implicit Conversion / Cast - ANSWER-The automatic transformation that occurs
when a value is assigned to a type with higher precedence.
Explicit Cast - ANSWER-Purposefully assigns a value to a different data type; it
involves placing the desired result type in parentheses followed by the variable or
constant to be cast.
Char - ANSWER-The data type that can hold any single character; a literal character
is contained between single quotation marks.
Escape Sequence - ANSWER-Two symbols beginning with a backslash that
represent a non-printable character such as a tab.
Hexadecimal / Base 16 - ANSWER-A Mathematical system that uses 16 symbols to
represent numbers.
String - ANSWER-The data type that is used to hold a series of characters.
Immutable - ANSWER-Unchangable objects that refer to a new memory location
when a new value is assigned.
Named Constant - ANSWER-An identifier whose value must be assigned upon
declaration and whose contents cannot change.
Enumeration - ANSWER-A set of constants represented by identifiers.
Type-Safe - ANSWER-A data type for which only appropriate behaviors are allowed.
Interactive Program - ANSWER-Allows user input.
Prompt - ANSWER-An instruction to the user to enter data.
Parse - ANSWER-To break an item into components.
Interface - ANSWER-The environment a user sees when a program executes.
Forms - ANSWER-GUI objects that provide an interface for collecting, displaying,
and delivering information.
Controls - ANSWER-Devices such as labels, text boxes, and buttons that users can
manipulate to communicate with a GUI program.
Node - ANSWER-An icon that appears beside a list or a section of code and that can
be expanded or condensed.
Access Specifier - ANSWER-A keyword that dictates what outside classes can use a
method.
Update
Precision Specifier - ANSWER-Controls the number of significant digits or zeros to
the right of the decimal point.
Culture - ANSWER-A set of rules that determines how culturally dependent values
such as money and dates are formatted.
Arithmetic Operators - ANSWER-Used to perform arithmetic.
Operands - ANSWER-The values that operators use in expressions.
Binary Operators - ANSWER-One value to the left of the operator and another value
to the right of it.
Operator Precedence / Order of Operation - ANSWER-Determines the order in
which parts of a mathematical expression are evaluated.
Associativity - ANSWER-The order in which a sequence of operations with the same
precedence are evaluated.
Add and Assign Operator - ANSWER-(+=) Adds the operand on the right to the
operand on the left and assigns the result to the operand on the left in one step.
Prefix Increment Operator - ANSWER-(++ before a variable) increases the variable's
value by 1 and then evaluates it.
Postfix Increment Operator - ANSWER-(++ after a variable) evaluates a variable and
then adds 1 to it.
Unary Operators - ANSWER-Used with one operand.
Decrement Operator - ANSWER-(--) Reduces a variable's value by 1. There is a
prefix and a postfix version.
Boolean Variable - ANSWER-Can only hold one of two values: true or false.
Bool - ANSWER-A data type that holds a Boolean Value.
Comparison Operator - ANSWER-Compares two items; an expression containing a
comparison operator has a Boolean value.
Unifying Type - ANSWER-Chosen for an arithmetic result when operands are of
dissimilar types.
, Type Precedence - ANSWER-A hierarchy of data types used to determine the
unifying type in arithmetic expressions containing dissimilar data types.
Implicit Conversion / Cast - ANSWER-The automatic transformation that occurs
when a value is assigned to a type with higher precedence.
Explicit Cast - ANSWER-Purposefully assigns a value to a different data type; it
involves placing the desired result type in parentheses followed by the variable or
constant to be cast.
Char - ANSWER-The data type that can hold any single character; a literal character
is contained between single quotation marks.
Escape Sequence - ANSWER-Two symbols beginning with a backslash that
represent a non-printable character such as a tab.
Hexadecimal / Base 16 - ANSWER-A Mathematical system that uses 16 symbols to
represent numbers.
String - ANSWER-The data type that is used to hold a series of characters.
Immutable - ANSWER-Unchangable objects that refer to a new memory location
when a new value is assigned.
Named Constant - ANSWER-An identifier whose value must be assigned upon
declaration and whose contents cannot change.
Enumeration - ANSWER-A set of constants represented by identifiers.
Type-Safe - ANSWER-A data type for which only appropriate behaviors are allowed.
Interactive Program - ANSWER-Allows user input.
Prompt - ANSWER-An instruction to the user to enter data.
Parse - ANSWER-To break an item into components.
Interface - ANSWER-The environment a user sees when a program executes.
Forms - ANSWER-GUI objects that provide an interface for collecting, displaying,
and delivering information.
Controls - ANSWER-Devices such as labels, text boxes, and buttons that users can
manipulate to communicate with a GUI program.
Node - ANSWER-An icon that appears beside a list or a section of code and that can
be expanded or condensed.
Access Specifier - ANSWER-A keyword that dictates what outside classes can use a
method.