4.5 Overflow and Underflow: Knowledge Check

Ace your homework & exams now with Quizwiz!

A variable of type unsigned char stores a value of 255. If the variable value is decremented, what exception will occur?

No Exception

A variable of type signed int stores a value of zero. If the variable value is incremented what exception will occur?

No Exception.

A variable of type signed int stores a value of -2147483648, If the variable value is decremented what exception will occur?

Underflow

A variable of type unsigned int stores a value of zero. If the variable value is decremented, what exception will occur?

Underflow

A variable of type unsigned short stores a value of zero. If the variable value is decremented, what exception will occur?

Underflow


Related study sets

Preventive Dentistry & Nutrition

View Set

chapter 10 (the water-soluble vitamins) understanding nutrition

View Set

Pharmacology unit 2 IV formulas math problems, dosage calc verifying safe dose

View Set

Chapter 6: Values, Ethics, and Advocacy

View Set