SAN FRANCISCO (Reuters) - Hewlett-Packard Co's fourth-quarter revenue beat expectations as rising sales from its key enterprise group helped offset a shrinking personal computer business, an optimistic sign that sent its shares rallying more than 7 percent.