NAME: ________________________

Object-oriented programming Test

Question Types


Prompt With


Question Limit

of 15 available terms

5 Written Questions

5 Multiple Choice Questions

  1. Object contains both: data stored in properties
    Means to do something w the data (using methods)
  2. designer, project manager & programmer are all based on and extend a person object
  3. Bob holds data (e.g. birth date) and methods that work with the data (e.g. calculate age)
  4. you can call methods Bob:talk, Jill:talk & Jack:talk and all will work fine producing different results. each "object" inherited the "method" talk from Person and customized it
  5. Bob's date of birth is June 1st, 1980, gender: male, hair: black

5 True/False Questions

  1. objectsBob can eat sleep drink dream talk calculate his age

          

  2. OBJECTSBob can eat sleep drink dream talk calculate his age

          

  3. methodsClass = blueprint, recipe
    note: no classes in js, everything is based on objects, it is prototypal OO language

          

  4. information hidingreuse code already written. in javascript objects inherit from other objects, usually adds new methods (verb) to inherited ones — "extending" the old object "B inherits from A" & "B extends A"
    note: object that inherits methods can pick one or more and redefine them, customizing or "overriding"

          

  5. INHERITANCEBob's date of birth is June 1st, 1980, gender: male, hair: black