Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

The #ifndef directive tests to see whether ________

Answer» #ifndef checks whether the given token has been #defined earlier in the file or in an included file; if not, it includes the code between it and the closing #else or, if no #else is present, #endif statement. #ifndef is often used to make header files idempotent by defining a token once the file has been included and checking that the token was not set at the top of that file.
2.

The process of extracting the relevant attributes of an object is known as

Answer» Abstraction is the process of extracting the relevant properties of an object while ignoring nonessential details. The extracted properties define a view of the object.