Answer:
The program is written in c++ , go to the explanation part for it, the output can be found in the attached files.
Explanation:
C++ Code:
#include <iostream>
using namespace std;
int main() {
int x;
cout<<"Enter a number: ";
cin>>x;
int largest = x;
int position = 1, count = 0;
while(x != 1)
{
count++;
cout<<x<<" ";
if(x > largest)
{
largest = x;
position = count;
}
if(x%2 == 0)
x = x/2;
else
x = 3*x + 1;
}
cout<<x<<endl;
cout<<"The largest number of the sequence is "<<largest<<endl;
cout<<"The position of the largest number is "<<position<<endl;
return 0;
}
Answer:
A) Calibri Light
Explanation:
After Office 2013, All versions of PowerPoint title font is "Calibri Light"
<u>Solution:</u>
a) False. Piggyback is used only for efficiency. If there's no data packet to be piggybacked to, then B will just send the acknowledgement packet.
b) False. It is the size of the receiver's buffer that's never changed. RcvWindow is the part of the receiver's buffer that's changing all the time depending on the processing capability at the receiver's side and the network traffic.
c) The given statement is True.
d)
False. The sequence number of the subsequent segment depends on the number of 8-byte characters in the current segment.
e) True. Every TCP segment has a current value of rwnd in the receive window.
f) False. Next_RTT = alpha * last_estimated_RTT + (1-alpha)*newly_collected_RTT_sample. In this case even though the last sampleRTT which is the newly_collected_RTT_sample is 1sec, the next_RTT still depends on alpha and last_estimated_RTT. Therefore, the next_RTT is not necessarily greater than 1sec.
g)
False. The acknowledgement number has nothing to do with the sequence number. The ack. number indicates the next sequence number A is expecting from B.