Shannon Anderson-Rush
Quiz por , criado more than 1 year ago

Quiz sobre APCSA Unit 5 Review, criado por Shannon Anderson-Rush em 29-10-2017.

2303
0
0
Shannon Anderson-Rush
Criado por Shannon Anderson-Rush mais de 6 anos atrás
Fechar

APCSA Unit 5 Review

Questão 1 de 10

1

What is a condition that should be true when a method is called?

Selecione uma das seguintes:

  • Constructor

  • Precondition

  • Postcondition

Explicação

Questão 2 de 10

1

Cannot have any return type, even void.

Selecione uma das seguintes:

  • Constructor

  • Precondition

  • Postcondition

Explicação

Questão 3 de 10

1

A variable declared in a method is local to that method and cannot be used outside of it.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 4 de 10

1

Most objects contain accessor and mutator methods to allow the client to manage data in a controlled manner.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 5 de 10

1

A return value must match the return type in the method header.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 6 de 10

1

When a method is called, the formal parameters are copied into the actual parameters. The types of the corresponding parameters must match.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 7 de 10

1

You can have multiple methods with the same name in the same program.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 8 de 10

1

A method invoked through one object may take as a parameter another oject of the same class.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 9 de 10

1

Instance variables should be declared with public visibility to protect their data.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 10 de 10

1

Each object has a state and a set of behaviors.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação