Answer:
#include <iostream>
using namespace std;
void MinMax(int x,int y,int z,int *max,int *min)
{
int big,small;
if((x>y)&&(x>z)) //to check for maximum value
big=x;
else if((y>x)&&(y>z))
big=y;
else
big=z;
if((x<y)&&(x<z)) //to check for minimum value
small=x;
else if((y<x)&&(y<z))
small=y;
else
small=z;
*max=big; //pointer pointing to maximum value
*min=small; //pointer pointing to minimum value
}
int main()
{
int big,small;
MinMax(43,29,100,&big,&small);
cout<<"Max is "<<big<<"\nMin is "<<small; //big and small variables will get value from method called
return 0;
}
OUTPUT :
Max is 100
Min is 29
Explanation:
When the method is called from first three integers maximum will be found using the conditions imposed and maximum value will be found and similarly will happen with the minimum value.
Answer:
The answers are "Option a, Option b, Option d, and Option c".
Explanation:
- The Traceroute utilizes the "Internet Control Message Protocol" for transmit and receive echo-request and echo-reply messages. This is most often used in the echo packets of specified interval to live (TTL) quantities.
- The Transport layer will be the next but is usually directly linked with the same name layer in the OSI model. Functions involve message fragmentation, acknowledgment, traffic management, session parallelization, error detection, as well as message rearranging.
- Leaders generally fully involve one or even more workers in design buildings.
- 67 was its UDP port number which is used as the port number of a database. So although UDP port number 68 is being used by the client.
Answer:
a. drop the attack packet(s)
Explanation:
An IPS not only detects and alerts system administrators but it also stops attacks. It is built to consistently monitor a network, report malicious incidents and take preventative actions. So, how does an IPS work exactly? An IPS does a deep packet inspection and either blocks the IP of whoever sent the malicious packet or removes the malicious packet's content and repackages its payloads. Thus, this means that the malicious packet is completely dropped by stripping off of its header information and any infected items in the packet.
Answer:
import random
number1 = random.randrange(0, 1000)
number2 = random.randrange(0, 1000)
answer = int(input("Enter a number: "))
if answer == number1 + number2:
print("Your answer is correct")
else:
print("Your answer is not correct")
Explanation:
The code is in Python
Create two integer numbers using random
Ask the user for an input
Check if answer is equal to number1 + number2. If they are equal, print "answer is correct". Otherwise, print "answer is not correct".
Answer:
ummm
Explanation:
your on your own it doesn't makes since