Exam 5: Methods
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
If method A calls method B,and method B calls method C,and method C calls method D,when method D finishes,what happens?
(Multiple Choice)
4.8/5
(46)
When an argument value is passed to a method,the receiving parameter variable is
(Multiple Choice)
4.9/5
(41)
Only constants and variables may be passed as arguments to methods.
(True/False)
4.8/5
(43)
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?
(Multiple Choice)
4.8/5
(38)
When a method tests an argument and returns a true or false value,it should return
(Multiple Choice)
4.9/5
(38)
The process of breaking a problem down into smaller pieces is called
(Multiple Choice)
4.9/5
(36)
When writing the documentation comments for a method,you can provide a description of each parameter by using a
(Multiple Choice)
4.9/5
(37)
A value-returning method can return a reference to a non-primitive type.
(True/False)
4.9/5
(35)
What will be returned from the following method? public static double methodA()
{
Double a = 8.5 + 9.5;
Return a;
}
(Multiple Choice)
4.9/5
(41)
What is wrong with the following method call? displayValue (double x);
(Multiple Choice)
4.8/5
(32)
No statement outside the method in which a parameter variable is declared can access the parameter by its name.
(True/False)
4.8/5
(37)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)