QUIZ

  1. Define the following in the context of OOP.
    • (a) Polymorphism
    • (b) Overloading
    • (c) Encapsulation
    • (d) Inheritance.
  2. What is the difference between
    • (a) A data structure in C and a class in C++
    • (b) A class and an object
    • (c) A function and a method
    • (d) A function and a loop
    • (e) The declarative nature of a functional programming language and variable declarations?
  3. Why is computational laziness a desired property?
  4. Why do we need to pay attention to copy constructors? After all most OOP languages give us default copy constructors.
  5. What are the disadvantages of OOP?
  6. Why do people believe that functional programming is better suited for grid computing than OOP?
  7. What does x = x + 1 mean in a conventional procedural language and why is it illegal in a declarative functional language?

Get Principles of Quantitative Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.