3i Infotech Placement: Sample Questions 353 - 354 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 353

Edit

Write in Short

Short Answer▾
  1. voidmain ()
  2. {
  3.     intconst ⚹p =5;
  4.     printf (“%d” ++ (⚹p));
  5. }

Explanation

  • In a program
Table Shows the Program
int const ⚹ p = 5;Pointer to constant integer
printf ( “% d” ++ (⚹ p) ) ;We tried to change constant integer value
  • But constant value can՚t change
  • So, the answer is Compiler error: Cannot modify a constant value.

Question 354

Edit

Describe in Detail

Essay▾

What is source route?

Explanation

Given Source Route Bridge Network
  • Source route refers to the sequence of IP address identifying the route a datagram must follow- provided by the source of sender.
  • A source route is optionally included in IP datagram header to specify the route that a packet should take through the network.
  • Allows easier troubleshooting, improved trace route, and enables a node to discover all the possible routes to a host.
  • The source route is for guidance- does not allow the source to directly manage network performance by forcing packets to travel over one path.

Uses of Source Routing

  • Troubleshoot a network
  • Map a network
  • Increase network performance
  • Unfortunately it can be used to hack a computer, carry out DoS attacks, snooping etc.

Developed by: