Explore BrainMass
Share

Explore BrainMass

    Declaration of a Variable

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    1. Why declaration of a variable is considered to be an important (and sometimes required) part of good programming practice?

    2. Name few languages that allow use of variables without even declaring them. Discuss about its pros and cons?

    3. What is a keyword in a programming language? Why it is not a good practice to use reserved words as variable names?

    © BrainMass Inc. brainmass.com October 9, 2019, 8:31 pm ad1c9bdddf
    https://brainmass.com/computer-science/python/declaration-of-a-variable-153746

    Solution Preview

    "1. Why declaration of a variable is considered to be an important (and sometimes required) part of good programming practice? "
    - There are at least four advantages declaration of a variable:
    a) It helps to avoid ambiguity in reading and debugging the code
    b) It helps in maintaining and further support of ...

    $2.19