Answer:
//variable integer_list to hold a list of integers
DECLARE integer_list
ASSIGN values to integer_list
//variable sum to hold the sum of the elements in the list
DECLARE sum
ASSIGN zero to sum
//loop through the integer_list and sum all it's elements together.
for(int i=0; i<integer_list.size(); i++){
sum += interger_list.get(i)
}
//Show the result of the addition from the for loop
DISPLAY "The sum is " + sum
Explanation:
The above code uses some hypothetical programming language syntax. The second and third lines declare an arbitrary integer list and assign a set of values to it respectively.
The fifth line declares a variable "sum" which will hold the result of summing all the elements in the list. The sixth line initializes "sum" to zero.
The for loop shown iterates through the integer list cumulatively summing its elements.
The result is displayed as written on line 12.
Hope it helps!
To make text bold, select and highlight the text first. Then hold down Ctrl (the control key) on the keyboard and press B on the keyboard. To make text italic, select and highlight the text first. Then hold down Ctrl (the control key) on the keyboard and then press the I on the keyboard
Answer:
192.168.0.0 / 255.255.255.192
Explanation:
Given:
As the network engineer, you are asked to design an IP subnet plan that calls for three subnets. The largest subnet needs a minimum of 52 hosts. Management requires that a single mask must be used throughout the Class C network.
Solution:
192.168.0.0 / 255.255.255.192 is a private IP network and mask that would meet the requirements.
<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.