Examlex

Solved

Which of the Following Code Snippets Will Generate a Random

question 96

Multiple Choice

Which of the following code snippets will generate a random number between 0 (inclusive) and 79 (inclusive) ? (Assume Random generator = new Random() ;)


Definitions:

Gain on Disposal

The profit earned from selling a capital asset for more than its book value.

Straight-line Method

A method of calculating depreciation of an asset, dividing the difference between its cost and salvage value by the total number of years it is expected to be in use.

Salvage Value

The expected financial return on an asset at the time of its disposal after its serviceable life has concluded.

Depreciation Expense

The allocation of the cost of a tangible asset over its useful life, reflecting wear and tear or obsolescence.

Related Questions