Lect 9

Lect 9

University

40 Qs

quiz-placeholder

Similar activities

INDUSTRIAL ARTS

INDUSTRIAL ARTS

University

35 Qs

Operations Review 3

Operations Review 3

University

39 Qs

Constellations and Their Motion

Constellations and Their Motion

4th Grade - University

39 Qs

Patterns of:  Math, Reading, and Science

Patterns of: Math, Reading, and Science

5th Grade - Professional Development

40 Qs

IBIEM: Script. Lights, and Audio

IBIEM: Script. Lights, and Audio

University

36 Qs

Basic Photoshop Terms

Basic Photoshop Terms

10th Grade - University

42 Qs

Prelim Exam in Tourism and Hospitality Marketing -  BSHM 3A

Prelim Exam in Tourism and Hospitality Marketing - BSHM 3A

University

35 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?