Answer:
20
Explanation:
During the first iteration for the list [1, 4], numB = 1.
During the first iteration of the list [2, 3], numA = 2.
answer = answer + numA + numB
= 0 + 2 + 1
= 3
Since the list [2, 3] is in a nested loop, we need to first finish iterating the whole list before numB iterates to the next number, so numA = 3 this time and numB still stays at 1.
answer = answer + numA + numB
= 3 + 3 + 1
= 7
Now, numB moves to 4 and numA starts back at 2 again.
answer = answer + numA + numB
= 7 + 2 + 4
= 13
numB still says at 4 and numA moves to 3 since it is in a nested loop:
answer = answer + numA + numB
= 13 + 3 + 4
= 20
print(answer) will print the output 20.
Hope this helps :)
Answer:
A LAN (local area network) is a group of computers and network devices connected together, usually within the same building. ... A WAN connects several LANs, and may be limited to an enterprise (a corporation or an organization) or accessible to the public. The technology is high speed and relatively expensive.
LAN stands for Local Area Network. WLAN stands for Wireless Local Area Network. ... WLAN connections are completely wireless. LAN network is a collection of computers or other such network devices in a particular location that are connected together by communication elements or network elements.
Easy and Cheap Communication: Data and messages can easily be shared with the other computer connected to the network. Centralized Data: The data of all network users can be stored on a hard disk of the central/server computer. This help users to use any computer in a network to access the required data.
Explanation:
<em>I </em><em>don't</em><em> know</em><em> if</em><em> </em><em>it's</em><em> </em><em>correct</em><em>,</em>
<em>so </em><em>hope </em><em>it </em><em>helps</em>
With the large variance of items on the site it is easy to invest in an idea
Answer: The answer is d.
Explanation:
UDP is a transport protocol (Layer 4 of the OSI model) that has no mechanism to provide a reliable transport between the source process and the destination one, as TCP does.
Anyway, due to this feature, is specially suitable for real-time applications , like video or audio, provided that the user can accept some loss in the stream.
Several real-time protocols, like RTP for instance (used for videoconferencing) use UDP as transport protocol.
Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
boolean tallEnough;
boolean oldEnough;
Scanner input = new Scanner(System.in);
tallEnough = input.nextBoolean();<em> //wait the input for tallEnough</em>
oldEnough = input.nextBoolean(); <em>//wait the input for OldEnough</em>
if(tallEnough && oldEnough){
System.out.print(true);
} else {
System.out.print(false);
}
}
}
Explanation:
First, to accept user inputs you have to import the class Scanner. Then declare both variables before allowing the user to set input values for both boolean variables.
In the if-else statement checks if both variables are true, then prints true. Another case prints always false.