Q.

The data who value does not change or remains fixed is called _____________.

see full answer

Want to Fund your own JEE / NEET / Foundation preparation ??

Take the SCORE scholarship exam from home and compete for scholarships worth ₹1 crore!*
An Intiative by Sri Chaitanya

a

Constant

b

Variable

c

All of the above

d

Fixed

answer is A.

(Unlock A.I Detailed Solution for FREE)

Ready to Test Your Skills?

Check your Performance Today with our Free Mock Test used by Toppers!

Take Free Test

Detailed Solution

Constant

Explanation:

Definition: A constant is a data item whose value does not change during the program's execution; it remains fixed and unaltered. This is in contrast to a variable, which can have its value modified during program execution.

Characteristics of Constants:

  • Immutable: Once defined, the value cannot be changed.
  • Enhances code readability and maintainability by providing meaningful names to fixed values.
  • Allows for compile-time and run-time checks to ensure constancy assumptions are not violated.

Conclusion: In programming, a constant is a value which does not change during the execution of a program. It is essential for defining fixed values that should remain unaltered, enhancing code reliability and readability.

Watch 3-min video & get full concept clarity
score_test_img

Get Expert Academic Guidance – Connect with a Counselor Today!

whats app icon