Quiz
Chapter 5: Starting Out With Java Review Questions
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem 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
- ARichtig
- BFalsch
11When passing an argument to a method, Java will automatically perform a widening conversing if necessary
- ARichtig
- BFalsch
12When passing an argument to a method, Java will automatically perform a narrowing conversion if necessary
- ARichtig
- BFalsch
13A parameter variable's scope is the entire program that contains the method in which the parameter is declared
- ARichtig
- BFalsch
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
- ARichtig
- BFalsch
15When an object, such as a String, is passed as an argument, it is actually a reference to the object that is passed
- ARichtig
- BFalsch
16The contents of a String object cannot be changed
- ARichtig
- BFalsch
17When passing multiple arguments to a method, the order in which the arguments are passed is not important
- ARichtig
- BFalsch
18No two methods in the same program can have a local variable with the same name
- ARichtig
- BFalsch
19It is possible for one method to access a local variable that is declared in another method
- ARichtig
- BFalsch
20You must have a return statement in a value-returning method
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Exam CIS 2348 Quiz am Chapter 5: Starting Out With Java Review Questions, erstellt von . . am 03/05/2016.
- Autor
- . .
- Sprache
- English
- Aufrufe
- 6
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz