Programming Basics - Operators Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Operators

A

Special characters that perform specific functions

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

Types of functions

A

Addition
Subtraction
Multiplication
Division
Exponentiation
Quotient
Remainder

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

Exponential Operator

A

**
to the power of e.g. X**3
= X cubed

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

Quotient Operator

A

DIV
gives whole number product of division
e.g. 20 DIV 3 = 6

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

Remainder operator

A

MOD
gives remainder product of division
e.g. 20 MOD 3 = 2

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

What rule do computers follow?

A

BODMAS

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

What is an assignment operator?

A

’=’
assigns values to variables

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

What is a comparison operator?

A

Compare left hand expression to right hand expression

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