Annotations Online Exam Quiz

Annotations GK Quiz. Question and Answers related to Annotations. MCQ (Multiple Choice Questions with answers about Annotations

Using which annotation non visible or private method can be tested?

Options

A : @VisibleForTesting

B : @NonVisibleForTesting

C : @Visible

D : @NonVisible

View Answer

Which environment variable is used to specify the path to maven?

Options

A : JAVA_HOME

B : PATH

C : MAVEN_HOME

D : CLASSPATH

View Answer

Which file is used to define dependency in maven?

Options

A : build.xml

B : pom.xml

C : dependency.xml

D : version.xml

View Answer

Which file is used to specify the packaging cycle?

Options

A : build.xml

B : pom.xml

C : dependency.xml

D : version.xml

View Answer

Which is the Parent class of annotation class?

Options

A : Class

B : Object

C : Main

D : Super

View Answer

Which of below is not a dependency management tool?

Options

A : Ant

B : Maven

C : Gradle

D : Jenkins

View Answer

Which of the following annotation is used to avoid execution of Junits?

Options

A : @NoTest

B : @explicit

C : @avoid

D : @ignore

View Answer

Which of the following is not a maven goal?

Options

A : clean

B : package

C : install

D : debug

View Answer

Which one of the following is not an annotation used by Junit with Junit4?

Options

A : @Test

B : @BeforeClass

C : @AfterClass

D : @Ignored

View Answer

Which one of the following is not ID generating strategy using @GeneratedValue annotation?

Options

A : Auto

B : Manual

C : Identity

D : Sequence

View Answer

Annotations more Online Exam Quiz

Application Lifecycle - Ant, Maven and Jenkins

AutoCloseable, Closeable and Flushable Interfaces

Client and Server

Debugging in Eclipse

Design Patterns