Multiple choice technology programming languages

As per the Coding Guidelines of the Project, Which of the following follows the spacing guidelines while using operators

  1. anyVal=10;

  2. anyVal = 10;

  3. anyVal= 10;

  4. anyVal =10;

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

anyVal = 10; follows spacing guidelines - spaces around operators (=) improve readability. This is standard coding convention: operators have space on both sides. Options without spaces (anyVal=10 or anyVal= 10 or anyVal =10) violate the guideline.