Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Groovy Assessment Test

Topics Covered

  • Groovy Control Structures
  • Groovy Gradle
  • Groovy Scripts
  • Groovy OOPs
  • Groovy Meta - Programming
  • Groovy Unit Tests
  • Groovlets

Useful for hiring

  • Groovy Developer 
  • Senior Groovy Developer
  •  

Start hiring job-fit candidates using this assessment

GET A DEMO

"Interview Mocha has provided UNEECOPS with a veritable assessment platform with a comprehensive test library, online test platform, and intelligent reports. This made it easier for us to map different job openings with job-fit candidates and recruit faster."

Nisha Chandila, UNEECOPS,
Talent Acquisition Manager
Question

You write a web application and build it by the Gradle build tool. When you see all Gradle tasks, there isn't task 'war'. What a problem may it be?

Answer
    • You forget to set plugin 'jar' in build.xml.

    • You forget to set plugin 'war' in build.gradle.

    • You forget to set plugin 'web' in build.gradle.

    • You forget to set plugin 'war' in web.xml.

Question

You write an application and build it by the Gradle build tool. You need to add a new library to use in your application. What is the best way to do this?

Answer
    • Add your library into the folder lib directly.

    • Add a description of your library in the file build.gradle.

    • Add a description of your library into block dependencies in the file build.gradle.

    • Add your library into block dependencies in the file build.txt.

Question

You write a web application with groovlets. You need to get parameter of the request with name 'age' in your script. What is the best way to do this?

Answer
    • def age = params.age ?: 0

    • def age = params.age ? params.age : 0

    • def age = params.name == 'age' ? params.age : "not found"

    • def age = params.getAge

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO