Lect 9

Lect 9

University

40 Qs

quiz-placeholder

Similar activities

EDUC 215 final review

EDUC 215 final review

University

36 Qs

Workshop Theory1

Workshop Theory1

University

38 Qs

Hair, Fibers, and Pollen

Hair, Fibers, and Pollen

9th Grade - University

40 Qs

Ulangan Tengah Semester Genap

Ulangan Tengah Semester Genap

University

40 Qs

UNIT - 1

UNIT - 1

University

45 Qs

Economics year 3

Economics year 3

University

40 Qs

Characteristics of Connected Speech

Characteristics of Connected Speech

University

43 Qs

color quiz

color quiz

6th Grade - University

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