A printing material container detachably attachable to a printing apparatus having a plurality of apparatus-side terminals, the printing material container comprising: a first device, which is a memory; a second device; and a terminal group that includes a plurality of first terminals (220, 230, 260-280), a plurality of second terminals (250, 290) and a plurality of third terminals (210,240), wherein: the plurality of first terminals are connected to the first device and respectively include a first contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of first terminals are connected to the memory and comprise a ground terminal, a power supply terminal, a reset terminal, a clock terminal, and a data terminal, the plurality of second terminals are connected to the second device and respectively include a second contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of second terminals are arranged to have a higher voltage externally applied thereto than the voltage applied to the plurality of first terminals, the plurality of third terminals are for the detection of shorting between at least one second terminal and at least one third terminal and respectively includes a third contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the first contact portions, the second contact portions, and the third contact portions are arranged so as to form multiple rows, the second contact portions are arranged at the outermost position among the contact portions of the terminal group viewed in a direction orthogonal to an insertion direction, and the first contact portions, the second contact portions, and the third contact portions are arranged in the following order along the direction orthogonal to the insertion direction: one second contact portion, one third contact portion, the first contact portions, another third contact portion, and another second contact portion. a first device, which is a memory; a second device; and a terminal group that includes a plurality of first terminals (220, 230, 260-280), a plurality of second terminals (250, 290) and a plurality of third terminals (210,240), wherein: the plurality of first terminals are connected to the first device and respectively include a first contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of first terminals are connected to the memory and comprise a ground terminal, a power supply terminal, a reset terminal, a clock terminal, and a data terminal, the plurality of second terminals are connected to the second device and respectively include a second contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of second terminals are arranged to have a higher voltage externally applied thereto than the voltage applied to the plurality of first terminals, the plurality of third terminals are for the detection of shorting between at least one second terminal and at least one third terminal and respectively includes a third contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the first contact portions, the second contact portions, and the third contact portions are arranged so as to form multiple rows, the second contact portions are arranged at the outermost position among the contact portions of the terminal group viewed in a direction orthogonal to an insertion direction, and the first contact portions, the second contact portions, and the third contact portions are arranged in the following order along the direction orthogonal to the insertion direction: one second contact portion, one third contact portion, the first contact portions, another third contact portion, and another second contact portion. the plurality of first terminals are connected to the first device and respectively include a first contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of first terminals are connected to the memory and comprise a ground terminal, a power supply terminal, a reset terminal, a clock terminal, and a data terminal, the plurality of second terminals are connected to the second device and respectively include a second contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the plurality of second terminals are arranged to have a higher voltage externally applied thereto than the voltage applied to the plurality of first terminals, the plurality of third terminals are for the detection of shorting between at least one second terminal and at least one third terminal and respectively includes a third contact portion (cp) for contacting a corresponding terminal among the plurality of apparatus-side terminals, the first contact portions, the second contact portions, and the third contact portions are arranged so as to form multiple rows, the second contact portions are arranged at the outermost position among the contact portions of the terminal group viewed in a direction orthogonal to an insertion direction, and the first contact portions, the second contact portions, and the third contact portions are arranged in the following order along the direction orthogonal to the insertion direction: one second contact portion, one third contact portion, the first contact portions, another third contact portion, and another second contact portion.