Question Bank (2 marks) · Q17
Q.What are variables? Give an example.
Karnataka PUCTextbookShort· 2mImportance★★★★★est
56% · 86/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
A variable is a named memory location whose value can change during execution.
A variable is an identifier that names a location in memory used to hold data. Unlike a constant, the value stored in a variable can be changed while the program runs. A variable must be declared with a data type before use, which fixes the kind and size of value it can store.
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.