Mark V. Hurd 's short stint as the chief executive of Hewlett-Packard received a symbolic boost on Tuesday as the computer and printer giant reported quarterly earnings that slightly exceeded analyst expectations .