ch+=2 is equivalent to * 1 point ch=ch+2 ch+2 ch=+2
Answers
Answered by
1
These are called "Augumented" or "Short hand" operators.
Hence,
ch +=2 is equal to ch = ch + 2
Hence optiona ) ch = ch + 2 is the correct one.
Food for thought
- Augumented operators are used in place of writing x = x+n
- It is very easy for developers to use this and add the variable to the "cloud variable" to get high score/leaderboard for games etc.
Answered by
2
Ch+=2 is equivalent to Ch = Ch + 2, in the programming world.
Explanation:
In programming languages like Python, +=, -=, *=, /=, %= are the shorthand assignment operators.
a+=b denotes a=a+b
a-=b denotes a=a-b
a*=b denotes a=a*b
a/=b denotes a=a/b
a%=b denotes a=a%b
As per these notations, ch+=2 is equivalent to ch=ch+2, which means that the value in ch is incremented by 2 and the resultant value is assigned to ch back.
Learn more:
1. A CSS file cannot be linked to a web page. State True or False.
brainly.in/question/21107345
2. True or false: to join two strings,use the dollar ($) character.
brainly.in/question/21624446
Similar questions
Biology,
3 months ago
Science,
7 months ago
Social Sciences,
7 months ago
Math,
11 months ago
Social Sciences,
11 months ago