What is Math.round(3.6)?
a. 3.0
b. 3
c. 4
d. 4.0
c. 4
Note that round returns an int value
You might also like to view...
In a sorting algorithm, the sort order can be changed by changing the __________ operator.
Fill in the blank(s) with the appropriate word(s).
Answer the following statements true (T) or false (F)
1) Virtual functions allow old code to call new code. 2) Virtual functions are implemented with a table look up that is done at run time. 3) Late binding refers to a failure to secure one’s ski boots. 4) In a class, functions declared with the virtual keyword need not be defined. 5) The virtual function mechanism binds the “right” function to objects.
Most programmers pass a variable by reference only when a procedure needs to produce more than one result.
Answer the following statement true (T) or false (F)
Add another constructor for the Student class that takes a name and a num- ber which is the number of grades this student will have. It should create the gradeArray based on the passed number of grades.
What will be an ideal response?