Examlex

Solved

What Is the Output of the Following Code Snippet

question 34

Multiple Choice

What is the output of the following code snippet?
Public class test04
{
Public static int pow(int base, int power)
{
Int result = 1;
For (int i = 0; i < power; i++)
{
Result = result * base;
}
Return result;
}
Public static void main(String[] args)
{
System.out.println(pow(pow(2, 2) , 2) ) ;
}
}


Definitions:

Subsidiary Ledger

A detailed ledger that contains supporting information for a main accounting ledger, often used for accounts receivable or accounts payable.

Cash Receipts Journal

An accounting ledger in which all cash inflows or receipts are recorded.

Accounts Payable Subsidiary

A detailed ledger containing all individual creditor accounts, supporting the summary-level accounts payable figure in the general ledger.

Control Account

An account in the general ledger that summarizes and checks the accuracy of individual records in subsidiary ledgers.

Related Questions