Languages [3i Infotech Placement]: Sample Questions 46 - 48 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 46

Edit

Describe in Detail

Essay▾

How is exception handling carried out in C ++ ?

Explanation

Understanding of Throwable Parts
  • Exception handling is done using catch block and throw statement.
  • Try includes code, which result in exception.
  • One or more catch enclose the try “catch” the exception starting from most specific to least specific.
  • Function can declare a throw (… .) declaration stating that it does not handle exceptions of the specified types.
  • Such exceptions are then thrown to the calling function.
  • If an exception remains unhandled program will have abnormal termination.
  • Try catch blocks can be nested any level.

Question 47

Languages
Edit

Describe in Detail

Essay▾

What is meant by servlet? What are the parameters of service method?

Explanation

Understanding of Servlet
  • A servlet is a java programming language class to extend the capabilities of servers that use request-response programming mode.
  • Servlet respond to requests and extend the applications hosted by web servers.
  • Java servlet technology defines HTTP-specific servlet classes with following methods:
    • int ()
    • service ()
    • getServletConfig ()
    • getServletInfo ()
    • destroy ()

Question 48

Edit

Describe in Detail

Essay▾

What happens during DMA transfer?

Explanation

Direct memory access transfers data between a microprocessor՚s memory and an I/O device without involving the microprocessor.

Working process of DMA controller:

  • The I/O device requests DMA operation via the DMA request lines of the controller chip.
  • The controller chip activates the microprocessor HOLD pin, requesting the CPU to release the bus.
  • The processor then sends HLDA (Hold Acknoledgement) back to the DMA controller.
  • The DMA controller completes the DMA transfer and releases the bus
Working Process of DMA Controller

Developed by: