[Skip Navigation] [CSUSB] / [CNS] / [Comp Sci & Eng Dept] / [R J Botting] / [CSci202] / 09polytf
[Text Version] [Syllabus] [Schedule] [Glossary] [Resources] [Grading] [Contact] [Question] [Search ]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Mon Apr 27 07:26:40 PDT 2009

Contents


    True/False questions on Polymorphism

  1. Destructors should always be virtual.. . . .. [ T ? F ? ]
  2. A pointer to a base class can point at an instance/object that belongs to a derived class.. . . .. [ T ? F ? ]
  3. The compiler resolves statically bound function calls and lets the running program handle the rest.. . . .. [ T ? F ? ]
  4. All member functions are statically bound . . . .. [ T ? F ? ]
  5. All data members are statically bound . . . .. [ T ? F ? ]
  6. Virtual member functions are always dynamically bound . . . .. [ T ? F ? ]
  7. Virtual member functions are dynamically bound when applied to pointers . . . .. [ T ? F ? ]
  8. If a function is virtual only if it is declared as virtual in the base class . . . .. [ T ? F ? ]
  9. If a function is virtual then it must be declared as virtual in each derived class . . . .. [ T ? F ? ]
  10. An abstract class has at least one pure virtual function.. . . .. [ T ? F ? ]
  11. Abstract classes can not have objects.. . . .. [ T ? F ? ]
  12. You can declare a pointer to an abstract class.. . . .. [ T ? F ? ]

    Abbreviations

  13. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
  14. class::="A description of a set of similar objects that have similar data plus the functions needed to manipulate the data".
  15. Data_Structure::=A small data base.
  16. Function::programming=A selfcontained and named piece of program that knows how to do something.
  17. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
  18. KDE::="Kommon Desktop Environment".
  19. object::="A little bit of knowledge -- some data and some know how", and instance of a class".
  20. OOP::="Object-Oriented Programming", Current paradigm for programming.
  21. Semantics::=Rules determining the meaning of correct statements in a language.
  22. SP::="Structured Programming", a previous paradigm for programming.
  23. STL::="The standard C++ library of classes and functions" -- also called the "Standard Template Library" because many of the classes and functions will work with any kind of data.
  24. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
  25. Q::software="A program I wrote to make software easier to develop",
  26. TBA::="To Be Announced", something I should do.
  27. TBD::="To Be Done", something you have to do.
  28. UML::="Unified Modeling Language".
  29. void::C++Keyword="Indicates a function that has no return".

End