Question 2 has bigger options otherwise according to your policy they are 3 questions at a time.   1.) The signature of a method consists of ____________. a. method name b. parameter list c. return type d. None of the above 2.) You should fill in the blank in the following code with ______________.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Question 2 has bigger options otherwise according to your policy they are 3 questions at a time.
 
1.) The signature of a method consists of ____________.

a. method name
b. parameter list
c. return type
d. None of the above

2.) 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 ");
printGrade(78.5);

System.out.print("The grade is ");
printGrade(59.5);
}

public static void __________ (double score) {
if (score >= 90.0) {
System.out.println('A');
}
else if (score >= 80.0) {
System.out.println('B');
}
else if (score >= 70.0) {
System.out.println('C');
}
else if (score >= 60.0) {
System.out.println('D');
}
else {
System.out.println('F');
}
}
}

a. int
b. printGrade
c. printMe
 
 
 
 
 
 
 
d. double
e. void

3.) Assume double[][] x = new double[10][5], what are x.length and x[2].length?

a. 4 and 4
b. 10 and 5
c. 5 and 10
d. 5 and 5
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage