Intro To Literals And Operators Flashcards

1
Q

Literals (literal constant)

A

Fixed value that has been inserted directly into the source code

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

Literals vs variables

A
  • both have value and type
  • value of literals are fixed
  • value of variable can be changed trough initialization or assignment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operators

A

Specific operation to be to be performed by a construct (symbol)

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

Arity

A

Number of operands that an operator takes an input

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

Unary

A

Act on one operand -5

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

Binary

A

Acts on two operands, left and right (+, <>)

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

Ternary

A

Act on three operands

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