3i Infotech Papers: Sample Questions 101 - 102 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 101

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is Beaconing?

Explanation

  • It is process allowing a network to self- repair networks problems.

  • Stations on the network notify the others on the ring when they are not receiving the transmissions.

  • Used in token ring and FDDI network.

  • Upon an error condition in wireless or LAN network, failure packets are transmitted as beacons.

  • Beacons identify the nearest transmitter, which is active and helps in generation of an auto reconfiguration.

  • Thus, the failed node automatically initiates a diagnostic measure and tries to bypass the failure.

How Beaconing Works:

  • In a token passing network such as FDDI, every station is responsible for monitoring the status of the token-passing process.

  • Station detects the fault and starts placing beacons onto the ring.

  • When the next station on the ring detects a beacon- it starts placing beacons on the ring, and the first station stops transmitting them.

  • This happens until the station immediately upstream of the fault location is the only station sending beacons- allowing administrators to quickly locate the fault and repair it.

  • Finally station emitting the beacon detects its own beacon returning to it after traveling around the ring, and stops beaconing.

Question number: 102

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. void main ()
  2. {
  3.     char * s[] = { "dharma""hewlett-packard" ,"siemens" ,"ibm" };
  4.     char **p;
  5.     p = s;
  6.     printf("%s  ",++*p);
  7.     printf("%s  ",*p++);
  8.     printf("%s  ",++*p);
  9. }

Explanation

  • The program uses pointer to pointer

  • The first pointer is using to store the address of second pointer. That is why they are known as double pointers.

Concept of double pointer

Concept of Double Pointer

Concept of double pointer

Table showing the program

Table showing the program

char * s [] = {“dharma”, “hewlett-packard”, “siemens”, “ibm”};

  • Define the pointer array

char **p;

  • Define the character pointer to pointer p

p = s;

  • Pointer stores the array value

printf (“%s ”, ++*p);

  • Here printf print the incremented pointer value

  • Here apply (++*p) - p thus points to harma from dharma

printf (“%s ”, *p++);

  • Here printf prints the pointer value

  • Here apply (*p++). The increment moves to next char array so p now points to hewlett-packard

printf (“%s “, ++*p);

  • Again ++*p makes “p” point to ewlett-packard