3i Infotech Placement: Sample Questions 419 - 421 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 419


Write in Short

Short Answer▾

Paging is a memory management function, while multiprogramming is a processor management function, are the two interdependent?


  • Yes, paging and multiprogramming are independent.
  • Multiprogramming requires large memory for many processors, virtual memory and paging provide nearly infinite memory. Paging divides address space into smaller segments stored in secondary storage.
  • Moreover, main memory is limited and multiprogramming necessitates multiple working sets in the RAM. Intelligent memory management may thus improve performance.

Question 420


Describe in Detail


Write a program to interchange 2 variables without using the third one.


  1. #include<stdio.h>
  2. #include<conio.h>
  3. main()
  4. {
  5.     inta=10,b=20;
  6.     clrscr();
  7.     printf(“beforeswapa=%db=%d”, a, b);
  8.     a=a+b
  9.     b=a-b
  10.     a=a-b
  11.     printf(Afterswapa=%db=%d”, a, b);
  12.     getch();
  13. }


Before swap a = 10 b = 20

After swap a = 20 b = 10

Question 421


Describe in Detail


What are different types of networking and internetworking devices?


Difference Types of Networking and Internetworking

4 Types of Networking and Internetworking Devices Are

  1. Repeaters
  2. Bridges
  3. Routers
  4. Gateways


  • Operates only at the physical layer.
  • Increases the length of the network by correcting for the effect of signal attenuation.
  • Receives the signal in the network before it becomes weak, regenerates the original bit pattern and puts the refreshed copy back in to the link.
  • Forwards every frame; it has no filtering capability.


  • Operates in both the physical and logical data link layer.
  • Divides large network into smaller segments.
  • Contains logic allowing the traffic for each segment to be kept separate
  • Essentially a repeaters which relays a frame only on the side of the segment containing the intended recipient.
  • A bridge has a table that maps address to ports.
  • Limits or filters traffic keeping local traffic low.


  • Routes packets based on their logical address.
  • Operates in physical and data link layers.
  • Normally connects LANs and WANs in the internet
  • Has a routing table used for making decision on the route.
  • Routing tables are dynamic and updated using routing protocols.


  • Multi-purpose connection devices.
  • Accepts a packet formatted for one protocol and converts it to a packet formatted for another protocol before forwarding it.
  • Sometimes used to refer to a router.
  • Operates in all seven layers of OSI model.

Developed by: