Section 11. A person chosen or appointed to an office may, unless otherwise provided by law, take and subscribe the oaths required to qualify him before the governor, lieutenant governor, secretary of the commonwealth, two councillors or two commissioners appointed under section three of chapter two hundred and twenty-two.