Responses of a quantum wire (QW) connected with wide reservoirs to time-dependent external voltages are investigated in self-consistent manner. Distributions of the internal potential and the induced charge density, capacitance, and conductance are calculated. Results indicate that these physical quantities depend strongly on the Fermi energy of systems and the frequency of external voltages. With the increase of the Fermi energy, capacitance and conductance show some resonant peaks due to the open of the next higher quantum channels and the oscillations related to the longitudinal resonant electron states. Frequency-dependent conductance shows two different responses to the external voltages, inductive-like and capacitive-like; and the peaks structure of capacitance is related to the plasmon-like excitation in mesoscopic conductor.