operators Flashcards

1
Q

operators

A

symbols performing computations on variables and values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

arithmetic operators

A

operators performing mathematical computations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

%

A

modulus
outputs the remainder of a dividion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

++

A

increment, increases value by 1
before operand: pre-increment
after operand: post-increment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_ _

A

decrement, decreases value by 1
before operand: pre-decrement
after operand: post-decrement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

pre-increment/decrement is applied….?

A

before the value of a variable is used in an expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

post-increment/decrement is applied….?

A

after the value of a variable is used in an expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

assignment operators

A

assign values to a variable
ex: =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

+-/*%= operators

A

perform the arithmetic and then assign the value
ex: B += A is the same as B = B+A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

relational operators

A

check the relationship of two values
1 is returned if the relation is true
0 is returned if the relation is false
*==, >, <, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

logical operators

A

connects two or more expressions, returns either 0 or 1 depending if the compound expression results true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

&&

A

logical and
*true if all operands are true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

||

A

logical or
*true if at least one of the operands are true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

!

A

logical not
*reverses the logical state (if condition is true, then not will make it false)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

bitwise operators

A

perform bit-level operations

compiler will not show binaries and will return decimal values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly