Let ‘&’ be a binary operation defined on the set N. Which of the following definitions is commutative but not associative?ans.a & b=a-ba & b=aba & b=ab – 8a & b=a+b Previous Marked for Review Next
Question
Let ‘&’ be a binary operation defined on the set N. Which of the following definitions is commutative but not associative?ans.a & b=a-ba & b=aba & b=ab – 8a & b=a+b Previous Marked for Review Next
Solution
The operation that is commutative but not associative among the options given is a & b = ab.
Commutative means the order in which the numbers are operated does not change the result. In this case, a & b = ab = b & a, so it is commutative.
Associative means the way in which the numbers are grouped does not change the result. However, for multiplication, (a & b) & c = a & (b & c) does not hold true. Therefore, it is not associative.
So, the correct answer is a & b = ab.
Similar Questions
Question 1Variables declared using 'let' can be reassigned.
What does let mean? (please check all true answers)It’s the keyword to define a variable in the local scopeIt’s the keyword to define a variable with optionally initializing it to a valueIt’s the keyword to define a global variableIt’s the keyword to define a constant variableIt’s the keyword to define a variable that can be re-assign during the execution
The main difference between the variables declared with var and with let isOptions: Pick one correct answer from belowvar is confined to a particular function but let is notvar defines values based on conditions but let does notlet is confined to a particular function but var is notlet doesn’t let you change the value of the variable
give me just one option
rephrase it
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.