A. In the Middle Ages most people were illiterate, so could not write their names. Instead they scrawled an X and kissed it to affirm their sincerity. The kiss and the cross became synonymous.
X has also long been used as shorthand for Christ (hence Xmas), so by kissing it one was making a pledge in the name of the Lord.