ExamVeda
Login
Home
41
Which of the following data structures is best suited for implementing an array list in Java?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
42
How do you find the maximum element in an array in Python?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
43
What happens when you access an array element out of bounds in C++?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
44
How do you copy an array in C++?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
45
Which of the following is a correct way to declare a constant array in JavaScript?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
46
Which matrix has most of the elements (not all) as Zero?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
47
It is not possible to find the minimum number of steps to reach the end of an array in linear time.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
48
What is the time complexity of the following code that determines the number of inversions in an array?
int InvCount(int arr[], int n) 
{ 
	int count = 0; 
	for (int i = 0; i < n - 1; i++) 
		for (int j = i + 1; j < n; j++) 
			if (arr[i] > arr[j]) 
				count++; 
 
	return count; 
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
49
If column-major order is used, how is the following matrix stored in memory?
a b c
d e f
g h i
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
50
What is the time complexity of the juggling algorithm to rotate an array?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board