Answer:
partial
Explanation:
B. Discuss whether such an attack would succeed in systems protected by SSL.
Answer:
A. No, it would not succeed.
B. Yes, the attack will succeed.
Explanation:
In the seven-layer OSI model of computer networking, packet strictly refers to a protocol data unit at layer 3, the network layer. So if an attacker wants to insert bogus/ fake packets this will happen at the network layer.
A. IPSec works on network layer (the IP layer) of the OSI model protecting and authenticating IP packets. It provides data integrity, authentication and confidentiality between participating peers at the IP layer.
Thus, inserting bogus packets into the communications by an attacker will not have any affect on security of a system which has IPSec security and therefore it will not succeed.
B. SSL/TLS is an application layer protocol that fits into layer 5 to 7 of the OSI model. However, an attack by inserting bogus packets into the communications will succeed as SSL only provides protection for layer 5 to 7 and not the network layer.
Answer:
see explaination
Explanation:
please kindly see attachment for the step by step solution of the given problem.
bend slightly and stretch your right hand up
move your head back and forward slowly
blink your eyes often
Answer:
The program to this question as follows:
Program:
#include <iostream> //defining header file
using namespace std;
void PrintPopcornTime(int bagOunces) //defining method PrintPopcornTime that accepts bagOunces
{
//defining conditional statement
if (bagOunces < 3) //if block checks bagOunces less then 3
{
cout << "Too small"<<endl;
}
else if (bagOunces > 10)
{
cout << "Too large"<<endl; //else if value greater than 10
}
else //else block
{
cout << (bagOunces*6) <<" seconds"<<endl; //calculate seconds
}
}
int main()
{
int bagOunces; //defining integer variable bagOunces
cout<<"Enter number: "; //message
cin>>bagOunces; //input value by user
PrintPopcornTime(bagOunces); //calling the method
return 0;
}
Output:
Enter number: 3
18 seconds
Explanation:
In the above C++ language code, the first header file is defined, then the method "PrintPopcornTime" is defined, in this method, an integer variable "bagOunces" is passed as a parameter, inside the method a conditional statement is used that can be described as follows:
In the next step, the main method is defined, inside this method, an integer variable "bagOunces" is defined, which is used for user input and inside this method, the PrintPopcornTime is called.
The completed function "PrintPopcornTime()" can be referred to as given below.
We have,
The completed function "PrintPopcornTime()" as requested:
void PrintPopcornTime(int bagOunces) {
if (bagOunces < 2) {
System.out.println("Too small");
} else if (bagOunces > 10) {
System.out.println("Too large");
} else {
int time = 6 * bagOunces;
System.out.println(time + " seconds");
}
System.out.println();
}
In this function, we check the value of "bagOunces" using conditionalstatements.
If it's less than 2, we print "Too small".
If it's greater than 10, we print "Too large".
Otherwise, we calculate the time by multiplying 6 with "bagOunces" and print it followed by " seconds".
Finally, we print a new line to end the output.
Thus,
The completed function "PrintPopcornTime()" can be referred to as given above.
Learn more about programming of functions here:
#SPJ6
Answer:
I am writing a Python program:
def string_finder(target,search): #function that takes two parameters i.e. target string and a search string
position=(target.find(search))# returns lowest index of search if it is found in target string
if position==0: # if value of position is 0 means lowers index
return "Beginning" #the search string in the beginning of target string
elif position== len(target) - len(search): #if position is equal to the difference between lengths of the target and search strings
return "End" # returns end
elif position > 0 and position < len(target) -1: #if value of position is greater than 0 and it is less than length of target -1
return "Middle" #returns middle
else: #if none of above conditions is true return not found
return "not found"
#you can add an elif condition instead of else for not found condition as:
#elif position==-1
#returns "not found"
#tests the data for the following cases
print(string_finder("Georgia Tech", "Georgia"))
print(string_finder("Georgia Tech", "gia"))
print(string_finder("Georgia Tech", "Tech"))
print(string_finder("Georgia Tech", "Idaho"))
Explanation:
The program can also be written in by using string methods.
def string_finder(target,search): #method definition that takes target string and string to be searched
if target.startswith(search): #startswith() method scans the target string and checks if the (substring) search is present at the start of target string
return "Beginning" #if above condition it true return Beginning
elif target.endswith(search): #endswith() method scans the target string and checks if the (substring) search is present at the end of target string
return "End"#if above elif condition it true return End
elif target.find(search) != -1: #find method returns -1 if the search string is not in target string so if find method does not return -1 then it means that the search string is within the target string and two above conditions evaluated to false so search string must be in the middle of target string
return "Middle" #if above elif condition it true return End
else: #if none of the above conditions is true then returns Not Found
return "Not Found"
b. #include
c. #include container
d. #include deque
Answer:
d.#include deque
Explanation:
We have to include deque library in order to use a deque container and the syntax to include is #include<deque>.Deque is a double ended queue which is a sequence container and allows operations of contraction and expansion on both ends of the queue.Double ended queues are a special case of simple queue since in simple queue the insertion is from rear end and deletion is from front end but in deque insertion and deletion is possible at both ends rear and front.