Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Quiz 5: Methods
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Values stored in local variables
Question 22
Multiple Choice
Which of the following is not a part of the method header?
Question 23
Multiple Choice
What will be the result of the following code? int num; String str = "555"; Num = Integer.parseInt(string str) + 5;
Question 24
Multiple Choice
Given the following method header,which of the method calls would be an error? public void displayValues(double x,int y)
Question 25
Multiple Choice
When an argument value is passed to a method,the receiving parameter variable is
Question 26
Multiple Choice
When writing the documentation comments for a method,you can provide a description of each parameter by using a
Question 27
Multiple Choice
A value-returning method must specify this as its return type in the method header.
Question 28
Multiple Choice
In the following code,Integer.parseInt(str) ,is an example of ________. int num; String str = "555"; Num = Integer.parseInt(str) + 5;
Question 29
Multiple Choice
Local variables can be initialized with
Question 30
Multiple Choice
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) ; }
Question 31
Multiple Choice
Which of the following is included in a method call?
Question 32
Multiple Choice
The process of breaking a problem down into smaller pieces is called
Question 33
Multiple Choice
What will be returned from the following method? public static int methodA() { Double a = 8.5 + 9.5; Return a; }
Question 34
Multiple Choice
In a general sense,a method is
Question 35
Multiple Choice
Assume that the following method header is for a method in class A. public void displayValue(int value) Assume that the following code segments appear in another method,also in class A.Which contains a legal call to the displayValue method?