Quiz
Chapter 5: Starting Out With Java Review Questions
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (20)
11. This type of method does not return a value.
- Anull
- Bvoid
- Cempty
- Danonymous
22. This appears at the beginning of a method definition.
- Asemicolon
- Bparentheses
- Cbody
- Dheader
33. The body of a method is enclosed in __________.
- Acurly braces { }
- Bsquare brackets [ ]
- Cparentheses ()
- Dquotation marks " "
44. A method header can contain __________.
- Amethod modifiers
- Bthe method return type
- Cthe method name
- Da list of parameter declarations
- Eall of these
- Fnone of these
55. A value that is passed into a method when it is called is known as a(n) __________.
- Aparameter
- Bargument
- Csignal
- Dreturn value
66. A variable that receives a value that is passed into a method is known as a(n)
__________.- Aparameter
- Bargument
- Csignal
- Dreturn value
77. This javadoc tag is used to document a parameter variable.
- A@parameter
- B@param
- C@paramvar
- D@arg
88. This statement causes a method to end and sends a value back to the statement that
called the method.- Aend
- Bsend
- Cexit
- Dreturn
99. This javadoc tag is used to document a method’s return value.
- A@methodreturn
- B@ret
- C@return
- D@returnval
10You terminate a method header with a semicolon
- ATrue
- BFalse
11When passing an argument to a method, Java will automatically perform a widening conversing if necessary
- ATrue
- BFalse
12When passing an argument to a method, Java will automatically perform a narrowing conversion if necessary
- ATrue
- BFalse
13A parameter variable's scope is the entire program that contains the method in which the parameter is declared
- ATrue
- BFalse
14When code in a method changes the value of a parameter, it also changes the value of the argument that was passed into the parameter
- ATrue
- BFalse
15When an object, such as a String, is passed as an argument, it is actually a reference to the object that is passed
- ATrue
- BFalse
16The contents of a String object cannot be changed
- ATrue
- BFalse
17When passing multiple arguments to a method, the order in which the arguments are passed is not important
- ATrue
- BFalse
18No two methods in the same program can have a local variable with the same name
- ATrue
- BFalse
19It is possible for one method to access a local variable that is declared in another method
- ATrue
- BFalse
20You must have a return statement in a value-returning method
- ATrue
- BFalse
Information
- Description
- Exam CIS 2348 Quiz on Chapter 5: Starting Out With Java Review Questions, created by . . on 03/05/2016.
- Author
- . .
- Language
- English
- Views
- 6
- Tags
- Rating
- No ratings yet Rate this quiz