Explanation:
These are the advantages of breaking up a single logical message into a number of fixed sized packets.
- When messages are broken into packets it increases the performance and also the reliability of the internet
- if there is an error in a single packet, this error is not going to affect the entire message.
- the efficiency of the communication line in the internet is improved.
- there is a reduction of traffic. Each packet in a single message can be transmitted through different routes.
- It reduces idleness as each packet can send from different program so each program has a service.
Answer:
Like an actual video game or the one where you would play during recess then get in trouble when someone got hurt
Explanation:
Answer:
The answer to this question is "nested".
Explanation:
The answer to this question is nested because, In programming languages, there is a concept of nested if-else statement. In nested if-else statement placing if statement inside another IF Statement that is known as nested If in C Programming.
Example of nested if can be given as
#include <stdio.h>
int main()
{
int a,b,c;
printf("Enter 3 number\n");
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("A is greater: %d",a);
}
}
else
{
if(b>c)
{
printf("B is greater: %d",b);
}
else
{
printf("C is greater: %d",c);
}
}
return 0;
}
output:
Enter 3 number
4
7
9
c is greater: 9
Answer:
There is no short answer.
Explanation:
First let's create the string:
- alphabetString = "abcdefghijklmnopqrstuvwxyz";
The first half of the string using slice method can be written as:
- alphabetString.slice(0, 13);
The first half of the string using only the ending index can be written as:
- alphabetString.slice(-13);
When we put - at the start of the index number, the counting begins at the last element with -1 and goes backwards.
The second half of the string can be written as:
- alphabetString.slice(13,26);
The second half of the string using only the starting index can be written as:
- alphabetString.slice(13);
To get the every second letter in the string, we need a for loop:
- for( let x = 0; x < alphabetString.length(); x = x + 2){
alphabetString.slice(x);
}
To get the entire string in reverse, we can use the reverse method that is built-in:
- alphabetString.reverse();
To get the every third letter of the string, we can again use a for loop:
- for( let x = -1; x = -27; x = x - 3){
alphabetString.slice(x);
}
I hope this answer helps.