This question is from the PPL questions book, navigation part.
Given: QDM: 279° VAR: 5° W DEV: 5° E
The QDR equals...
QDM is magnetic bearing to station, QDR is magnetic bearing from station so VAR and DEV are here only to confuse you; the QDR is opposite of QDM so the answer is 099.
Notice that QDR and QDM do not depend on aircraft’s heading or flight path, they are only dependent on A/Cs location relative to the station.