Servlet Wipro

Servlet Wipro

University

15 Qs

quiz-placeholder

Similar activities

CC QUIZ A SECTION 25/02/2025

CC QUIZ A SECTION 25/02/2025

University

20 Qs

Servlet Wipro

Servlet Wipro

Assessment

Quiz

Engineering

University

Hard

Created by

Ms.Yatri Davda

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file in a Maven project defines dependencies, plugins, and build configuration?

build.gradle

pom.xml

settings.xml

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a pom.xml, what will happen if a dependency is defined with <scope>provided</scope>?

It will be packaged in the final JAR/WAR.

Maven will fetch and include it from repository.

It is required only during runtime.

It won’t be packaged, assuming it’s provided by the runtime/container.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You use a plugin in pom.xml but Maven throws "MojoExecutionException". What’s likely missing?

JDK

Plugin dependency

Classpath

Maven repository

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following goals is not a part of the Maven build lifecycle?

validate

package

deploy

merge

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you forget to declare <groupId> in your dependency?

It’s optional

Build fails

Maven assumes “default” group

Compilation succeeds but runtime fails

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You have this snippet in pom.xml:

What is its purpose?

Downloads Java 11

Configures Maven to use JDK 11 for compiling

Specifies JVM version at runtime

To define project dependencies.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following servlet code snippets will lead to a thread-safety issue?

This servlet is thread-safe

Only causes issue if counter is static

Not thread-safe, as counter is shared among threads

Will throw compilation error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?