On quadratic programming problems with extreme points