M3 Flashcards

1
Q

works on integer values, by manipulating its bit-pattern equivalent

A

bitwise operators

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

performs bit manipulation on data by
shifting the bits of its first operand right or
left.

A

shift operators

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

compares two values and determines the relationship between them.

A

relational operators

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

often used with relational operators to
construct more complex decision-making
expressions.

A

logical operators

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

used in converting one type into
another type or an object into another
object.

A

cast operators

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

Used to assign values to a variable

A

assignment operators

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

cast operators syntax

A

Syntax:
(Cast type) Value;

Example:
double dbl = 55.66;
int number = (int)dbl;

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

an operator that deals with three operands

A

Ternary Operator

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

Ternary Operator syntax

A

Syntax:
variable = condition ? value : value;

Example:
int x = 20, y = 30; 
int biggerNumber = 0; 
biggerNumber = x>y ? x : y;
// What do u think will be the value of 
the biggerNumber?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly