The law requires this for your protection because you might say something which later can be used by the prosecution, against you. Your lawyer, experienced in criminal jury trials can advise you whether or not to answer the questions and can also apprise you in regard to the consequences in case you choose to answer the questions.