Trying to understand pull-up resistors

Still 5V

It depends on what this switch is.