Checking commutative.
Given a∗b=a−b
∀a,b∈Q,a−b∈Q. So, it is binary
∗ is commutative if
a∗b=b∗a
Now, a∗b=a−b
And, b∗a=b−a
Since
a∗b≠b∗a
∗ is not commutative.
Checking associative.
∗ is associative if,
(a∗b)∗c=a∗(b∗c)
(a∗b)∗c=(a−b)∗c
=(a−b)−c
=a−b−c
a∗(b∗c)=a∗(b−c)
=a−(b−c)
=a−b+c
Since
(a∗b)∗c≠a∗(b∗c)
∗ is not an associative binary operations.