1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What is the main goal when writing code according to SCC 111?
To write code that’s a pleasure to read.
Why is reading code compared to reading great books for a writer?
Being able to read great code is just as important for a programmer as reading greater books is for a writer.
How should comments in code be characterized?
Comments are brief descriptions that clarify the code for easier understanding.
What are the two types of comment syntax mentioned?
Single line comments use // and block comments use /* and */.
What should comments add to the code?
Comments should add value and clarify confusing parts without being overly verbose.
What is one suggestion for maintaining consistency in comments?
Plan your code and write comments either beforehand or as you go along.
What is one guideline for writing readable code?
Indent code contained within braces.
What should you avoid at the end of lines of code?
Leaving whitespace at the end of lines.
What naming convention should be followed when declaring variables?
Follow 'camelCase' when declaring variables.
What is an important practice for variable names in code?
Use meaningful variable names.