No, you didn't fail the only time you fail when you fail in any thing and feel badly and don't try to be successful. again.
Don't stop trying in the the next time you'll pass the exam and you'll be so proud of yourself ان شاء الله.
Study hard and try to answer questions at your home.
My last advice for you don't give up