Answer:
4
Explanation:
For easier management of the host records of the company 4 zones should be used because
subdomain is part of a larger domain and the main domain which is the primary domain is the name which the company have decide to use which will represent the company website address and in a situation where the company
have different domain names in which they had registered, they will need to choose one among the domain which will inturn be their main domain.
Therefore for easier , efficient and effective management of the host records 4 zones will be the best zones to be used.
Example of sub domain is north.example.com
Answer: This is a python code
def lightyear():
rate=3*100000000 //speed of light
seconds=365*24*60*60 //number of seconds in 1 year
return str((rate*seconds)/1000)+" km" //distance=speed x time
print(lightyear()) //will print value of light hear in kilometers
OUTPUT :
9460800000000.0 km
Explanation:
In the above code, there is a variable rate, which stores the speed of light, i.e. distance traveled by light in 1 second which is in meters. Another variable is seconds, which store the number of seconds in 1 year, which is no of days in 1 year multiplied by the number of hours in a day multiplied by the number of minutes in an hour multiplied by the number of seconds in a minute. Finally, distance is speed multiplied by time, so distance is printed in kilometers and to convert distance in kilometers it is divided by 1000.
Answer:
painter = {'name' : "Vincent van Gogh", 'artworks': ["The Starry Night","Irises","The Potato Eaters"],'bornDate': "March 30, 1853", 'eyeColor': "July 29, 1890", 'diedDate': "July 29, 1890"} #this is a code which holds the questions defined value in a painter variable.
Explanation:
- The above question wants to declare a variable that is in the form of a key and value pair.
- The above question states to define name, artworks,eyeColor, and dieddate as a key and the other is defined as a value.
- when a user wants to access the whole dictionary then he can do with the help of the painter variable.
- But when he wants to access the value of any particular key, then he can do it with the help of the key name as "painter[keyname]".
Answer:
1)
officeAC = new AirConditioner();
officeAC.turnOn();
2)
officeAC = new AirConditioner();
officeAC.turnOn();
officeAC.setTemp(69);
Explanation:
1)
In the first statement a new object of the class AirConditioner whose reference is assigned to the officeAC. new is a keyword which creates an object of the class.
Next statement uses the method turnOn(). Reference to the new object officeAC is used to invoke this method turnOn().
2) The first two statements works the same as in 1)
The last statement invokes a method setTemp() using the reference variable and passes the value 69 to this method to set the desired temperature.
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>