Problem with UDP frames on Arduino Ethernet

First : admitting that the a variable is set to 0000000000111111. When I write it in the UDP frame with Udp.write(), Will the 10 zeros be conserved (Even if they are useless) or will they just disapear?

The value being written to the frame is 0b111111. The fact that you think of it as having 10 leading zeros is of no significance.

If I write each variable in the order above, Were will be stored the first one I wrote (a)? In the MSB side of the frame or in the LSB side?

You need to investigate what UDP.write() takes as an argument. Does it accept a byte? Or does it accept an int? If it accepts only a byte, what does it do to the value if you supply an int? Is the high order byte discarded?

The order of data in the frame is the order that you wrote it. The question is how big the things are that can be written to the frame. Don't shoot yourself in the foot by making (stupid) assumptions.