According to one embodiment, a data processing apparatus includes a control section which, when the performance of the memory device is at a predetermined threshold value or higher, stores the frequency while associating it to a volume of the sound generated and increase a frequency of sound generated next by a certain frequency band from the frequency, when the performance of the memory device is less than the predetermined threshold level, decreases the volume of the sound by a certain volume level from the maximum volume, when the volume corresponding to the highest frequency, which is the predetermined frequency, is stored, finishes the measurement, and generates the sound from the lowest frequency to the highest frequency from the loudspeaker in accordance with the volume stored and the frequency corresponding to the volume.