Closed bingsen0806 closed 2 years ago
If similar questions regarding coding violations on variable naming comes out in exam, should we only choose the line where the variable is first declared?
Good question @bingsen0806 . Yes, select only the line(s) that 'violated' the standard, not the the lines that are affected by the violation.
Thank you prof
According to Luminus, the correct answer is line 1 and 2.
Is it correct to also say line 4 has coding standard violation because the variable named "FILE_SIZE" should also be changed there. If similar questions regarding coding violations on variable naming comes out in exam, should we only choose the line where the variable is first declared?