Whitespace coding element is omitted at the end of line - Delivering the System

Q.  Which coding element is generally omitted at the end of line?
- Published on 22 Jul 15

a. Naming conventions
b. Identifying
c. Whitespace
d. Operators

ANSWER: Whitespace
 

    Discussion

  • Nirja Shah   -Posted on 21 Oct 15
    Coding Guidelines

    - Practice of coding style varies with organizations, operating systems and language of coding itself.

    - The following coding elements may be defined under coding guidelines of an organization:

    Naming conventions
    - This section defines how to name functions, variables, constants and global variables.

    Indenting
    - This is the space left at the beginning of line, usually 2-8 whitespace or single tab.

    Whitespace
    - It is generally omitted at the end of line.

    Operators
    - Defines the rules of writing mathematical, assignment and logical operators. For example, assignment operator ‘=’ should have space before and after it, as in “x = 2”.

    Control Structures
    - The rules of writing if-then-else, case-switch, while-until and for control flow statements solely and in nested fashion.

    Line length and wrapping
    - Defines how many characters should be there in one line, mostly a line is 80 characters long. Wrapping defines how a line should be wrapped, if is too long.

    Functions
    - This defines how functions should be declared and invoked, with and without parameters.

    Variables
    - This mentions how variables of different data types are declared and defined.

    Comments
    - This is one of the important coding components, as the comments included in the code describe what the code actually does and all other associated descriptions. This section also helps creating help documentations for other developers.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)