A simple pendulum is oscillating in a lift. If the lift starts moving upwards with a uniform acceleration, the period will

A. remain unaffected
B. be longer
C. may be shorter or longer, depending on the magnitude of acceleration
D. be shorter