You should fill in the blank in the following code with ______________.

```
public class Test {
public static void main(String[] args) {
System.out.print("The grade is " + getGrade(78.5));
System.out.print("\nThe grade is " + getGrade(59.5));
}

public static _________ getGrade(double score) {
if (score >= 90.0)
return 'A';
else if (score >= 80.0)
return 'B';
else if (score >= 70.0)
return 'C';
else if (score >= 60.0)
return 'D';
else
return 'F';
}
}
```
a. int
b. double
c. boolean
d. char
e. void


d. char
char should be placed here because the method returns a character.

Computer Science & Information Technology

You might also like to view...

To vertically align text, click the Page Setup Dialog Box Launcher and then click the Layout tab.  In the Page section, click the arrow next to the Vertical alignment box and choose Top, Center, Justified, or End.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Any blanks or parentheses in a row or column label will be changed to _____ in defined names.

A. ampersands B. underscore characters C. hyphens D. dashes

Computer Science & Information Technology

A ________ is a pattern composed of a sequence of characters that describe allowable input variants.

A. canonicalization B. race condition C. regular expression D. shell script

Computer Science & Information Technology

Which statement is used to remove data from the database?

a. SELECT b. UPDATE c. INSERT d. DELETE

Computer Science & Information Technology