TCS Placement: Sample Questions 192 - 193 of 502

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 192


Write in Short

Short Answer▾

Find the result of the following expression- M (737,7) + R (3.4) + T (7.7) -R (6.4) if, M denotes modules operation, R denotes round-off, T denotes truncations.


  • M denotes modulus operation, R denotes round-off and T denotes truncation operation.
  • M (737,7) : Dividing 737 by 7, remainder will be 2.
  • R (3.4) : As 0.4 is less than 0.5, it will be rounded off to 3.
  • T (7.7) : Removing fractional part, 7.7 will be truncated to 7.
  • R (6.4) : As 0.4 is less than 0.5, it will be rounded off to 6.
  • Given expression will be reduced to
  • So, value of the given expression will be 6.

Question 193


Describe in Detail


What is device drivers?


  • Device driver is actually a communication layer between device and computer.
  • When a new device is added, the driver should be installed in order to run the program.
  • Device drivers plug into an OS to handle a particular device.
  • Operating System takes help from device drivers to handle all I/O devices.
  • Device drivers encapsulate device-dependent code and implement a standard interface in such a way that code contains device-specific register reads/writes.
  • Device driver is generally written by the device՚s manufacturer and delivered along with the device on a CD-ROM.
  • How a device driver handles a request is as follows:
    • Suppose a request comes to read a block N. If the driver is idle at the time a request arrives, it starts carrying out the request immediately.
    • Otherwise, if the driver is already busy with some other request, it places the new request in the queue of pending requests.
Given the Image is Define the Logical Position of Device Drivers

Developed by: