Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

On the coding part of the final, are we losing points if our codes are redundant?.

asked in CSC211_Winter2018 by (1 point)

2 Answers

+8 votes

I have written some redundant codes before (because I ran out of time), and I did not lose any point because of that. It looks like as long as your program works PROPERLY, you won't lose point just because you include a lot of print statement in your main method. Still, clear code should be a good practice for every programmer, and you should still follow style expectations (like naming for variables and constants), but if you just run out of time or you're nervous during the exam, redundancy is not a problem.

Hope this answer your problem.

answered by (1 point)
+2 votes

It depends. If the code works but you put all your code in the main method rather than using methods or using too many print statements instead of loops then yes you would lose points. If you follow the directions and have some redundancy then there won't be many points taken from your code.

answered by (1 point)
...