Tag: programming languages

Questions Related to programming languages

  1. You can define your own data types

  2. An object oriented program can be taught to correct its own errors

  3. It is easier to conceptualize an object oriented program

  4. You can define your own data types and It is easier to conceptualize an object oriented program


Correct Option: D
  1. That's not legal syntax!

  2. foo has memory allocated for it, but is not constructed

  3. foo has memory allocated for it, and is fully constructed

  4. None of the above


Correct Option: A
  1. If realloc fails, then the original memory is lost

  2. Nothing, realloc is guaranteed to succeed (by returning the original pointer)

  3. Nothing, realloc frees the original memory passed to it

  4. None of the above


Correct Option: A
  1. Information hiding

  2. Minimizing interdependencies among modules

  3. Make implementation independent

  4. All of these options


Correct Option: A
  1. An overloaded assignment operator

  2. The copy constructor

  3. A destructor

  4. All of these options


Correct Option: C
  1. Data Encapsulation, Inheritance & Exception handling

  2. Inheritance, Polymorphism & Exception handling

  3. Data Encapsulation, Inheritance & Polymorphism

  4. Overloading, Inheritance & Polymorphism


Correct Option: C
  1. Inheritance

  2. Composition

  3. Association

  4. All of these options


Correct Option: C
  1. using Bookmark resumption

  2. Using InArgument

  3. Using variables

  4. using bookmark resumption and using InArgument

  5. None of this


Correct Option: D
  1. using variable assigned to the OutArgument

  2. Using InArgument assigned to the OutArgument

  3. It is not possible

  4. None of the above


Correct Option: A