Answer:
Following are the program to this question:
#include <iostream>//defining header file
using namespace std;
void OR_gate()//defining a method OR_gate
{
bool a,b;//defining bool vaiable
cin>>a>>b;//input value
if(a or b)//use if block to check condition
{
cout<<"1";//print message
}
}
int main()//defining main method
{
OR_gate();//calling method OR_gate
return 0;
}
Output:
0
1
1
Explanation:
In the above program, a method "OR_gate" is declared, and inside the method two bool variable "a and b" is defined, which input the value from the user end.
In the next step, an if block is defined, that uses the or gate to check input value and print the value that is equal to 1, and inside the main method, it call the "OR_gate" method.
Answer:
c. Messages flowing to the client typically use a source TCP port number of 80.
d. Messages flowing to the server typically use TCP.
Explanation:
When fred open the web browser and start a connection to the www.certskills.com website.Two things happens from the mentioned things
1.Messages that are going to the server are use TCP(Transmission Control Protocol).
2.Message goes to the client uses port number 80 that is of TCP used for transferring web pages.
Because the port number 80 is reserved for the HTTP used for transferring web pages that uses TCP protocol.