# Languages-C & C Plus Plus (Hughes Papers): Sample Questions 1 - 3 of 3

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

## Question number: 1

» Languages » C & C Plus Plus

### Write in Short

What will be the CMRR in dB if common mode voltage is 1V and differential mode voltage is 1mV and error is 1%?

### Explanation

In terms of voltages CMRR can be defined as,

Here, common mode voltage, Vic = 1V

Differential mode voltage, Vid = 0.001V

Error, e = 1%= 0.01

Substituting these values in equation (i)

## Question number: 2

» Languages » C & C Plus Plus

### Write in Short

What is sliding window protocol?

### Explanation

• In sliding window protocol, multiple frames are sent by transmitter at a time before needing an acknowledgement from receiver.
• Sliding window refers an imaginary boxes that hold the frames on both sender and receiver side. It gives the upper limit on the number of frames that can be transmitted. Frames may be acknowledged by a receiver at any point. It does not take care whether window is full or not on receiver side.
• The window size is n – 1, where n is the number of frames. If there are 8 frames then window size will be 8 – 1 = 7. It means maximum of n – 1 frame can be sent before an acknowledgement. Sliding window is at both sender and receiver side. It gets shifted as data is transmitted or acknowledgement is received.

## Question number: 3

» Languages » C & C Plus Plus