It’s false I hope this helped you
<span>The statement that P2P networks are most commonly used in home networks is true.
</span>P2P stands for peer-to-peer communication network. It is an example of local administration. <span> Two or more PCs share files and access to devices such as printers without requiring a separate server computer or server software with P2P type of network.</span>
<span>C. Documents that convey buyers, sellers, and purchases made</span>
Answer:
Following are the code to this question:
#include <iostream> //defining header file
using namespace std;
void numbers(ostream &outs, const string& prefix, unsigned int levels); // method declaration
void numbers(ostream &outs, const string& prefix, unsigned int levels) //defining method number
{
string s; //defining string variable
if(levels == 0) //defining condition statement that check levels value is equal to 0
{
outs << prefix << endl; //use value
}
else //define else part
{
for(char c = '1'; c <= '9'; c++) //define loop that calls numbers method
{
s = prefix + c + '.'; // holding value in s variable
numbers(outs, s, levels-1); //call method numbers
}
}
}
int main() //defining main method
{
numbers(cout, "THERBLIG", 2); //call method numbers method that accepts value
return 0;
}
Output:
please find the attachment.
Explanation:
Program description:
- In the given program, a method number is declared, that accepts three arguments in its parameter that are "outs, prefix, levels", and all the variable uses the address operator to hold its value.
- Inside the method a conditional statement is used in which string variable s and a conditional statement is used, in if the block it checks level variable value is equal to 0. if it is false it will go to else block that uses the loop to call method.
- In the main method we call the number method and pass the value in its parameter.
Answer:
c. execution falls through the next branch until a break statement is reached
Explanation:
In a switch statement, if break is missing, then program continues to the next cases until it finds a break statement.
Consider the following example!
Example:
#include <iostream>
using namespace std;
int main()
{
int choice = 1;
switch (choice)
{
case 1:
printf("This is case 1, No break\n");
case 2:
printf("This is case 2, No break\n");
case 3:
printf("This is case 3, with break\n");
break;
default: printf("Error! wrong choice\n");
}
return 0;
}
Output:
This is case 1, No break
This is case 2, No break
This is case 3, with break
We have 3 cases here and case 1 and 2 don't have break statements, only case 3 has a break statement.
We called the case 1, then program continued to case 2, and finally to case 3 where it finds the break statement and terminates.
Therefore, we conclude that in a switch statement, if a break statement is missing, then execution falls through the next branch until a break statement is found.