Will I have to appear in front of a judge?

Typically, no. In both kinds of bankruptcy, you will simply meet with a trustee near the start of your case, who will ask you some questions under oath. The trustee is just another attorney, not a judge. Your attorney will be present with you during this meeting and can help you in case you need help answering a question or providing information to the trustee.