Assistant Programmer 2016 [MCQ]

71. Bubble sort algorithm sorts n data items using

[Assistant Programmer 2016 [MCQ] : 2016]

1. O(n2) comparison

1

2. O(n√n) comparison

2

3. O(n long n) comparison

3

4. O(n) comparison

4
Answer
72. A class that is inherited in Java is called a

[Assistant Programmer 2016 [MCQ] : 2016]

1. subclass

1

2. super class

2

3. static class

3

4. implement class

4
Answer
73. Which one of these interfaces is implemented by Thread class?

[Assistant Programmer 2016 [MCQ] : 2016]

1. Set

1

2. Connections

2

3. Runnable

3

4. None of the above

4
Answer
74. Worst-case of Quicksort algorithm occurs when

[Assistant Programmer 2016 [MCQ] : 2016]

1. Data are sorted

1

2. Data are random

2

3. Number of items is low

3

4. None of the above

4
Answer
75. How can you avoid SOL Injection?

[Assistant Programmer 2016 [MCQ] : 2016]

1. using firewall

1

2. using virus protection

2

3. using careful programming

3

4. None of the above

4
Answer