beneficiary income

If I am named as a beneficiary in someone's investment or bank account, and that person dies, how am I taxed on the account? 

 

Is it considered income tax?   Is is based on the total value of the account, or on the interest earned on the account?