🧪 Apache Groovy MCQ Quiz Hub

Groovy MCQ

Choose a topic to test your knowledge and improve your Apache Groovy skills

1. What is the limitation of Groovy?




2. 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?




3. How Groovy string is expressed?




4. How can we build AST (Abstract Syntax Trees) in Groovy from string?




5. Explain GroovyDoc comment?




6. . Why Use Groovy?




7. What are Bitwise Operators in Groovy?




8. 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?




9. Mention the features offered by groovy JDK.




10. What are the advantages of groovy?




11. How Is Groovy string expressed?




12. What are the limitations of Groovy?




13. What are the features of groovy JDK?




14. How can we build AST (Abstract Syntax Trees) in Groovy from a string?




15. AST in Groovy can be built from




16. What is Groovydoc Comment?




17. What does JVM stand for?




18. Following the assignment def x = 2/3; what it the type of variable x?




19. Which tool provides a GUI for writing simple Groovy programs?




20. Which tool provides a GUI for writing simple Groovy programs?




21. Groovy is based on




22. Groovy is a high-level language




23. Groovy is




24. In static programming languages




25. In Groovy map, each element will be mapped to a A. B. C.




26. Groovy can be used as a scripting language.




27. What will be the output for the following code? def example = 1..100 println(example.getTo())




28. In groovy all methods and classes are--------------by default A. B. C.




29. AST in Groovy can be built from…




30. Which of the following is a reason why programmers use Groovy?




31. Groovy is an object oriented programming language for




32. All of the following are uses of Groovy except…




33. What term do you use in Groovy to declare a function outside a class?




34. Groovy does not require…




35. What is the limitation of Groovy?




36. How can we build AST (Abstract Syntax Trees) in Groovy from string?




37. What is the command to run a groovy file from the command line




38. How to use single line comments in groovy