Groovy Quiz
  

Q.Groovy code is compiled to byte code that is executed by the Java Virtual Machine (JVM).

  • False
  • True


Q.In Groovy map, each element will be mapped to a

  • ID
  • Value
  • Key


Q.Groovy can be used as a scripting language.

  • False
  • True

Q.All the packages and classes in Groovy is imported by default, you do not have to use the import statement explicitly

  • False
  • True

Q.It is necessary to pass parameters while calling a parameterized method in Groovy.

  • True
  • False

Q.Automatic Resource Management or ARM block from java 7 are supported in Groovy

  • True
  • False


Q.Which class is used to create an XML document

  • XML Semantics Builder
  • XML Markup Builder

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

  • 1
  • 99
  • 100

Q.Groovy invokes Methods during _______ time.

  • Run Time
  • Compile Time

Q.Expandoclass in Groovy are inherited by default

  • False
  • True

Q.Keyword used to define a variable or method is

  • def
  • dim

Q.In groovy all methods and classes are--------------by default

  • Private
  • Public
  • Protected

 
Institute Finder



Enter Full Institute Name

Usefull Links
© 2021 Eduforum. All Rights Reserved.

Enter login details.

UserName Password

Recover Password

Enter your Registered Email Address to receive new password.
Subscribe Newsletter