Concepts of Programming Languages

(Sean Pound) #1
Review Questions 519

REVIEW QUESTIONS



  1. What are the two kinds of abstractions in programming languages?

  2. Define abstract data type.

  3. What are the advantages of the two parts of the definition of abstract data
    type?

  4. What are the language design requirements for a language that supports
    abstract data types?

  5. What are the language design issues for abstract data types?

  6. Explain how information hiding is provided in an Ada package.

  7. To what is the private part of an Ada package specification visible?

  8. What is the difference between private and limited private types
    in Ada?

  9. What is in an Ada package specification? What about a body package?

  10. What is the use of the Ada with clause?

  11. What is the use of the Ada use clause?

  12. What is the fundamental difference between a C++ class and an Ada
    package?

  13. From where are C++ objects allocated?

  14. In what different places can the definition of a C++ member function
    appear?

  15. What is the purpose of a C++ constructor?

  16. What are the legal return types of a constructor?

  17. Where are all Java methods defined?

  18. How are C++ class instances created?

  19. How are the interface and implementation sections of an Objective-C
    class specified?

  20. Are Objective-C classes types?

  21. What is the access level of Objective-C methods?

  22. What is the origin of the syntax of method calls in Objective-C?

  23. When are constructors implicitly called in Objective-C?

  24. Why are properties better than specifying an instance variable to be
    public?

  25. From where are Java class instances allocated?

  26. Why does Java not have destructors?

  27. Where are all Java methods defined?

  28. Where are Java classes allocated?

  29. Why are destructors not as frequently needed in Java as they are in C++?

Free download pdf