Languages-Assembly Language [3i Infotech Placement]: Sample Questions 46 - 47 of 51

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

Assembly Language
Edit

Write in Short

Short Answer▾

Which line will be activated when an output device requires attention from CPU?

Explanation

  • Interrupt line is activated when an output device requires attention from CPU.
  • This is why adding a new device to a PC requires IRQ number by setting a DIP switch. This specifies the interrupt line the device will use.
  • IRQ conflicts were a common problem when adding expansion boards, but the plug and play specification removed this problem.

Question 47

Assembly Language
Edit

Describe in Detail

Essay▾

What is meant by polymorphism?

Explanation

Understanding of Polymorphism
  • Polymorphism is an OOP concept which provides ability to a variable, function or object to take on multiple forms.
  • In terms of class inheritance it provides ability to redefine methods for derived classes.
    • For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles.
    • Thus no matter at run time what the shape of an object is, applying the area method will call the correct function and return the correct results. That area called from the base class object “shape” would be delegated to the right child class method
  • Polymorphism is considered to be a requirement of any true object-oriented programming language

Developed by: