Hello friends, in this article we are going to discuss about Time complexity Multiple Choice Questions | Time complexity Objective type Java Questions for Data Structure and Algorithms | DSA Multiple Choice Questions and Answers

Read Also : Java Arrays Multiple Choice Questions answers , Basic of Array Multiple Choice Questions | Objective Type Questions

### Q1.What is Time Complexity of temp array method in java?

- O(n * d)
- O(n)
- O (1)
- None of these

**Ans : 2**

Explain : Time Complexity of temp array is O(n) method in java.

### Q2.What is Time Complexity of Rotate one by one array method in java?

- O(n * d)
- O(n)
- O (1)
- None of these

**Ans : **1

Explain : Time Complexity of Rotate one by one array is O(n * d) method in java.

### Q3.What is Time Complexity of A Juggling Algorithm of array method in java?

- O(n * d)
- O(n)
- O (1)
- None of these

**Ans : **2

Explain : Time Complexity of A Juggling Algorithm array is O(n) method in java.

### Q4.What is Time Complexity of The Reversal Algorithm of array method in java?

- O(n * d)
- O(n)
- O (1)
- None of these

**Ans : **2

Explain : Time Complexity of The Reversal Algorithm is O(n) method in java.

### Q5.What is Time Complexity of Block swap algorithm of array method in java?

- O(n * d)
- O(n)
- O (1)
- None of these

**Ans : **2

Explain : Time Complexity of Block swap algorithm is O(n) method in java.

### Q.6An element in a sorted array can be found in _______ time via binary search.

- O(n * d)
- O(n)
- O (1)
- O(log n)

**Ans : **4

Explain : An element in a sorted array can be found in O(log n) time via binary search.

### Q7.Naive Solution which takes how much amount of time?

- O(n * d)
- O(n2)
- O (1)
- O(log n)

**Ans : **2

Explain : Naive Solution which takes O(n2) amount of time.

### Q8.Which distance between two arrays or strings of equal length is the number of positions at which the corresponding character(elements) are different.?

- Hopsman
- Hamming
- Overall
- Logiing

**Ans : **2

Explain : Hamming distance between two arrays or strings of equal length is the number of positions at which the corresponding character(elements) are different.

### Q9.What STL stands for in array?

- Standard Temporary Library
- Standard Template Library
- Storage Temporary Library
- None of these

**Ans : **2

Explain : STL stands for Standard Template Library.