Exam 5: Methods

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

In the method header the static method modifier means the method is available to code outside the class.

(True/False)
4.9/5
(46)

Which of the following would be a valid method call for the following method? public static void showProduct(double num1,int num2) { Double product; Product = num1 * num2; System.out.println("The product is " + Product); }

(Multiple Choice)
4.9/5
(42)

Local variables

(Multiple Choice)
4.9/5
(40)

Given the following method header,which of the method calls would be an error? public void displayValues(int x,int y)

(Multiple Choice)
4.8/5
(28)

Given the following method header,which of the method calls would be an error? public void displayValues(double x,int y)

(Multiple Choice)
4.8/5
(30)

This type of method performs a task and sends a value back to the code that called it.

(Multiple Choice)
4.9/5
(37)

Which of the following is not a benefit derived from using methods in programming?

(Multiple Choice)
4.7/5
(37)

Constants,variables,and the values of expressions may be passed as arguments to a method.

(True/False)
4.9/5
(44)

What will be the result of the following code? int num; String str = "555"; Num = Integer.parseInt(string str)+ 5;

(Multiple Choice)
4.9/5
(39)

Functional decomposition is

(Multiple Choice)
4.9/5
(37)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)