Multiple choice When will the bad_alloc exception be thrown by a program? Thrown by pointer on allocation failure Thrown by new operator on allocation failure Thrown by wrong allocation of data type Thrown by cin and cout Reveal answer Fill a bubble to check yourself B Correct answer Explanation When we are allocating the memory using new operator and allocation fail, then bad_alloc exception is thrown by the program.