Complete Modern C++ - noexcept

Complete Modern C++ - noexcept

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial discusses changes in exception handling from C++98 to C++17. Initially, C++98 allowed functions to specify the types of exceptions they could throw, but this feature was not widely used and was deprecated in C++11 in favor of the noexcept keyword. C++17 removed the feature entirely. The tutorial also covers issues with function pointers and exception specifications, highlighting how C++17 addresses these by enforcing stricter type checks to prevent errors.

Read more

5 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What was the purpose of exception specification in C++98?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain the changes made to exception handling in C++11 and C++17.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What issues arise when using function pointers with exception specifications?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

How does C++17 handle function pointers differently compared to previous standards?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the significance of the noexcept keyword in C++17?

Evaluate responses using AI:

OFF