Exam 7: User-Defined Methods
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of Java50 Questions
Exam 3: Introduction to Objects and Inputoutput50 Questions
Exam 4: Control Structures I: Selection50 Questions
Exam 5: Control Structures II: Repetition50 Questions
Exam 6: Graphical User Interface Gui and Object-Oriented Design OOD50 Questions
Exam 7: User-Defined Methods50 Questions
Exam 8: User-Defined Classes and Adts50 Questions
Exam 9: Arrays50 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics49 Questions
Exam 13: Recursion50 Questions
Exam 14: Searching and Sorting50 Questions
Select questions type
Formal parameters of primitive data types provide ____ between actual parameters and formal parameters.
Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
A
Just like the nesting of loops, Java allows the nesting of methods.
Free
(True/False)
4.8/5
(26)
Correct Answer:
False
What is the return type of the method in the accompanying figure?
(Multiple Choice)
4.7/5
(35)
A local identifier is an identifier that is declared within a method or block and that is visible only within that method or block.
(True/False)
4.7/5
(43)
Based on the method heading in the accompanying figure, what is the return type of the value returned?
(Multiple Choice)
4.9/5
(42)
An identifier can be declared anywhere including within a class, and outside of every method definition (and every block).
(True/False)
4.7/5
(38)
If a formal parameter is a variable of a primitive data type, then after copying the value of the actual parameter, there is no connection between the formal and actual parameter.
(True/False)
4.9/5
(39)
Java allows the programmer to declare a variable in the initialization statement of the for statement.
(True/False)
4.9/5
(37)
Based on the code in the accompanying figure, what would be the output of the following statement? System.out.println(mystery(8, mystery(2, 1));
(Multiple Choice)
4.8/5
(41)
The signature of a method consists of only its formal parameter list.
(True/False)
4.7/5
(37)
Which of the following identifiers seen in the accompanying figure is visible in block one?
(Multiple Choice)
4.9/5
(33)
Which of the following identifiers seen in the accompanying figure is NOT visible in method funcOne?
(Multiple Choice)
4.9/5
(43)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)