Answer:
public static String repeat(String text, int repeatCount) {
if(repeatCount < 0) {
throw new IllegalArgumentException("repeat count should be either 0 or a positive value");
}
if(repeatCount == 0) {
return "";
} else {
return text + repeat(text, repeatCount-1);
}
}
Explanation:
Here repeatCount is an int value.
at first we will check if repeatCount is non negative number and if it is code will throw exception.
If the value is 0 then we will return ""
If the value is >0 then recursive function is called again untill the repeatCount value is 0.
Answer:
c. recovery time objective
Explanation:
- Recovery time objective (RTO) is the maximum acceptable duration permitted between an unfortunate loss or failure and the restoration of normal operations and services.
- According to the RTO, the systems, applications or operations must be restored within a targeted time period after a disaster, to avoid unacceptable outcomes of the disruption.
-
So a business process must be recovered within this period of time.
-
It measures how much a failure affects the normal operations, applications and systems and RTO is measures in time units like seconds minutes hours or days.
- In simple words RTO refers to the time you need to restore system, applications and data.
- For instance a 2-hour RTO refers to restore and get operations or services back to running within 2 hours of the service failure or outrage.
Answer:
1st way: On the Insert tab, in the Illustrations group, click Chart. In the Insert Chart dialog box, click a chart, and then click OK.
2nd way: Click INSERT > Chart. Click the chart type and then double-click the chart you want.
<span>Simulation games recreate a real-world environment. </span>