Programming Q's.txt

  1. What is an enumerator?
    A distinct object type used to set a serious of constants.
  2. Give an example of an enumeration based on work week days
    enum WorkWeekDays { Monday, Tuesday, Wednesday, Thursday, Friday };
  3. What's the difference between a property and a field?
    Both are data variables in an object, when in an object internally (fields) and externally (properties)
  4. What are the three pillars of Object Oriented Programming (OOP)?
    (PIE) Polymorphism, Inheritance, and Encapsulation
  5. Define encapsulation:
    Ability to hide the data and behavior from others. This is done in OOP applications by making an object's methods or properties private. Considered one of the pillars of OOP design.
  6. Define inheritance:
    Ability of a class definition to acquire existing class definitions of another class, that is, to inherit characteristics of its predecessor. This forms a hierarchial relationship between the classes with the topmost class a superclass and the lower classes subclasses. Inheritance is one of the pillars of OOP design and it's achieved in C# using either an abstract class or an interface.
  7. Define polymorphism:
    Ability of an object instance to behave differently under different conditions. Two types exist: static [early binding/compile time polymorphism] and dynamic [late binding / run-time polymorphism]. Static polymorphism is achieve using (a) method overloading or (b) operator overloading. Dynamic polymorphism is achieved using (a) method overloading. Used to change the behavior of a parent class method from the child class WITHOUT changing the parent class nor the name of the method (i.e., PrintShape()). At runtime, the correct PrintShape() method for the object will be printed, dependant on its object type and state.
  8. What are the five (5) types of access modifiers?
    Private, public, protected, internal, protected internal
  9. Define private:
    Accessible only within the same class.
  10. Define public:
    Accessible to the same assembly or a referenced assembly.
  11. Define protected:
    Accessible only within the same class or in a derived class (inherited).
  12. Define internal:
    Accessible to the same assembly only (not a referenced assembly)
  13. Define protected internal:
    Accessible to the same assembly or by any derived class in another assembly (inherited).
  14. What are static variables and why use them?
    A class variable and NOT an instance variable, that is, a variable accessible by all class members and NOT by the objects created by the class itself. In this way, before an object is created, the static variable can be called and used. It is also retained on the server until the application is complete, meaning, even though a page may be loaded and the class destroyed, the variable still exists in memory in case another class wants to use it. It is beneficial to use because it uses less memory (all subsequent calls simply get the original variable).
  15. What are the six (6) stages of development at DSH?
    Development, Testing, Staging, UAT, Pre-Production, and Production
  16. In the development life cycle, where is integration testing done?
    Typically done in Testing Environment, along with Unit Testing
  17. In the development life cycle, where is regression testing done?
    Typically done in the Staging Environment using Requirements Documentation.
Card Set
Programming Q's.txt
Programming Questions