Answer:
2. <em>A reference of type A can be treated as a reference of type B</em> - False
Base class or its objects are not related to their derived class (or its objects).
Explanation:
class A {
int a;
public A() {
a = 7;
}
}
class B extends A {
int b;
public B() {
b = 8;
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
1. <em>After the constructor for class B executes, the variable a will have the value 7 </em>- True.
When an object of a derived class is declared, the constructor of base class is called before the constructor of derived class (is called).
3. <em>Both variables a and b are instance variables </em>- True.
Classes can have instance, or member, variables and methods.
4.<em> After the constructor for class B executes, the variable b will have the value 8</em> - True.
When object of class B is declared, its constructor was called, which initialized variable b to 8.
Answer:
import random
a = random.randint(1,10)
b = random.randint(1,10)
answer = a * b
print (str(a) + " X " + str(b) + " = " + str(answer))
Explanation:
Happy to help you mate
The options are missing from the question,below are the options to choose from;
A) incorrect (or missing) routes in a routers routing table
B) incorrect DNS configuration on the PC
C) incorrect default gateway configuration on the PC
D) duplicate IP addresses on your LAN
Answer: The correct answer to the question is option A
INCORRECT (OR MISSING) ROUTES IN A ROUTERS ROUTING TABLE.
Explanation: When it is possible for a PC to ping some devices but not actually all,we can then make an assumption that either it has a wrong subnet that is configured or the router from the path to the remote device actually has an incorrect or a missing routes to the device.
Answer:
<h2>Option B: #VALUE</h2>
is the correct answer.
Explanation:
<h3>Reasons of #VALUE error:</h3>
- When cells are not given the expected type of value.
- If cells are left blank unnoticeable or for giving a null value.
- For entering dates and other numerical data in text form.
<h3>Correcting and fixing #VALUE error:</h3>
This type of error can only be fixed by finding the cell in which there is wrong data entered and correct it.
Fixing the #VALUE error is tricky as some functions automatically ignore the data that is invalid.
<h3>EXAMPLE:</h3>
- Suppose a cell contains the value as cost of the object and in order to make it 0, NA is inserted into the cell.
- While making total of all the costs, that particular cell might cause #VALUE error.
- Following image attach will help you clear the concept.
I hope it will help you!
That would be false. The correct term is "intranet"