APCSA Unit 5 Review

Description

Quiz on APCSA Unit 5 Review, created by Shannon Anderson-Rush on 29/10/2017.
Shannon Anderson-Rush
Quiz by Shannon Anderson-Rush, updated more than 1 year ago
Shannon Anderson-Rush
Created by Shannon Anderson-Rush over 6 years ago
2296
0

Resource summary

Question 1

Question
What is a condition that should be true when a method is called?
Answer
  • Constructor
  • Precondition
  • Postcondition

Question 2

Question
Cannot have any return type, even void.
Answer
  • Constructor
  • Precondition
  • Postcondition

Question 3

Question
A variable declared in a method is local to that method and cannot be used outside of it.
Answer
  • True
  • False

Question 4

Question
Most objects contain accessor and mutator methods to allow the client to manage data in a controlled manner.
Answer
  • True
  • False

Question 5

Question
A return value must match the return type in the method header.
Answer
  • True
  • False

Question 6

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

Question 7

Question
You can have multiple methods with the same name in the same program.
Answer
  • True
  • False

Question 8

Question
A method invoked through one object may take as a parameter another oject of the same class.
Answer
  • True
  • False

Question 9

Question
Instance variables should be declared with public visibility to protect their data.
Answer
  • True
  • False

Question 10

Question
Each object has a state and a set of behaviors.
Answer
  • True
  • False
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr