Dynamic Object-oriented Programming! Trivia Quiz

10 Questions | Attempts: 88
Share

SettingsSettingsSettings
Java Quizzes & Trivia

Are you looking for a quiz on Dynamic Object-oriented Programming? This type of programming that enables a programmer to edit a software both during the development stage and after it has been implemented. The quiz will not only refresh your memory on what you know about this software, but it will also aim at ensuring that you understand it better.


Questions and Answers
  • 1. 
    The _____ construct in Groovy makes it easy to implement the visitor pattern.
  • 2. 
    Based on the POGO you see below you can conclude that 'first' is a public property of Person.public Person{ String first; String last; }Person p = new Person(first: 'Robert', last: 'Rodini')p.first='Bob'
    • A. 

      True

    • B. 

      False

  • 3. 
    Enter the Groovy declaration for main method: ________________
  • 4. 
    Groovy has Multiple Inheritance whereas Java does not.
    • A. 

      True

    • B. 

      False

  • 5. 
    In Groovy every object has a class and a _______.
  • 6. 
    In Groovy a method invocation is:
    • A. 

      Direct

    • B. 

      Indirect

  • 7. 
    In Groovy a class's methods can be extended at run-time.
    • A. 

      True

    • B. 

      False

  • 8. 
    You should do something intelligent if you implement "methodMissing()" in a class.
    • A. 

      True

    • B. 

      False

  • 9. 
    Groovy, like Java, limits the number of public classes in one file to exactly one.
    • A. 

      True

    • B. 

      False

  • 10. 
    Expando class documentation can be found in:
    • A. 

      The JDK documentation

    • B. 

      The GDK documentation

    • C. 

      The Groovy library documentation

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.