Answer:
a. 2100
b. 2199
Explanation:
GIven that:
The file size = 1000 MB
The payload size is = 100 bytes
The negotiated window size is = 1000 bytes.
This implies that the sliding window can accommodate maximum number of 10 packets
The sender receives an ACK 1200 from the receiver.
Total byte of the file is :
1000 MB = 1024000000 bytes
a.
Sender receives an ACK 1200 from the receiver but still two packets are still unacknowledged
=1200 + 9 * 100
= 1200 + 900
= 2100
b. What is the last byte number that can be sent without an ACK being sent by the receiver?
b. Usually byte number starts from zero, in the first packet, the last byte will be 99 because it is in 1000th place.
Thus; the last byte number send is :
= 1200 + 10 *100 -1
= 1200 + 1000-1
= 1200 + 999
= 2199
Answer:
Explanation:
We have the following
t is the number of test cases.
n is the number of trips for each testcase
name is the name of the city
all the unique names are added to the list and at last the length of the list is printed.
The program is written as follows
t = int(input) - for i in range(t): n = int(input) 1 = [] for j in range(n): name = input if name not in l: 1.append(name) pr
t = int(input())
for i in range(t):
n = int(input())
l = []
for j in range(n):
name = input()
if name not in l:
l.append(name)
print(len(l))
Output:
Answer:
Beta
Explanation:
Beta testing is a Quality Assurance process, where Developers and testers evaluate the quality of application experience from the point of view of the users, who are the most important targets of any software product.