Quiz
Chapter 5: Starting Out With Java Review Questions
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do 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
- AVerdadeiro
- BFalso
11When passing an argument to a method, Java will automatically perform a widening conversing if necessary
- AVerdadeiro
- BFalso
12When passing an argument to a method, Java will automatically perform a narrowing conversion if necessary
- AVerdadeiro
- BFalso
13A parameter variable's scope is the entire program that contains the method in which the parameter is declared
- AVerdadeiro
- 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
- AVerdadeiro
- BFalso
15When an object, such as a String, is passed as an argument, it is actually a reference to the object that is passed
- AVerdadeiro
- BFalso
16The contents of a String object cannot be changed
- AVerdadeiro
- BFalso
17When passing multiple arguments to a method, the order in which the arguments are passed is not important
- AVerdadeiro
- BFalso
18No two methods in the same program can have a local variable with the same name
- AVerdadeiro
- BFalso
19It is possible for one method to access a local variable that is declared in another method
- AVerdadeiro
- BFalso
20You must have a return statement in a value-returning method
- AVerdadeiro
- BFalso
Informações
- Descrição
- Exam CIS 2348 Quiz sobre Chapter 5: Starting Out With Java Review Questions, criado por . . em 03-05-2016.
- Autor
- . .
- Idioma
- English
- Visualizações
- 6
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz