electric displacement vector code example Example: is displacement a vector quantity yes displacement is a vector Quantity