Languages [3i Infotech Placement]: Sample Questions 344 - 346 of 546

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 344

Languages
Edit

Write in Short

Short Answer▾

What is meant by class loader? How many types are there? Where we will use them?

Explanation

  • Class loader is a part of JVM used to load the classes dynamically and on demand.
  • Different types of class loaders extent base class loader:
    • Bootstrap class loader loads the classes in rt. jar and 8n. jar.
    • Extension class loader loads the class in ext dir.
    • System class loader loads all other classes in the class path.

Question 345

Edit

Write in Short

Short Answer▾

What is meant by “method-wars” ?

Explanation

  • Before 1994, there were different methodologies like Rumbaugh, Booch, Jacobson, Meyer etc. who followed their own notations to model the systems putting developers in dilemma.
  • This span was called “method-wars”
Given the Description of Method Wars

Question 346

Question

MCQ▾

What action is taken when the processor under execution is interrupted by a non-maskable interrupt?

Choices

Choice (4)

a.

Processor serves the interrupt request after completing the execution of the current instruction.

b.

Processor serving the interrupt request depends upon the priority of the current task under execution.

c.

Processor serves the interupt request immediately.

d.

Processor serves the interupt request after completing the current task.

Answer

a.

Explanation

Non- maskable interrupt pin has higher priority than the maskable interrupt request pin.

On a non-maskable interrupt (NMI)

On an NMI, these actions take place:

  • Completes the current instruction.
  • Pushes the Flag register, CS and IP return address on the stack.
  • IP is loaded from word location H and CS is loaded from next word location AH.
  • Interrupt flag and trap flag are reset to
  • The processor then starts executing the NMI service routine.

Developed by: