Search Header Logo

Servlet Wipro

Authored by Ms.Yatri Davda

Engineering

University

Used 1+ times

Servlet Wipro
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?