Exam 5: Methods
Exam 1: Introduction to Computers and Java51 Questions
Exam 2: Java Fundamentals61 Questions
Exam 3: Decision Structures64 Questions
Exam 4: Loops and Files57 Questions
Exam 5: Methods60 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class64 Questions
Exam 8: A Second Look at Classes and Objects50 Questions
Exam 9: Text Processing and More About Wrapper Classes60 Questions
Exam 10: Inheritance70 Questions
Exam 11: Exceptions and Advanced File IO56 Questions
Exam 12: A First Look at GUI Applications60 Questions
Exam 13: Advanced GUI Applications58 Questions
Exam 14: Applets and More54 Questions
Exam 15: Creating GUI Applications With Javafx and Scene Builder40 Questions
Exam 16: Recursion42 Questions
Exam 17: Databases48 Questions
Select questions type
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);
}
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
You should always document a method by writing comments that appear:
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
A
If method A calls method B, and method B calls method C, and method C calls method D, when method D finishes, what happens?
Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
C
The phrase divide and conquer is sometimes used to describe:
(Multiple Choice)
4.9/5
(41)
The process of breaking a problem down into smaller pieces is sometimes called:
(Multiple Choice)
4.9/5
(34)
What is wrong with the following method call?
DisplayValue (double x);
(Multiple Choice)
4.9/5
(33)
To document the return value of a method, use this in a documentation comment.
(Multiple Choice)
4.9/5
(46)
When an argument value is passed to a method, the receiving parameter variable is:
(Multiple Choice)
4.8/5
(41)
Methods are commonly used to break a problem into small manageable pieces.
(True/False)
4.9/5
(41)
Any method that calls a method with a throws clause in its header must:
(Multiple Choice)
4.7/5
(43)
Constants, variables, and the values of expressions may be passed as arguments to a method.
(True/False)
4.8/5
(41)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)