Programming – Expressions, Flowcharts, Control Structures Flashcards
what type Operators CHARACTER are these?
+ - * /
arithmetic
- addtion -subtraction - multiplcation - divsion
Operators character:
<= >= = <>
hint: relational math
relational operators
in computer programming
Logical, results for instrctions are:
Ture or False And, Or, Not
Operators Precedence
When expressions contain operators from more than one category, usually _______ _______are evaluated first, comparison __________ are evaluated next, and _______ ________ are evaluated last.
arithmetic operators - comparison operators- logical operators are evaluated last.
+
ADD
-
SUBTRACT
*
MULTIPLE
/
DIVIDE
<
less-than sign
>
GREATER THAN
<=
means “less than or equal to”
if “n” is “0” or anything lower, the condition will be true
>=
greater than or equal to’ and are commonly used in algebra. In computer applications <= and >= are used.
==
Checks if the values of two operands are equal or not,
if yes then condition becomes true.
Operators Precedence when a script runs?
usually arithmetic operators are evaluated first, comparison operators are evaluated next, and logical operators are evaluated last.
____________’s can be a combination of them with operators is called an expression.
varibles
Expressions NAME 3?
A Literal, a variable, a symbolic constant,
Expressions NAME 3 TYPES?
Arithmetic Relational Logical
Arithmetic Expression:
a number, a variable, or combination of
Relational Expression:
hint 4 == 4
Combination of two arithmetic expressions with a relational operator.
CONDITONAL STATEMENTS ability to test variables angainst value act in one way if the condtion is what?
met by the variable or another way if not.
Logical Expression:
(A = B) And (A > C+2) (A > C + A / B * 2 + B) Or (A <> B)
Combination of two relational expressions with a logical operator (A = B) And (A > C+2) (A > C + A / B * 2 + B) Or (A <> B)
describe And and Or operators?
hint: operands
are binary operators, i.e., they need two operands.
operand
data to be operated on, representing the data itself.
binary operators,
are those operators that work with two operands.
For example, a common binary expression would be a + b—the addition operator (+) surrounded by two operands..
The Not is an unary operator. It needs just one operand:
Character Representation
• Letter, numbers, and special characters use ASCII character set to be represented inside the computer.