Answer:
Following is the code in Java Language :
DecimalFormat form1= new DecimalFormat ("0.####"); // create an instance of . //DecimalFormat
System.out.println (form1.format(res)); // display the value in proper format
Explanation:
Following are the description of the program
- Firstly we create the instance of DecimalFormat i.e "form1" that will round a formatted value to four decimal places. To create an instance or object of the class we can use a new keyword.
- Finally, we print the format by using the format method.In the format method, we pass the variable "res".The System.out.println() is used to display the value of the format.
Answer:
The code to this question can be given as:
Code:
public interface Test //define interface
{
public abstract Duration getDuration(); //define method
getDuration.
public abstract Result check(int a);
//define method
check .
public abstract double getScore();
//define method getScore.
}
Explanation:
In the above code, we define an interface that is "Test" inside an interface, we define three methods that can be defined as:
- First, we define a method that is "getDuration" that method returns Duration as an object.
- Second, we define a method that is "check" this method accepts an integer parameter that is a and return Result.
- The third method is "getScore" this method will return a double value.
Answer: c)Roaming user profiles
Explanation:Roaming user profiles are those profiles that creates the copy from the local profile and get stored in the network server. Roaming user profiles haves the function of getting logged in any computer system that the user is processing by getting downloaded.
It has the advantage of not creating profiles on every computer system that user wants to login .Thus, the correct answer is option(c) because other profiles mentioned in the option cannot copy the profile in the server and so do not have capability to be accessed in other computer system.
HTML5
HTML5 has fewer plug-ins like the ability to standardize how audio and video are presented on a Web page. It introduces the <video> element designed to remove the need to install 3rd party add-ons and plug-ins like adobe flash player. It also adds the <audio> element too that allows pages to smoothly add audio files.