JAMIA 2024 — Computer PYQ
JAMIA | Computer | 2024Which of the following statement is correct about the array?
Choose the correct answer:
- A.
in the array, users can only allocate the memory at the run time.
- B.
In the array, users can only allocate the memory at the compile time.
(Correct Answer) - C.
The array is a primitive and non-linear data structure that only stores a similar data type.
- D.
All of the these
In the array, users can only allocate the memory at the compile time.
Explanation
Mathematical Representation
Let S be the size of the array allocated at compile time.
The memory allocated M is a constant:
Since the size n cannot be a variable determined at runtime (trun):
If Base is the starting address and w is the word size, the memory range R is fixed:
Answer: The statement "Users can only allocate the memory at compile time" is correct for Static Arrays.
Explanation
Mathematical Representation
Let S be the size of the array allocated at compile time.
The memory allocated M is a constant:
Since the size n cannot be a variable determined at runtime (trun):
If Base is the starting address and w is the word size, the memory range R is fixed:
Answer: The statement "Users can only allocate the memory at compile time" is correct for Static Arrays.

