3i Infotech Papers: Sample Questions 944 - 945 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 944

» Languages » Java

Short Answer Question▾

Write in Short

Why wrapper classes?

Explanation

  • They convert primitive data types into objects.

  • Objects are needed to modify the arguments passed into a method- classes in java. util package handle only objects and hence wrapper classes.

  • Data structures in the Collection framework, such as ArrayList and Vector, store only objects and not primitive types.

  • An object is needed to support synchronization in multithreading.

Question number: 945

» Languages » Assembly Language

Essay Question▾

Describe in Detail

What is an interrupt?

Explanation

Different parts of Interrupts.

Different Parts of Interrupts.

Different parts of Interrupts.

Interrupts are the signals generated by the external devices to request the microprocessor to perform a task.

Classification of Interrupts

  • Vector interrupt:

    • The interrupt address is known to the processor.

    • RST7.5, RST6.5, RST5.5, TRAP.

  • Non-vector interrupt:

    • The interrupt address is known to the process so the interrupt address needs to send externally the device to perform interrupts.

    • Example: INTR.

  • Mask able interrupt:

    • We can disable the interrupt by writing some instructions into the program.

    • Example: RST7.5, RST6.5, RST5.5.

  • Non-mask able interrupt:

    • We cannot disable the interrupt by writing some instructions into the program.

    • Example: TRAP.

  • Software Interrupt:

    • The programmer has to add the instructions into the program to execute the interrupt.

    • Example: RST0, RST, RST2, RST3, RST4, RST5, RST6 and RST7.

  • Hardware Interrupt:

    • Interrupt pins in 8085 used as hardware interrupts. TRP, RST7.5, RST6.5, RST5.5, INTA.