Which of the following is a container for storing data ?(a) Variable
(b) Integer
(c) Event
(d) Event handler
Answers
Answer:
(a) Variable
Variable:
A variable is also a type of box or container in which we can store data. In every program every variable has it name, type, size, value.
Explanation:
Variable are name memory locations on memory. Computer memory is divided into several blocks.
For example: If you go to post offices there are different boxes and each has different address. Similarly in computer memory, there is a numerical address for each block/location of computer memory. It is much complex to handle these numerical addresses in a certain program that way we give a name to their block/location. These named locations are known as variables.
Variable is a container for storing data.
Option (a)
Explanation:
- A variable in simple terms is a storage place that has some memory allocated to it. The naming of an address is known as a variable. Variable is the name of memory location. Basically, a variable used to store some form of data. Unlike constant, variables are changeable.
- Each variable possesses a unique type, which decides the size and design of the memory, the value range that can be saved within that memory, and the type of operations that can be performed to the variable.
To know more about variables
A ____________ is a collection of variables of different types under a single name
https://brainly.in/question/7737034
What is constant & variables in c language
https://brainly.in/question/11521653