Processing Data Flashcards
simple codes used in conjunction with a backslash to format program output
escape sequence
symbols used for comparing data values in order to create information out of raw data: >, <, >=, <=, ==, and !=
comparison operators
ternary operator; efficient tool used to perform if-then-else logical decisions
conditional operator
You are creating a conditional statement in a Java program. Which symbol would you use to construct the evaluation part of the statement?
colon (:)
You are creating a program to print the text “Hello World!” on paper. Why do you need to include an escape sequence?
Double quotes are used to assign string values.
What enables programmers to create a complex if-then-else decision statement using one concise line of code.
Java’s conditional
It is important to remember that the result of any calculation performed is useless to a program unless the results of your conditional operator are assigned to a
variable
How is using \” and using \b similar in a Java program?
Both are escape sequences.
Which of the following is not a valid escape sequence?
==
Which escape sequence produces a bell that make a noise if sent to an output device such as speakers?
\u0007
the prescribed order, included in the instruction set, in which the ALU processes mathematical operations
Order of Operations
the equal sign; used to place data values into variables
assignment operator
acronym depicting the mathematical Order of Operations in Java programming: parentheses, exponentiation, multiplication, division, modulus, addition, and subtraction
PEMDMAS
a group of operators that perform a calculation and an assignment at the same time
compound assignment operators
Which primitive data type is described by the range -32,768 to 32,767?
short