Test
Chapter 5: Starting Out With Java Review Questions
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (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
- AVerdadero
- BFalso
11When passing an argument to a method, Java will automatically perform a widening conversing if necessary
- AVerdadero
- BFalso
12When passing an argument to a method, Java will automatically perform a narrowing conversion if necessary
- AVerdadero
- BFalso
13A parameter variable's scope is the entire program that contains the method in which the parameter is declared
- AVerdadero
- BFalso
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
- AVerdadero
- BFalso
15When an object, such as a String, is passed as an argument, it is actually a reference to the object that is passed
- AVerdadero
- BFalso
16The contents of a String object cannot be changed
- AVerdadero
- BFalso
17When passing multiple arguments to a method, the order in which the arguments are passed is not important
- AVerdadero
- BFalso
18No two methods in the same program can have a local variable with the same name
- AVerdadero
- BFalso
19It is possible for one method to access a local variable that is declared in another method
- AVerdadero
- BFalso
20You must have a return statement in a value-returning method
- AVerdadero
- BFalso
Información
- Descripción
- Exam CIS 2348 Test sobre Chapter 5: Starting Out With Java Review Questions, creado por . . el 03/05/2016.
- Autor
- . .
- Idioma
- English
- Visitas
- 6
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test