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
Which environment variable is used to specify the path to maven?
Options
A : JAVA_HOME
B : PATH
C : MAVEN_HOME
D : CLASSPATH
Which file is used to define dependency in maven?
Options
A : build.xml
B : pom.xml
C : dependency.xml
D : version.xml
Which file is used to specify the packaging cycle?
Options
A : build.xml
B : pom.xml
C : dependency.xml
D : version.xml
Which is the Parent class of annotation class?
Options
A : Class
B : Object
C : Main
D : Super
Which of below is not a dependency management tool?
Options
A : Ant
B : Maven
C : Gradle
D : Jenkins
Which of the following annotation is used to avoid execution of Junits?
Options
A : @NoTest
B : @explicit
C : @avoid
D : @ignore
Which of the following is not a maven goal?
Options
A : clean
B : package
C : install
D : debug
Which one of the following is not an annotation used by Junit with Junit4?
Options
A : @Test
B : @BeforeClass
C : @AfterClass
D : @Ignored
Which one of the following is not ID generating strategy using @GeneratedValue annotation?
Options
A : Auto
B : Manual
C : Identity
D : Sequence
Annotations more Online Exam Quiz
Application Lifecycle - Ant, Maven and Jenkins