Intelligent Groovy Test

10 Questions | Total Attempts: 755

SettingsSettingsSettings
Intelligent Groovy Test - Quiz

Provided by Apache, Groovy is a programming language that integrates with any Java program with the help of the JVM. Take this quiz to assess your knowledge of Groovy.


Questions and Answers
  • 1. 
    Groovy is an object oriented programming language for...
    • A. 

      JVM

    • B. 

      HTML

    • C. 

      PHP

    • D. 

      Python

  • 2. 
    All of the following are uses of Groovy except...
    • A. 

      To combine Java modules

    • B. 

      To write Java application

    • C. 

      To extend existing Java applications

    • D. 

      To execute Java applications

  • 3. 
    One of the limitations of Groovy is...
    • A. 

      Rich stock of Java libraries

    • B. 

      Needs lots of money

    • C. 

      Operators can be overloaded

    • D. 

      Its completely object oriented

  • 4. 
    Groovy does not require...
    • A. 

      Large memory

    • B. 

      Java knowledge

    • C. 

      Syntaxes

    • D. 

      Class declaration

  • 5. 
    What term do you use in Groovy to declare a function outside a class?
    • A. 

      Div

    • B. 

      Class

    • C. 

      Def

    • D. 

      Function

  • 6. 
    What does JVM stand for
    • A. 

      Java Value-based Machine

    • B. 

      Java Virtual Machine

    • C. 

      JavaScript Virtual Machine

    • D. 

      JavaScript Value-based Machine

  • 7. 
    How can a Groovy string be expressed?
    • A. 

      It is surrounded by double quotes

    • B. 

      It make use of &

    • C. 

      It is surrounded by < and >

    • D. 

      It is closed by ^

  • 8. 
    AST in Groovy can be built from...
    • A. 

      Strings

    • B. 

      Codes

    • C. 

      DSL

    • D. 

      All of the above

  • 9. 
    Which of the following starts with a **/ and ends with */?
    • A. 

      Comments

    • B. 

      GroovyDoc

    • C. 

      Groovysh

    • D. 

      Codes

  • 10. 
    Which of the following is a reason why programmers use Groovy?
    • A. 

      It is fast and easy

    • B. 

      It requires a small portion of memory

    • C. 

      Documentation is thin

    • D. 

      Operators can be overloaded

Back to Top Back to top