3i Infotech Placement: Sample Questions 313 - 315 of 1245

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

Question 313

Edit

Write in Short

Short Answer▾

Is the following code legal?

  1. structa
  2. {
  3.     intx;
  4.     structa ⚹b;
  5. }

Explanation

In this code

Table Shows the Program
struct a

{

int x;

struct a ⚹ b;

}

  • ⚹ b is a pointer to type struct a and so it is legal
  • The compiler knows, the size of the pointer to a structure even before the size of the structure is determined
  • The pointer to any type is of same size.
  • This type of structures is known as ‘self-referencing’ structure.

Question 314

Edit

Write in Short

Short Answer▾

What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?

Explanation

  • Historic Unix uses swapping:
    • Entire process is transferred to the main memory the swap device.
  • The Unix system v uses demand paging:
    • The part of the process is moved to the main memory.
    • Unix uses one swap device and Unix system v allow multiple swap devices.

Question 315

Edit

Describe in Detail

Essay▾

What is an interrupt?

Explanation

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.

Developed by: