Voir dire is a legal term for procedures during a trial that help a judge decide certain issues:
Prospective jurors are questioned to decide whether they can be fair and impartial.
Witnesses are questioned to decide their competence to testify....
Wikipedia