8 What do you need to declare a variable SolutionQ8 Need of
Solution
Q-8) Need of declaration of a variable due to following reason
If you not declare a variable, than it would not get defined means declaration gives variable a definition which is must because it will throw an error that \" the variable is not defined \".
Declaration of a variable serves two purposes:
Q-11) Modularized Programs
Q-2) A Constant is used to map an exact and unchanging value to a variable name.
Constants are used in programming to make code a bit more robust and human readable.
Q-5) Loop Structures allow you to run one or more lines of code repetitively. You can repeat the statements in a loop structure until a condition is True, until a condition is False, a specified number of times, or once for each element in a collection.
Use of them due to following reason:
