TCS Papers: Sample Questions 225 - 227 of 502

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

Question number: 225

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What are the different file extensions involved when programming in c?

Explanation

  • Source code files in C are saved with. c file extension.

  • Header files or library files have the. h file extension.

  • Every time a program source code is successfully compiled, it creates an. obj object file, and an executable. exe file.

Question number: 226

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is piggy Backing?

Explanation

  • Piggybacking is used to improve the efficiency of the bidirectional protocols.

  • In this technique a frame carrying data from A to B also carries control information about arrived (or lost) frames from B, Similarly a frame carrying data from B to A can also carry control information about the arrived (or lost) frames from A.

  • When a data frame arrives, instead of immediately sending control fame, the receiver waits until the network layer passes it to the next packet. The acknowledgement is then attached to the outgoing data frame.

  • The acknowledgement gets a free ride on the next outgoing data frame.

  • Thus, it is the technique of temporarily delaying outgoing acknowledgement so they can be hooked onto the next outgoing data frame.

Image of the piggy backing

Image of the Piggy Backing

Given the image is define the piggy backing

Question number: 227

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is silly window syndrome?

Explanation

  • Silly window syndrome can ruin TCP performance when data is based to the sending TCP entity in large blocks, but receiving side reads only 1 byte at a time.

  • Arises in poor implementations of the transmission control protocol (TCP) when receiver accepts a few bytes at a time but sender transmits data in small segments repeatedly.

  • Small packets, on the network lead to a significant reduction in network performance and indicate an overloaded server or a sending application that is limiting throughput

  • Silly window syndrome is avoided by:

    • Receiver not advertising small windows- larger window until the window size can be increased by either one maximum segment size or by of the remote host’s current window size.

    • The sender not transmit data unless:

  • A packet is at least as large as the maximum segment size

  • A packet with data half of the remote host’s window size may be sent

  • All of the output data may be sent and there is no unacknowledged data or the NAGLE algorithm is disabled

Silly window syndrome

Silly Window Syndrome

Silly window syndrome