Answer:
int sumAll(int n)//function definition.
{
if(n==1)//if condition.
return 1;
else//else condition.
{
return n+sumAll(n-1);//return the value and call the function in recursive manner.
}
}
Explanation:
- The above-defined function is a recursive type function that is written in the c language, which holds the if and else condition.
- When the user passes the largest value from 1, then the else condition will be executed which adds the largest value and pass the value after the decrement of the value as an argument.
- When the value will become 1, then the function if-block will be executed which returns the value and ends the calling function recursively.
Answer:
Number of fragments is 3
Explanation:
The maximum size of data field in each fragment = 4468 - 20(IP Header)
= 4448 bytes
Hence, the number of required fragment = (10000 - 20)/4448
= 3
Fragment 1
Id = 218
offset = 0
total length = 4468 bytes
flag = 1
Fragment 2
Id = 218
offset = 556
total length = 4468 bytes
flag = 1
Fragment 3
Id = 218
offset = 1112
total length = 1144 bytes
flag = 0
Answer:
Option A is the correct answer for the above question.
Explanation:
- The computer is a system that processes the data to produce information. For any computer system when the data is processed then it will form the information.
- The user gives some instruction to process that can also be called the program. Then the computer takes the instruction and processes the data on behalf of the instruction and for the information because in any system when data is processed it can form the information.
- The above question says that the computer follows the instruction to process the data to produce the information which is correct as described above. Hence True is the correct answer to the above question.
it depends on the organization some organizations are more monopolizing than others so it really just depends on the organization that it talks about