Shannon Anderson-Rush
Test por , creado hace más de 1 año

Test sobre APCSA Unit 5 Review, creado por Shannon Anderson-Rush el 29/10/2017.

2303
0
0
Shannon Anderson-Rush
Creado por Shannon Anderson-Rush hace más de 6 años
Cerrar

APCSA Unit 5 Review

Pregunta 1 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • Constructor

  • Precondition

  • Postcondition

Explicación

Pregunta 2 de 10

1

Cannot have any return type, even void.

Selecciona una de las siguientes respuestas posibles:

  • Constructor

  • Precondition

  • Postcondition

Explicación

Pregunta 3 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 4 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 5 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 7 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 8 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 9 de 10

1

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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 10 de 10

1

Each object has a state and a set of behaviors.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación