Answer:
Following are the steps with actions that are involved in required to perform a packet transfer.
Explanation:
- Step 1: The host sends a connection request to server which is at IP address 209.165.200.254
- Step 2: R1 check the configuration of NAT to inquire weather the packet should be translated or not.
- Step 3: If there is no entry found for translation of given IP address, It is assumed that the IP address 192.168.10.10 will be translated already.
- Step 4: R1 selects a global address from the dynamic address pool that is available to it.
- Step 5: R1 replaces the given IP address 192.168.10.10 with the translated inside global address.
i hope it will help you!
Abcdefghijklmnopqrstuvwxyz now I know my abcs, next time won’t you sing with me :)
Answer:
Syntax error
Explanation:
This is a type of error that occurs when there is a problem with the code that makes it unable to compile and execute.
For example, making a conditional statement without using the correct parameters will result in a syntax error.
Answer:
showProduct(int,double)
for example: showProduct(10,10.5) is the correct answer even showProduct(10,10.0) is also correct but showProduct(10.0,10.5) or showProduct(10,10) or showProduct(10.0,10) are wrong calls.
Explanation:
The code is
- <em>public static void showProduct (int num1, double num2){</em>
- <em> int product;</em>
- <em> product = num1*(int)num2;</em>
- <em> System.out.println("The product is "+product);</em>
- <em> }</em>
showProduct is function which asks for two arguments whenever it is called, first one is integer and second one is of type double which is nothing but decimal point numbers. Generally, in programming languages, 10 is treated as integer but 10.0 is treated as decimal point number, but in real life they are same.
If showProduct( 10,10.0) is called the output will be 'The product is 100'.
Strange fact is that, if you enter showProduct(10,10.5) the output will remain same as 'The product is 100'. This happens because in the 3rd line of code,which is <em>product=num1*(int)num2</em>, (int) is placed before num2 which makes num2 as of type integer, which means whatever the value of num2 two is given, numbers after decimal is erased and only the integer part is used there.
This is necessary in JAVA and many other programming languages as you <u>cannot</u><u> multiply two different datatypes</u> (here one is int and another is double). Either both of them should be of type int or both should be of type double.
Answer:
d) daco = new Banana;
Explanation:
Dynamically allocated variables have their memory allocated in the heap memory.We declare a dynamical variable like this:-
int *a=new int ;
It means a pointer a is created on the stack memory which hold the address of the block that hold the value of variable a in heap memory.
We already have the pointer daco. We just have to initialize with keyword new.
It will be like daco=new Banana; which matches the option d.