Differentiate the given constants : (a) 7 (b) ’7’
Answers
These are primarily symbols that act as placeholders for a certain value. Variables are primarily represented in letters and do not have a fixed value attached to them. The value of a variable is unique and can change from one scenario to the other. Variables along with constants are used mainly in algebraic expressions. The difference between the two is given in a tabular form, check out the tabular column below:
Difference Between Constants and Variables
Constant Variables
A constant does not change its value over time. A variable, on the other hand, changes its value dependent on the equation.
Constants are usually written in numbers. Variables are specially written in letters or symbols.
Constants usually represent the known values in an equation, expression or in line of programming. Variables, on the other hand, represent the unknown values.
Constants are used in computer programming. Variables also have its uses in computer programming and applications
Explanation:
A constant can be defined as a fixed value, which is used in algebraic expressions and equations. A constant does not change over time and has a fixed value. For example, the size of a shoe or cloth or any apparel will not change at any point.
In an algebraic expression, x+y = 8, 8 is a constant value, and it cannot be changed