Lect 9

Lect 9

University

40 Qs

quiz-placeholder

Similar activities

Enviro Sci Review 2

Enviro Sci Review 2

KG - University

35 Qs

INDUSTRIAL ARTS

INDUSTRIAL ARTS

University

35 Qs

CAD101 Final Exam

CAD101 Final Exam

7th Grade - Professional Development

40 Qs

Pruebas de Software Quiz

Pruebas de Software Quiz

University

39 Qs

GEN ED 4 QUIZ

GEN ED 4 QUIZ

University

35 Qs

Production Audio - Final Exam Review

Production Audio - Final Exam Review

University

39 Qs

Sewing machine

Sewing machine

8th Grade - University

45 Qs

Lect 9

Lect 9

Assessment

Quiz

Other

University

Easy

Created by

Hoang Tran

Used 4+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main goal of design patterns?

To replace object-oriented programming

To slow down the development process

To provide proven solutions to recurring design problems

To compile code faster

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When are design patterns primarily used in the SDLC?

During coding

During deployment

During analysis and design

During testing

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a type of design pattern?

Creational

Structural

Behavioral

Operational

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Singleton pattern ensure?

Multiple instances exist per object

Only one instance of a class exists

One and only one instance of a class exists globally

Objects are always lazily initialized

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Singleton, when is the instance created in lazy instantiation?

At compile time

During class declaration

When it is first needed

At application shutdown

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of Singleton in Spring?

REST controller

Spring Bean

JSP file

JPA Repository

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to get a bean in Spring's BeanFactory?

newBean()

getBean()

makeBean()

createInstance()

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?