3i Infotech Papers: Sample Questions 571 - 572 of 1245

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

Question number: 571

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is multicast routing?

Explanation

  • Protocol used to send data to multiple recipients.

  • Using multicast, a source can send a single copy of data to a single multicast address, which is then distributed to an entire group of recipients.

  • Protocols involving just one sender and one receiver are often referred to as unicast protocols.

  • Multicast address identifies a set of recipients interested in the data stream- can be an IP address from a well-defined range.

  • Routers between the source and recipients duplicate data packets and forward multiple copies wherever the path to recipients diverges. Multicast traffic does not reach networks that do not have any such recipients. This keeps duplicate copies of packets to a minimum.

Question number: 572

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. main ()
  2. {
  3.     int y;
  4.     scanf ( “%d” &y); //input given is 2000
  5.     if ( (y%4 = = 0 && y%100! = 0)| y%100 = = 0)
  6.     printf ( “%d is a leap year” );
  7.     else
  8.     printf ( “%d is not a leap year” );
  9. }

Explanation

  • 2000 is a leap year
  • In a program

Table shows the program

Table shows the program

int y;

Given a integer variable y

scanf (“%d” &y);

Input the value of y

Input given is 2000

if ( (y % 4 == 0 && y % 100! = 0) | y % 100 == 0)

printf (“%d is a leap year”);

else

printf (“%d is not a leap year”);

Condition to check if leap year or not.

  • Here print the 2000 is a leap year.