Actually came across a few bears in Tahoe last fall. They will honestly leave you alone if don't do anything stupid and if you do get scared and they're close just yell loud and they will just saunter off.
For one of them, we were literally walking in the woods and not ten feet in front of us...