LIST-I (file mode parameters) LIST-II (Meaning) A. ios::ate I. Go to end of file on opening B. ios::in II. Open fails if the file already exists. C. ios::nocreate III. Open file for reading only D. ios::noreplace IV. Open fails if the file does not exist.
This question requires matching C++ file stream opening mode parameters (LIST-I) with their corresponding meanings (LIST-II). These parameters control how a file is opened and accessed.
Based on the definitions, the correct pairings are:
| LIST-I | LIST-II |
| A. ios::ate | I. Go to end of file on opening |
| B. ios::in | III. Open file for reading only |
| C. ios::nocreate | IV. Open fails if the file does not exist |
| D. ios::noreplace | II. Open fails if the file already exists |
Therefore, the correct combination is A-I, B-III, C-IV, D-II.
| List I | List II |
| A. Overloading | I. Since function call is resolved during run time, the execution is Slow. |
| B. Early binding | II. Since function call is resolved during compilation time, the execution is much faster. |
| C. Overriding | III. Supports compile-time polymorphism. |
| D. Late Binding | IV. Supports run-time polymorphism. |
Which operator is used for dynamic memory allocation in C++?