Answer:
The printItem() method code is filled in the explanation, highlighted with bold font.
Explanation:
// ===== Code from file BaseItem.java =====
public class BaseItem {
protected String lastName;
public void setLastName(String providedName) {
lastName = providedName;
return;
}
// FIXME: Define printItem() method
/* Your solution goes here */
public void printItem() {
// TODO Auto-generated method stub
System.out.println("Last name: "+lastName);
}
}
// ===== end =====
Answer:
True of False?
True
Explanation:
Different sub domains can be directed to different IPs servers but a client server cannot be forced to keep looking at name servers for additional records.
To delegate a subdomain to a zone on another server, one would need to add NS-records for the sub-domain name. This would point to the host names of the DNS servers hosting the sub-domain - in the parent zone.
In the "DNS records" window right-click the parent zone in the left list and select "New NS-record":
Answer:
a) Open the DNS settings on your router and try using a different DNS.
Explanation:
The DNS or domain name service is a protocol that majorly assigns a URL string to an IP address. This is because the IP address as a number is easily forgotten.
In the question above, the operator could not access the websites with the URL name but can confirm connectivity to the site with its IP address. This means that the IP address can be used to access the websites directly, so, the DNS protocol is either not configured or is down.
Answer:
The solution code is written in Python:
- sec = int(input("Enter number of seconds: "))
-
- if(sec >=60):
- min = sec // 60
- sec = sec % 60
- else:
- min = 0
-
- print(str(min) + " minutes " + str(sec) + " seconds")
Explanation:
Firstly, use input function to prompt user to enter number of seconds and assign the input value to variable sec (Line 1).
Next, create an if statement to check if the sec is bigger or equal to 60 (Line 3). If so, we user // operator to get minutes and use % operator to get the seconds (Line 4 - 5).
Then we use print function to print the minutes and seconds (Line 9).