Which of the following methods returns a value?

A. Method changeName(String lName, String fName)
   lastName = lName
   firstName = fName
   Display "The name has been changed to " +
firstName + " " + lastName
End Method
B. Method displayInfo()
   Display "Account #: " + acctNumber
   Display "Account type: " + acctType
   Display "Owner name: " + lastName + ", " + firstName
   Display "Current balance: " + acctBal
End Method
C. Method withdraw(Numeric amt)
   acctBal = acctBal - amt
   Display "The new balance is: $" + acctBal
End Method
D. Method inquire()
   Return acctBal
End Method


Answer: D

Computer Science & Information Technology

You might also like to view...

In the figure above, item 7 is pointing to the ____.

A. file list displaying subfolders and files for the item B. Navigation pane C. column headings D. details pane

Computer Science & Information Technology

If you use the normal copy and paste procedure you will ________ that object in the destination file

Fill in the blank(s) with correct word

Computer Science & Information Technology

What feature enables you to display two documents on the same screen?

A) View two pages B) Split View C) View Duplicate D) View Side by Side

Computer Science & Information Technology

________ are arrows that display in the column titles of Excel data and that enable you to sort and filter the data when it is converted to a table

A) TRIM functions B) Schema C) Conditional formatting controls D) Filtering controls

Computer Science & Information Technology