The compound-complex sentence is:
I studied for the test, and I felt confident because I practiced a lot.
This sentence contains two independent clauses ("I studied for the test" and "I felt confident") and one dependent clause ("because I practiced a lot").