Let assume are lettered A to E in that order. Thus, there
will be 10 potential lines: AB, AC, AD, AE, BC, BD, BE, CD, CE and DE. Each of
these potential lines has 4 possibilities. Therefore, the total number of
topologies is 4¹⁰=1,048,576. 1,048,576. At 100ms <span>it will take 104,857.6 seconds which is slightly above 29 hours to inspect
each and one of them.</span>
Answer: Between Layers 2 and 3
Explanation:
In between Layer 2 and Layer 3 the MPLS header is present and is known as Shim header. It is also said to be in 2.5.
Answer:
Explanation:
Python Code:
date = int(input("Enter today's day numerically: "))
if date == 15 :
print("it's Payday")
elif date == 30 :
print("it's Payday")
else:
print("Sorry, not a PayDay");
Code Explanation:
First get date integer value from input by using input() method in python.
After that check is entered date equals to 15 or 30 then print it's Payday and at the end if user enter other then 15 and 30 the print Sorry, not a PayDay in else clause.
Code Ouput
Enter today's day numerically: 15
it's Payday
Enter today's day numerically: 17
Sorry, not a PayDay
Answer:
#include <iostream>
using namespace std;
int main()
{
cout << "N\t10*N\t100*N\t1000*N" << endl;
int x=1;
while(x<=5){
cout << x <<"\t"<< x*10 <<"\t"<<x*100 <<"\t"<< x*1000 << endl;
x++;
}
return 0;
}
Explanation:
Print the header, N 10*N 100*N 1000*N, using \t
Initialize the x as 1. It will be used to control the while loop
Create a while loop that iterates while x is smaller than or equal to 5
Inside the loop, print the required values. After printing, increment the value of x by 1
Answer:
Explanation:
If a function is not working, there are three possibilities to consider: There is something wrong with the arguments the function is getting; a precondition is violated. There is something wrong with the function; a postcondition is violated. There is something wrong with the return value or the way it is being used.
a. precondition
A precondition is a prerequisite. It's the thing that has to happen before something else happens. ... When it's a verb, precondition means to prepare something (or someone).
b)a postcondition
A postcondition is the states the system can be in after the use case has ended. Consider the following: The states described by pre- or postconditions should be states that the user can observe. "The user has logged on to the system" or "The user has opened the document" are examples of observable states.
c)As in any programming language, "return value" means the value that is returned by any sub-routine. All subroutines need not return values, sometimes return void (means nothing). Return values often indicate something about the completion of the task or result of an operation.