Same as real computer, virtual machine allows to change resolution of its monitor. But with virtual machine you have one more degree of freedom - non-standard screen resolutions. Use them if you want the virtual machine to occupy some specific part of your monitor.
Defining custom resolutions is different in different guest OSes.