Purchase Solution

Declaration of a Variable

Not what you're looking for?

Ask Custom Question

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?

Purchase this Solution

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 ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C# variables and classes

This quiz contains questions about C# classes and variables.