Answer:
Option(c) i.e "A NullPointerException error " is the correct answer for the given question.
Explanation:
Exception are the run time error in the program.A NullPointerException is the runtime error when the pointer containing the NULL value .This type of exception occur when we call that function on the pointer variable which contains the NULL.
- ArrayIndexOutOfBoundsException error occur when we accessing the element which is out of the index or bound so this option is incorrect.
- An ArithmeticException error occur in the arithmetic operation. Suppose a number is divided by zero then the ArithmeticException error is occured .
- ClassCastException error occur in the typecasting of a specific object.So this option is incorrect.
Answer: d. the time quantum should be as small as possible.
Explanation: Round robin is a CPU scheduling algorithm. If the time quantum is extremely small, number of context switches is very high, round robin scheduling will be same as processor sharing algorithm. Then the algorithm is good. Very large time quantum will make response time of processes too much which may not be tolerated in interactive environment.