Question 93Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

In C++, "Out-of-range-index" belong to ________ type exception while keyboard interrupts are called ________ exceptions.

  1. ASynchronous; synchronous
  2. BSynchronous; asynchronous
  3. CAsynchronous; synchronous
  4. DAsynchronous; asynchronous
Show answerHide answer

Correct answer: (B) Synchronous; asynchronous

Explanation

Errors such as out-of-range index come from the program's own execution, so they are synchronous. Events beyond the program's control, such as keyboard interrupts, are asynchronous.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 93 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.