C and C++ short answers

  1. Polymorphism (def'n)
    providing a single interface to entities of different types.
  2. Encapsulation (def'n):
    The enforcement of abstraction by mechanisms that prevent access to implementation details of an object or a group of objects except through a well-defined interface.
  3. Inheritance (def'n)
    When a derived class is said to inherit or include the members of its base classes; it is the base class plus more.
  4. Function Overriding (def'n).
    Declaring a function in a derived class with the same name and a matching type as a virtual function in a base class.
  5. Function Overloading (def'n)
    Having more than one function with the same name in the same scope or having more than one operator with the same name in the same scope.
  6. Abstract Class (def'n)
    A class defining an interface only; used as a base class.
  7. Argument (def'n)
    A a value passed to a function or a template.
  8. Virtual Constructor(def'n)
    The name of a technique for calling a virtual function to create an object of an appropriate type
  9. Virtual Member Function (def'n)
    A member function that a derived class can override;the primary mechanism for run-time polymorphism in C++.
  10. Invariant (def'n)
    A condition of the representation of an object (the object's state) that should hold each time an interface function is called;usually established by a constructor.
  11. iostream (def'n)
    A (1) standard library flexible, extensible, type-safe input and output framework, or (2) stream that can be used for both input and output.
  12. Preprocessor (def'n)
    The part of a C++ implementation that removes comments, performs macro substitution and #includes.
  13. If-statement (def'n)
    Statement selecting between two alternatives based on a condition.
  14. ifstream (def'n)
    A file stream for input.
  15. ofstream (def'n)
    A file stream for output.
  16. operator delete() (def'n)
    deallocation function used by delete#.
  17. One Definition Rule (def'n)
    There must be exactly one definition of each entity in a program.
  18. operator new() (def'n)
    allocation function used by new--possibly defined by user.
  19. malloc() (def'n)
    C standard allocation function. Use new or vector instead.
  20. Loop (def'n)
    A statement that expresses the notion of doing something zero or more times.
  21. Liskov Substitution Principle (def'n)
    Designing classes so that any derived class will be acceptable where its base class is.
  22. Macros (def'n)
    A facility for character substitution which doesn't obey C++ scope or type rules; don't use them unless you absolutely have to.
  23. Container (def'n)
    Object that holds other objects -- this includes standard library template such as vector, list, and map.
  24. Vector (def'n)
    The standard library template providing contiguous storage, re-sizing and the useful push_back() functions for adding elements at the end.Vector is the default container.
  25. Map (def'n)
    The standard library associative  container, based on "less than" ordering.
  26. While loop (def'n)
    A loop statement presenting its condition "at the top".
  27. void * (def'n)
    A pointer to void; that is, a pointer to an object of unknown type; this cannot be used or assigned without a cast.
  28. Virtual-function table (def'n)
    A table of all virtual functions for a class.
  29. Expression (def'n)
    A combination of operators and names producing a value.
  30. Statement (def'n)
    The basic unit controlling the execution flow in a function.
  31. Static Member (def'n)
    Member of a class for which there is only one copy for the whole program, rather than one per object.
  32. static keyword (def'n)
    A keyword used to declare a class member to be declared as allocated in static memory.for a member function, this implies that there is no this pointer.
  33. Static memory (def'n)
    Memory allocated by the linker.
  34. Standard Template Library (def'n)
    This is a library created by Alex Stepanov, which became the basis for the containers, algorithms, and iterators part of the ISO C++ standard library.
  35. strcmp() (def'n)
    a C-style standard library function for comparing C-style strings.
  36. stringstream (def'n)
    A string stream for input and output.
  37. void keyword (def'n)
    A keyword used to indicate an absence of information.
  38. volatile keyword (def'n)
    An attribute of a declaration telling the compiler that an entity can have its value changed by extralinguistic means.
  39. Virtual base (def'n)
    a base that is shared by all classes in a class hierarchy that has declared it virtual.
  40. Class keyword (def'n)
    a user-defined type. It can have member functions, member data, member constants, and member types.
  41. Member function (def'n)
    A function declared in the scope of a class.
  42. Data member  (or member data) (def'n)
    member of a class that can hold a value.
  43. Destructor (def'n)
    A member of a class used to clean up before deleting an object.
  44. object (def'n 1 of 2)
    A contiguous region of memory holding a value of some type.
  45. object (def'n 2 of 2)
    named or unnamed variable of some type;
  46. multimap (def'n)
    map that allows multiple values for a key.
  47. header file (def'n)
    A file holding declarations used in more than one translation unit.
  48. translation unit (def'n)
    a part of a program that can be separately compiled.
  49. try-block (def'n)
    A block, prefixed by the keyword try, specifying handlers for exceptions.
  50. .c or .cpp file (def'n)
    A file containing definitions (or implementations).
  51. Access control (def'n)
    access to bases and members of a class can be controlled by declaring them public, protected, or private.
  52. protected (member) keyword (def'n)
    A member accessible only from classes derived from its class.
  53. public (member) keyword (def'n)
    A member accessible to all users of a class.
  54. priority_queue (def'n)
    Standard library container where a priority determines the order in which an element reaches the head of the queue.
  55. static_cast  (def'n)
    A type conversion operation that converts between related types,such as pointer types within a class hierarchy and between enumerations and integral types.
  56. dynamic_cast (def'n)
    A type conversion operation that performs safe conversions using on run time type information.Used for navigation of a class hierarchy.
  57. run time type information (or RTTI) (def'n)
    Information about a type available at run time through operations on an object of that type.
  58. template (def'n)
    A class or function parameterized by a set of types, values, or templates.
  59. this keyword (def'n)
    pointer to the object for which a non-static member function is called.
  60. pointer (def'n)
    An object holding an address or 0.
Author
geschw66
ID
333321
Card Set
C and C++ short answers
Description
A short answer Q and A style set of note cards. This is suitable for reversing the answers and questions. No more than one sentence answers. Questions are terms or words pertaining to C and/or C++.
Updated