Home

What is the correct answer?

4

Which of the following will produce a value of 10 if x = 9.7?

A. floor(x)

B. abs(x)

C. rint(x)

D. round(x)

Correct Answer :

D. round(x)


Related Questions

Every call to wait has a corresponding call to notify that will eventually… Give file is a file object, which of the following are legal statements… In RMI we invoke client method from remote server Which of the following will produce a value of 10 if x = 9.7? Objects are passed to a method by use of call-by-reference. The keywords reserved but not used in the initial version of Java re: Consider the following class definition.Class Student extends String{}What… Which of the following will produce a value of 22 if x=22.9: Connection, Statement are interfaces and ResultSet is a class. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… In the code below, what data types the variable x can have? A variable declared inside the for loop control can not be referenced… All methods in an abstract class must be declared abstract. Java is fully object oriented programme. Which of the following are the wrapper classes? When X is a positive number the operations x>> 2 and x>>>2… Declaring a method synchronized guarantees that the deadlock cannot occur. When we implement an interface method, it should be declared as public. The name of the RMI compiler is ___________ For all insert, update, delete, query operations on a database, ResultSet… We would like to make a member of a class visible in all subclasses regardless… A constructor must always invoke its supper class constructor in its first… It is an error to have a method with the same signature in both the super… Which of the following control expressions are valid for an if statement? The length of a string object 's1' can be obtained using the expression… It is perfectly legal to refer to any instance variable inside of a static… In a single Servlet class we can use____________ The check box group class is a subclass of the component class. Which of the following methods can be used to draw the outline of a square? Which exception is thrown by the read() method of InputStream class?