Question 9524 – Linked-List
May 15, 2024Arrays
May 15, 2024Arrays
Question 11 |
The number of elements in a one-dimensional array with lowest and highest index values as -1024 and 1024 is:
2048
| |
0 | |
1024 | |
2049 |
Question 11 Explanation:
→The number of elements in [-n:n] is n+n+1=2n+1
→Example:[-2:2] consists of -2,-1,0,1,2 indexes.
→Example:[-2:2] consists of -2,-1,0,1,2 indexes.
Correct Answer: D
Question 11 Explanation:
→The number of elements in [-n:n] is n+n+1=2n+1
→Example:[-2:2] consists of -2,-1,0,1,2 indexes.
→Example:[-2:2] consists of -2,-1,0,1,2 indexes.
Subscribe
Login
0 Comments