Question 9524 – Linked-List
May 15, 2024
Question 8531 – Arrays
May 15, 2024
Question 9524 – Linked-List
May 15, 2024
Question 8531 – Arrays
May 15, 2024

Arrays

Question 11
The number of elements in a one-dimensional array with lowest and highest index values as -1024 and 1024 is:
A
2048
B
0
C
1024
D
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.
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!