COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
When writing pseudocode it is a good idea to add comments to explain to others, and often to remind yourself, what the code is intended to do. To separate these comments from the actual code, what character(s) are used?
|
:
|
|
//
|
|
()
|
|
#
|
Explanation:
Detailed explanation-1: -They look like this: // This is a comment that takes up a whole line. If you use two slashes, everything you write on that line after that will turn green.
Detailed explanation-2: -Explanation: The statement’s language should be independent. Other rules are to write only one statement per line and end multiline structures. 2. Capitalize initial keyword – This is a rule while writing a pseudo code.
Detailed explanation-3: -Organize your pseudocode sections. When coding, you can add comments by typing “//” on the left side of the comment (e.g., //This is a temporary step. ). You can use this same method when writing pseudocode to leave notes that don’t fit into the coding text.
There is 1 question to complete.