There are so many units of length.In order to measure the length of pencil the most appropriate unit is cm.
+++
For everyday use maybe, but please note that officially we are supposed to use the millimetre.
Apart from the cubic centimetre, used in chemistry and engine specifications, the centimetre is tolerated but not a "Preferred Unit" in the SI scales we are all meant to use.
The official, named divisions of the Metre are the milli-, micro- and nano- metres. The centi- and deci- metre don't get a look-in, certainly not in science and engineering.
The metric unit of length is the 'meter'.
The base unit for length is the metre.
The metric unit used to measure the mass of a pencil would be grams (g).
Meters should be used to measure the length of a tennis court in metric units.
The meter.
centimeter
The metric unit of length is the 'meter'.
The basic metric unit of measure for length is the meter (m).
The standard unit of measure for length in the metric system is the meter.
You could use either centimeters or millimeters, but probably centimeters.
Any metric unit would do. But it might be easier to pick something smaller than the length of the pencil, like a centimeter, or a millimeter.
An average pencil when new would be around 15 centimetres long.
Centimetre
The base unit for length is the metre.
The standard unit of measure for length in the metric system, known as the "ku," is the meter.
millimetres
The metric unit is the meter scaled to centimeters.