Assistant Programmer 2016 [MCQ]

41. Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?

[Assistant Programmer 2016 [MCQ] : 2016]

1. (int)Math.min(d);

1

2. (int)Math.max(d);

2

3. (int)Math.abs(d);

3

4. (int) Math.floor(d);

4
Answer
42. Which is not a feature of object oriented programming?

[Assistant Programmer 2016 [MCQ] : 2016]

1. inheritance

1

2. compiler directives

2

3. encapsulation

3

4. abstraction

4
Answer
43. How many instances of an abstract class can be created?

[Assistant Programmer 2016 [MCQ] : 2016]

1. 0

1

2. 1

2

3. 2

3

4. 13

4
Answer
44. Link list can be implemented by using?

[Assistant Programmer 2016 [MCQ] : 2016]

1. Array

1

2. pointers

2

3. both a and b

3

4. None of the above

4
Answer
45. Which of the following is a design pattern?

[Assistant Programmer 2016 [MCQ] : 2016]

1. List

1

2. Queue

2

3. Factory

3

4. All of the above

4
Answer