Recently, however, M has been portrayed by a woman, Judi Dench. Q ... stands for quartermaster, the job title given to James Bond's gadget inventor.