I have been asked in an interview if virtual memory is infinite? I answered saying that it is not infinite. Then the interviewer asked the explanation and what I suggested was t
You were right to say, no, it's not infinite.
Addressable virtual memory is limited by architecture address space.
For further info see virtual memory.