Skip to content
Sharp

Core Java · interview question

Which of the following expressions correctly calculates the new price after a 20% discount on a product?

Multiple choiceMediumchapter-1-curatedpremiumcore-javaoperators-and-expressions
Choose one answer
Answer and explanation

Correct answer

C. Price * 0.80

Why

To apply a 20% discount, you calculate 80% of the original price, which is done using 'price * 0.80'.

Test yourself on Core Java

A free test with instant, explained results. No account needed.

Start free test
All Core Java questions →