Define Constant and Variable
Define constant and variable.
Expert
A variable is a meaningful name which is given to a data storage location in the computer memory which contains a value. Each variable that is associated with the data type finds out what type of value can be stored in variable, for example:, a decimal such as 30.05, an integer, like 100 or a character, such as 'A'.
Variables can be declared by using the following syntax:
<Data_type> <variable_name> ;
A constant is same as the variable except that the value, which is assigned to the constant, cannot be changed, as in the case of a variable. Constants should be initialized at the time of declaration.
Constants can be declared by using the following syntax:
const int interestRate = 10;
What is the function of DialogResult property of the Button control?
Which type of code, a client-side or a server-side, is found in the code-behind file of the Web page?
What data type does the Range Validator control support?
Name the data type which the RangeValidator control supports?
State different ways through which a method can be overloaded?
Explain about pixels, points, and em's whenever fonts are exhibited?
Name the parent class which is used to create all Windows services in .net?
Specify the differences between the Dispose() and Finalize() methods.
Illustrate the term Web User Control?
Explain the role of CLR in .NET Framework.
18,76,764
1936570 Asked
3,689
Active Tutors
1411860
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!