How to evaluate an applicants attitude

In nurse education they sometimes talk about the triplet “skill, knowledge, attitude” towards patient safety [1]. In the development world, we can be quite good with evaluating skills and knowledge, but how about evaluating and talking about constructive attitudes? Been part of setting up a hiring pipeline before, with some exercises in OOP design given to the participants, which should be…