Flashcards
CSCI 1302 Test 2
Cards in this deck (16)
- 1SubscriptIndex Ex: Array index
- 2ArrayFixed-size data structure that can store a sequential collection of values, all the same type
- 3Assignment Operator"=" equal sign that initializes it
- 4ElementOne value in an array
- 5Control VariableMainly used in "for loop" to control how many times a loop executes
- 6ScopePart of the program where it may be accessed by name
- 7Pre-test LoopWill be a "while" loop
- 8Post-Test LoopWill be a "do-while" loop
- 9Equality OperatorUsed to compare objects (ints, chars, doubles) using "==". For strings you use ".equals" or ".equalsIgnoreCase"
- 10Logical "AND" operatorDenoted as "&&" both sides of the expression must be true in order for the entire expression to be true
- 11Logical "OR" operatorOnly one side of the expression must be true in order for the entire boolean expression to be true, denoted with "| |"
- 12Logical "NOT" operatorReverses the truth of a boolean expressions denoted with "!"
- 13IterationBasically loops and repetition
- 14IF Statementif(boolean expression) is true then the following statement afterwards executes. if false it skips over the following statement
- 15IF ElSE StatementSame as the IF Statement only in this instance if the expression is false, than the statements in the ELSE block will execute instead.
- 16Boolean ExpressionsAn expression that, when evaluated, returns a boolean value of true or false value