Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 1 Account.java Which of the following are local data (local variables)?

ID: 3733380 • Letter: Q

Question

QUESTION 1

Account.java Which of the following are local data (local variables)?

balance

name

acctNum

initBal

owner

number

withdraw

amtToTake

deposit

amtToAdd

getBalance

toString

s

There are no local variables

QUESTION 2

Account.java Which of the following are instance variables for an Account object?

balance

name

acctNum

initBal

owner

number

withdraw

amtToTake

deposit

amtToAdd

getBalance

toString

s

Account objects have no instance variables

QUESTION 3

Account.java Which of the following are actual parameters (also called arguments)?

balance

name

acctNum

initBal

owner

number

withdraw

amtToTake

deposit

amtToAdd

getBalance

toString

s

There are no actual parameters

  

QUESTION 4

Account.java Which of the following are formal parameters (also called parameters)?

balance

name

acctNum

initBal

owner

number

withdraw

amtToTake

deposit

amtToAdd

getBalance

toString

s

There are no formal parameters

balance

name

acctNum

initBal

owner

number

withdraw

amtToTake

deposit

amtToAdd

getBalance

toString

s

There are no local variables

Explanation / Answer

Account.java Which of the following are local data (local variables)?

----------------------------------------------------------------------------------------------

Account.java Which of the following are instance variables for an Account object?

----------------------------------------------------------------------------------------------

Account.java Which of the following are actual parameters (also called arguments)?

There are no actual parameters

----------------------------------------------------------------------------------------------

Account.java Which of the following are formal parameters (also called parameters)?

initBal
owner
number
amtToTake
amtToAdd

----------------------------------------------------------------------------------------------

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote