Math Operators Flashcards
1
Q
+
A
Plus 2+2=4
2
Q
*
A
Multiplication 2*3=6
3
Q
/
A
Division 4/2=2
4
Q
%
A
Modulus 26%6=2
5
Q
++
A
Increment by 1
6
Q
–
A
Deincrement by 1
7
Q
var++
A
var a=0, var b=10 var a= b++ var a=10 and var b=11
8
Q
var a=0 & var b=10 var a=b++ what is var a & var b?
A
var a=10 var b=11
9
Q
var a=0 & var b=10 var a=++b what is var a & var b?
A
var a=11 var b=11
10
Q
var a=0 & var b=10 var a=b-- what is var a & var b?
A
Var a= 10 var b = 9
11
Q
var a=0 & var b=10 var a=--b what is var a & var b?
A
var a= 9 var b=9