Writing Clean Code Principles Quiz

Created by: FreeQuizzesFor

Go Back
11 Questions
0 Plays
Writing Clean Code Principles: a General level Programming quiz. Test your knowledge with 11 questions!
Rate this quiz:
No ratings yet

Questions

Question 1
Why should you use meaningful variable names?
A To make code self-explanatory
B To save memory
C To speed up the computer
D To confuse others
Question 2
What is the purpose of code comments?
A To explain the 'why' behind logic
B To hide errors
C To increase file size
D To rewrite the code
Question 3
What is a 'code smell'?
A A system update
B A broken keyboard
C A sign of poor design
D A physical odor
Question 4
Why should functions be small?
A To improve maintainability
B To require more memory
C To use less electricity
D To crash the system
Question 5
Which naming convention uses 'camelCase'?
A my_variable_name
B myVariableName
C MYVARIABLE
D My-variable

๐Ÿ“‹ This quiz has 11 questions in total.

Log in to see all questions and correct answers!

๐Ÿšจ Report An Error