Match List I with List II Choose the correct answer from the options given below :List I List II (Programming Paradigm) (Characteristic) A. Imperative I. Declarative, clausal representation, theorem proving B. Object‐oriented II. Side‐effect free, declarative, expression evaluation C. Logic III. Imperative, abstract data type D. Functional IV. Command‐based, procedural
A ‐ IV, B ‐ III, C ‐ I, D ‐ II
The characteristic matches are A–IV, B–III, C–I, D–II: imperative programming uses commands and procedures; conventional object-oriented programming organizes state and operations into objects; logic programming uses clauses and inference; and pure functional programming evaluates expressions without side effects.
| 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++?
| 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. |