Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice TestPractice Test
About Exam
medium Solved by 6 students

Data Type For Precise Decimal Arithmetic

Mark
< Prev
Next >

A banking application needs to represent account balances, such as $1,234.56. The application must perform calculations, like computing interest, that require exact decimal arithmetic to avoid rounding errors. Which data type is most appropriate for storing these balances?

A

BigDecimal (reference type)

B

int

C

boolean

D

double

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1kaisuki11 0m 00s 100
#2Potter1611 0m 07s 93
#3lsj0803092211 0m 12s 88
#4liuwilliam07241012 0m 23s 67
#5chunxiangxu.cxu01 0m 18s -28
#6richa.tuli02 2m 35s -175
#7bommasam00026 7m 00s -260
#8zgj0731041734 22m 50s -1,080
Items per page:
10
1 – 8 of 8

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|