Professional Documents
Culture Documents
Untitled
Untitled
Untitled
● TestCase
● TestResult
● TestRunner
● Assert
● None of these answers
● TestSuite
In the Liskov substitution principle, ”objects in a program should be replaceable with
instances of their ………….”
● Codes
● Parent types
● Subtypes
● Programs
● Command
”Identify the aspects of your application that vary and separate them from what stays the
same” results in :
● All of these
● More flexibility in your systems
● Tighter coupling of your system
● Less interfaces in your systems
● Less classes in your systems
What statements best describe the ”spaghetti-code” concept?
● Is describing solutions with complex inter dependency relations
● Is also known as a big ball of mud
● Can be avoided by using design patterns
● Can be avoided by writing small functions (with 1 or 2 arguments)
● This concept does not exist in programming
What design pattern allows you to build an object in steps?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
Given the following diagram that represents a solution that implements a Design Pattern,
indicate which one it is?
● Template
● Command
● Strategy
● Flyweight
● Adapter
● State
● Chain of Responsibility
● Composite
Function DoSomething(...) takes 10 arguments. What could be done to reduce their number.
(Multiple choice)
● Encapsulate logically related parameters
● Use the Builder pattern to manage it more efficiently
● Use a class and constructor instead
● Split the function and take result of subpart as input
● Keep the method and write comments explaining the meaning of each argument
You develop a software solution that allows the management of different email clients. Email
clients must be able to send and receive emails for a specific email address but also they can be used
to manage email groups composed of several email addresses. Users should be able to manage this
structure from their solution.
Users have the ability to modify/customize the email client during use. The proposed solution
must allow clients to modify/customize the solution by adding filters or email sorting criteria. Also,
the transmission function of a message can be modified by adding an additional confirmation or by
delaying the sending or specifying specific hours.
What are 2 design patterns that solve optimally? these 2 problems?
● Builder
● Adapter
● Composite
● Memento
● Prototype
● Decorator
● Proxy
● Flyweight
● Strategy
● Factory
● Observer
● Template
You have to test a function that determines the minimum of an array of values received as a
parameter of type int[] values. To perform unit tests (different from each other ) of type Cardinality =
2 and Ordering , what test data would you use? Choose one or more options.
● {9, 10, 8}
● {10)
● {7, 9, 5}
● {7, 8, 9, 10}
● {9, 10}
● {10, 9, 10, 9, 9}
● {10, 9, 6, 4}
What design pattern encapsulates a request/task as an object that will be executed later?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
You develop a software solution for an equipment, from a medical laboratory, equipment that
is used to completely automate the process of conducting blood tests. The equipment has a display
that shows its current status and is able to manage the complete analysis of a blood sample without the
involvement of laboratory employees. The display permanently displays messages specific to the
status of the medical equipment (waiting for the sample, loading the test tube, processing the data,
displaying the results, etc). At start-up, the equipment is on standby, but for the moment a test tube is
loaded, the equipment goes through all the phases on its own until the result is displayed. The display
also shows the equipment name. Messages are displayed as soon as the equipment changes to a new
state.
Implements the module that allows the efficient management of medical equipment, given
that it is autonomous and goes through several states/phases to display the final result.
It is also desired that the device software can efficiently manage different types of medical
tests, which derive from the MedicalAnalysis family of classes. The solution must efficiently generate
different types of analysis (Test-COVID, Cholesterol, Vitamins) being decoupled from the details of
creating these types. Over time, the details of these types of medical tests may change, but this
solution should not be affected.
What are the 2 design patterns that optimally solve these 2 problems?
● Command
● Composite
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
What design patterns allow a client to create families of objects without specifying the
concrete classes in them?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
For the following method, which statement is correct to ensure 100 % code coverage by
testing it?
had( in value ) hrows E ep ion
in r "' 0·
s l ·t ch (value ) (
c: e 11:
res. ·
br,e
c se,
CaJ!i!I! 10:
- 30 ·
def ul
return I ·
}
● 100% code coverage cannot be provided for this method, because the switch
statement has many branches
● 100% code coverage can be provided if tested with values 1 and 5
● 100% code coverage can be provided if tested with values 1, 5, 10 and 20
● 100% code coverage can be provided if tested with values 1, 5 and 10
● 100% code coverage cannot be provided for this method, as it generates an exception
Given the function for calculating the price of a ticket, indicate the minimum number of unit
tests (with different combinations of values) that must be implemented to ensure a 100% code
coverage?
J .. ,. " ) •
rn
● 2
● 5
● 6
● 1
● 4
● 3
What design pattern allows the definition of dependencies between objects, so that when an
object changes its state, all its dependencies are notified and updated automatically?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
What design pattern encapsulates state-dependent behaviors and uses delegation to switch
between them?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
You develop a software solution used by a medical laboratory to handle different requests for
analysis of samples of biological material (blood tests). The laboratory receives from different
medical offices the requests, and saves them in a queue. The analyzes are performed by different
medical departments that have special equipment for each type of analysis. Laboratories request these
tests indicating their type and the patient's name. When a request for analysis is registered in the
system, it is associated with the departament specialized in that type of analysis. Once the result of the
analysis is obtained, the department that processed it will send the result to the patient’s email ( the
patient's email and name are recorded in the request ).
It is also desired that in the laboratory software solution, the manager instance in charge of the
orders queue or the customer list should be unique, so as not to generate problems related to the way
customers or medical tests are managed.
What are the 2 design patterns that best solve these 2 problems?
● Command
● Adapter
● Composite
● Memento
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
When should Unit Tests be written in the Development Cycle (based on TDD) ?
● Unit Tests are written after the code during development in order to help coders test
that code
● Both of the above
● Unit Tests are to be written before the code during development in order to help
coders write the best code
● None of the above
You develop a software solution that allows customers to order food through similar
Glovo/FoodPanda services. Customers generate an order with the respective products. The order will
be taken over by a courier available in the system. The order will be delivered in the future but the
delivery time depends on several external factors (traffic, congestion in the store, etc). Orders
registered in the system can no longer be canceled and are not lost.
At this moment each customer can include in the order any kind of products but the solution
must allow the addition of filters/rules in the future (does not allow orders less than a certain amount,
does not allow orders for certain products, adds the cost of transport to order or increase restaurant
prices by an amount) that limits/controls customer options. These changes must be included in the
back-end services when the customer adds a product.
What are the 2 design patterns that optionally solve these 2 problems?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
You have a class that accepts and returns values in British imperial units (feets, miles, etc),
but you must use it for metric units. Which design pattern would best solve the problem?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
You develop a software solution that allows efficient management of school for thousands of
students from the same profile. The main problem of the client is the reduction of the memory space
occupied by this data in RAM. Your solution must allow this considering the information (discipline
sheet, objectives, topics, etc.) regarding the courses followed by the students are common.
The solution must also allow taking the exams. They can be oral, quiz based, with open
questions, requiring uploading files, etc. The way of taking the exams will be established by the
course coordinating teacher regardless of the options of other teachers who coordinate the same type
of course.
What are the 2 design patterns that optimally solve these 2 problems?
● Command
● Builder
● Adapter
● Composite
● Memento
● Facade
● Chain of Responsibility
● Prototype
● Decorator
● Proxy
● Flyweight
● Singleton
● Strategy
● Factory (toate tipurile)
● State
● Observer
Given the function for calculating the price of a ticket and the following restrictions:
● the area takes values in the set (1,2,3)
● the base price is positive but less than 1000
Indicates which of the method parameters can be used for an Order test?
•• n t I ., ,, ,., , bool Iii
CHI!
1n~ll"r1u r,r1cir ;
c■ ■ ):
tn, l'>rt,
r· a
. •. i< 1.2f~
-
CH 1:
ina l'r le • t .3;
n,a
switch( valoarel ) {
case 1'0 :
rezultat += 10J
break;
case 2:0:
rezultat += 20j
break ·
case 30:
rezultat += 30 ·
break;
default :
rezultat += 50;
}
Given the next class, select the statements (one or more) that describe it correctly:
public class DbConnection (
String i p·
r i ng d il _;
static {
(}_j
ing ..ge p() ng~ .g D alil())·
Your repository can get a person by id or by some query. Which of the following method definition
pairs suits the best?
● Person GetById(string id), Person GetByQuery(Query query)
● Person GetBy(string id), Person GetBy(Query query)
● Person GetById(string id, Query query)
● Person Get(string id), Person Get(Query query)
In open/close principles, the software entities are open for extension but closed for
● Development
● Corrections
● Errors
● Modifications
Which of the following code snippet represents a Singleton design pattern implementation?
publ ic clas s Pr i ntM.anag e r l {
ubl ic Print:Managerl ,- .9TMICE - e · Prin. nager O ;
p ubl ic Pri.ntMana g e r O { }
publ ic s t " c PrintManagerl getrn~tance () {
return I NSTANCE ;
}
}
p b c cl ss Prin · a age 3 {
p r i vat e s a t i c f i nal P rin Ma.na g r3 I STAN,E n ew rin Manager 3 0;
r ' vate rintManager3 0 I}
p ub l ic s at i c P rin M.anager 3 ge · Inst a nce O {
n I STANCE;
}
J
You develop a software solution for editing bitmap images for children. The solution should
allow users to see the history of changes and allow them to return to a point in time of their choice.
Being an application for children, the solution allows them to start a drawing from a
collection of predefined drawing templates. The application must allow the efficient management and
creation of these different templates. Each template is a simple black & white drawing that is
generated with minimum resources.
What are the 2 design patterns that optimally solve these 2 problems?
● Observer
● Factory
● Prototype
● Strategy
● Memento
● Template
● Command
● Proxy
● Composite
● Builder
● State
● Chain of Responsibility
● Singleton
● Adapter
● Flyweight
● Decorator
Which of the following design patterns implements the Hollywood principle - Don't Call Us,
We'll Call You?
● Observer
● Factory
● Prototype
● Strategy
● Memento
● Template
● Command
● Proxy
● Composite
● Builder
● State
● Chain of Responsibility
● Singleton
● Adapter
● Flyweight
● Decorator
Given the following diagram that represents a solution that implements a Design Pattern,
indicate which one it is?
I
StJbsystemOne SUbsystemTwoV\A"apper Subsystem Three
--
+-prime The Directive O
PlasmaConduil I
I,, ~
'WarpCore
"'
"" Holodeck
;!;
-
~ 1r· \.t
● Observer
● Factory
● Prototype
● Strategy
● Memento
● Template
● Command
● Proxy
● Composite
● Builder
● State
● Chain of Responsibility
● Singleton
● Adapter
● Flyweight
● Decorator
If the following function is considered, indicate with what values a unitary test of type
Existence can be implemented for which an exception is expected?
return rezultat ;
}
return rezultat ;
}
You develop a software solution that allows the implementation of an autonomous barrier that
treats differently the situations specific to a railway crossing. The barrier is not controlled from the
outside. Depending on the state of some sensors the barrier implements specific actions. The barrier is
normally raised and it starts the audible warning when the approach of the train is identified. After 10
seconds the barrier lowers automatically. Also, the messages displayed by the barrier differ depending
on the state of the barrier.
To avoid situations where the barrier is not raised after the train has passed or is raised even
though the train is still in the area, it is desired to add to the system an external sensor to make
additional checks. The existing sensor will notify the new sensor instead of transmitting the
information directly to the barrier but the proposed solution should not involve modifying the current
system. Find a solution that allows you to add the new component but keep the current solution in use.
What are 2 design patterns that optimally solve these 2 problems?
● Observer
● Factory
● Prototype
● Strategy
● Memento
● Template
● Command
● Proxy
● Composite
● Builder
● State
● Chain of Responsibility
● Singleton
● Adapter
● Flyweight
● Decorator
Given the function for calculating the price of a ticket and the following restrictions:
● the area takes values in the set (1,2,3)
● the base price is positive but less than 1000
Indicate which of the following unit tests are considered Boundary for the area?
public float cail culP ret Bilet ( int zo na , float pr et Baza.. boo lean red uce r eG r up){
flo.a t pretFina l .. 0;
:sw.itch( zona){
case 1:
pr et Fina l - pret Baza ;
case 2:
pr @t Fina l prstBaza * l . 2f;
break_;
case 3:
pr et Final pretBaza 1. Sf ;
break;
}
ret~rn pr et Final;
}
Dezvolți o soluție software care să permită realizarea unei librării pentru prelucrări grafice.
Librăriile conține foarte multe clase, pachete, etc care acoperă o arie mare de prelucrări. Pentru a
facilita integrarea librăriei în alte proiecte software trebuie găsită o soluție care să simplifice utilizarea
ei pentru scenarii des întâlnite.
De asemenea, anumite prelucrări trebuie să fie făcute prin parcurgerea unui set predefinit de
pași ce trebuie realizata într-o ordine fixa. Programatorii pot controla detaliile fiecărui pas însă nu pot
modifica ordinea lor de execuție.
Care sunt cele 2 design patternuri care rezolva optim aceste 2 probleme?
● Strategy
● Template
● Memento
● Chain of responsibility
● Factory
● Singleton
● Builder
● Adapter
● Prototype
● Decorator
● Proxy
● State
● Observer
● Command
● Composite
● Flyweight
Dezvolți o soluție software de tip trading care să permită clienților să cumpere acțiuni pe
diferite burse prin intermediul unor brokeri. Clienții pot comanda cumpărarea sau vânzarea unui
număr de acțiuni pentru anumite companii listate la bursă. Clienții își aleg brokerul în momentul în
care lansează comanda în sistem. Comenzile sunt înregistrate în sistem și vor fi procesate în ordinea în
care au fost generate de platforma de trading. În funcție de gradul de încărcare al platformei în
momentul în care comanda este procesată ea va fi executată de broker.
În timp paltforma se va extinde și vor fi oferite diferite tipuri de servicii financiare, schimb
valutar, vânzarea sau cumpărarea de criptomonede, investiții în fonduri, cumpărarea de bonuri de
trezorerie. Această dezvoltare trebuie susținută de o soluție care să permită extinderea tipurilor de
servicii.
Care sunt cele 2 design patternuri care rezolva optim aceste 2 probleme?
● Strategy
● Template
● Memento
● Chain of responsibility
● Factory
● Singleton
● Builder
● Adapter
● Prototype
● Decorator
● Proxy
● State
● Observer
● Command
● Composite
● Flyweight
~efor e
public void before () { 5y$tem1. out.p rint( "Before " );.}
@Test
public void t s 10 { Syst m•.out .pdn ( "l s ");}
~Test
public void test2() { Sy tem .out . pr int( "Test2 "};}
@AfterClass
public: static: void aft@r() { Syst@m ..out . print( "After " );)
● Before Test1 Before Test2 After
● Before Test1 After Before Test2 After
Ai de testat o metodă setVarsta() din clasa Student pentru care se știe că acceptă valori în
intervalul (9, 100) (deschis la ambele capete). Dacă dorești să implementezi teste de tip Range pentru
care să aștepți o excepție de tipul ValoareEronataExcepetion cu care dintre valorile următoare ai testa
metoda? (alege una sau mai multe valori)
● 10
● 100
● 9
● 0
● 25
● 10
● 99
Ce design pattern permite notificarea obiectelor atunci când are loc un eveniment?
● Strategy
● Template
● Memento
● Chain of responsibility
● Factory
● Singleton
● Builder
● Adapter
● Prototype
● Decorator
● Proxy
● State
● Observer
● Command
● Composite
● Flyweight
Fiind date semnăturile unor funcții ce fac diferite prelucrări, indicați pentru care dintre acestea
se justifică teste de tip Ordering?
● int calculSuma(int valoare1, int valoare2)
● int calcul(int valoare)
● int calcul(ArrayList<Integer> valori)
● int calcul(int[] valori)
● Nu există acest tip de testare
> 0)
a - 100 ·
= 0;
. f ( a oa e > _00 )
ezu l t - 5·
ls
a = I 0•
I"' urn z a ,.
}
● 3
● 6
● 2
Client AbstractProductOne
r r
ProductOnePlatformOne ProductOnePlatform Two
AbstractPlatform
+makeProauclOneO : AbstractProdl!lclOne
+makeProauctTwo(} : AbstractProauctTwo
AbstractProductTwo
f
ConcretePlatformOne ConcretePlatform Two
+m akeProductOneO◊
r r
ProductTwoPlatformOne ProductTwoPlatform Two
r- - +m akeP roductTwoO◊
I
Factory Method
Client Abstraction
// do some stuff
•normalMethodO<> - aProduct = makeObjectO:
#makeObJectO · Product // do some more stuff
+makeObJectO : Product<>
ProductOne ProductTwo
• parsetnput()<' •makeUne()
•makePar9Dreph()
•makeTable()
•getDocument()
Prototype
clonerReglstry Is populated by
each Image derived class
registering an instance of itself
I -clonerRegistry ...
lmageHandler Image
-images ...
+populatelmages0(> :: +clone() . lmaQe
I
l ~
I
I
lmageOne lmagelwo
images(next) =
clonerRegistry.getQookupKey).clone0; + clone◊ . Image(>
I
GlobalResource
-tbelostance · G!□ b a!Res □urce
+get1 ostaoceQ· Glnba!Resource
Adapter
NewApplication 'Wrapper
theWrapp edOne.doThat0:
+CI0ThiSO<> -
I,
LegacyComponent
+ooTnatO
Composite
Element •
• CloTIIISQ
l
\,
I ~
1~·-M1 C.on1ainer
Interface 1
-
+doThisO
I \
Corefunctionality OptionalWrapper -wrappe e
wrappee.doThisO
+doThisO +doThisO◊ · - - - - -
I\
OptionalOne OptionalTwo JI optional functionality
II provided by this class
+doThlsO +doThi sO◊ · - super.doThisO;
II more option al function ality
Facade
•
PlumaCoooun
DilithiumChamber
-cache
Factory . GazilUonSpecles Ant
- .,-\
-intrlnslcState
+makelnsect( type, state) +cloThis( extrinsicSlate)
-, +do This( extrlnslcState)
I ~
"
Proxy
Client - Commonlnterface
+doThisO
Rpc'Wrapper
/ - delegate
~ Corefunctionality
.
r
+doThisO~ +doThisO
I
-nextHandler Handler
nextHandler.handleQ;
- +handl eQ◊ - - -
-
HandlerOne
I \ HandlerTwo if I can handle the req uest
If handle it
+handleQ~ · '- else
super.handleQ;
Command
_ _ __.:,._ _ _ _ _~ _.L.:__~,::'
a~111et0blect
0
ca■backOne C:allbackl WO
-targetMethnd
I
•ccns1ructor( recaiverObje:I method Pointe r )~
•ewecuteO• - - - - _ _ _ _ _
StateHolder
cre ate and retu rn
theComponetrestorestate (theComponentstate); +getStateO
StateH older object
+setStateQ
Observer
CHent - Subject
-theViews
.. View
-
-
r - -
•reg1sterView(Vi ew )
- +modifyQt>
'
-~eSobJeo/ •upci&teO
I
I
~
for each registered view
+getStateO
GraphicaMew
\
TabularView
theViews[i].updateQ; ~
theSubJectgetStaleO - - +updateQto
State
+handleKeyO◊
.
I
I
CommandKey
I
II collaborate w ith theEditor object to
II impleme nt "insert' funclionali ty
- -
II possibly cha nge theEditor object's mo de
Strategy
()
Figure 21-3. Decouple client from algorithm implementation
Template
Client SortAlgorithm2
l \
SortAscending SortDescending
#compareo #compareo
A pattern design represents
Which of the following patterns are Structural ( choose one or more right answers ) ?
a. Singleton
b. Decorator
c. State
d. Factory
e. Facade
f. Adapter
g. Builder
h. Proxy
The following scenario is considered: ACME Inc. develops a software solution for a
restaurant so that the waiter can take orders directly on the mobile phone. The orders are
taken from the client and they are created on the spot, being automatically assigned the
specialized chef on that dish, the ingredients used and other special requirements of the client.
These details are provided by the application, without the need for the intervention of the
waiter who only selects the required dish. The orders are sent to the chefs at the end of the
order for the respective table, and will be executed according to the degree of load of each
chef. What pattern offers a solution to this problem?
a. Chain of responsibility
b. Memento
c. Composite
d. State
e. Command
If you want to create a solution that allows you to use a single instance for a class so that the
resource / event is managed centrally, the most appropriate GoF pattern is?
a. Proxy
b. State
c. Prototype
d. Memento
e. Singleton
A smart home system with different sensors installed in the house, requires the
implementation of a mobile solution, for a different platforms , that will receive messages
from available sensors and trigger different notifications on the client GUI. What is the right
design pattern for this functionality.
a. Observer
b. Adaptor
c. Singleton
d. Strategy
e. State
f. Facade
For the security of a cloud application, it is wanted that when a user logs on, on the server
side is generated one instance of the component, so that it has only one active session. What
is the right pattern design?
a. Adaptor
b. Factory
c. Proxy
d. Observer
e. Facade
f. Singleton
Which of the following concepts is NOT a mandatory component used in defining a design
pattern?
The following scenario is considered: A printing company makes wedding invitations. The
company owns a set of a number of templates used to make subsequent personalized
invitations. What design pattern is recommended to use to optimize the consumption of
resources on memory storage of used objects?
a. Composite
b. Abstract Factory
c. Strategy
d. Flyweight
e. Singleton
f. Builder
g. Prototype
Select one or more options that represent the differences between Prototype and Flyweight
a. Prototype is about optimizing the speed of creating objects and Flyweight is about
optimizing the memory necessary to store objects
b. Flyweight helps the client to clone initial objects and Prototype handles the creation
of those objects
c. Prototype type is Creational and Flyweight is Structural
d. Prototype is Structural and Flyweight is Creational
e. Through Prototype, the creation of objects is done by cleaning, and in Flyweight,
objects are reused
f. Prototype is used to optimize object creation
a. Flyweight
b. Composite
c. Strategy
d. State
e. Factory
f. Singleton
g. Builder
a. Facade
b. Prototype
c. Builder
d. Decorator
e. Adapter
An image viewer application that supports various formats (jpeg, gif, bmp, etc) is required.
The application can be extended to generate other formats in the future. What is the right
pattern design that will help you manage efficiently the future development.
a. Factory
b. Adapter
c. Singleton
d. Facade
e. Observer
A web hosting company offers different plans for server rental (standard, professional and
premium). Different hosting services (cloud, SSL, 24/7 support, backup, databases, etc) can
be added to each plan after the contact has been signed and the service started. What is the
design pattern for implementing an IT solution for order management.
a. Decorator
b. Adapter
c. Facade
d. Factory
e. Singleton
a. State
b. Decorator
c. Composite
d. Strategy
e. Adapter
f. Façade
a. Mediator,Structural,Creational
a. Creational,Mediator,Adaptiv
b. creational, behavioral, structural
c. creational, consuming, composite
d. creational, structural, functional
The following scenario is considered. A company produces shirts and sell them online.
Following a customer survey, the company decided to add additional items such as the
customer’s monogram, color, size, branding, etc. What design pattern should be implemented
to allow customers to customize their shirts design before ordering them?
a. Strategy
b. Decorator
c. Adapter
d. Builder
e. Façade
You are trying to add to your solution a class written in another project by another colleague.
All other classes have the same interface, but the added class has a completely different
interface than what customers expect. However, it contains all the necessary functionalities.
Hat kind of refactoring is needed to include this class right in your system with minimal
effort?
If you want to implement a solution where all clients that use Class A will have access to the
same type A instance, what GoF pattern will use?
a. There is no need for pattern because the solution is implemented by defining class A
as abstract
b. There is no need for pattern because the solution is implemented by marking class A
as final
c. Memento is implemented for Class A
d. Singleton is implemented for Class A
e. Flyweight is implemented for Class A
Your domain contains 3 classes: Enemy, BigEnemy, SmallEnemy. They have same methods.
If you create just a SmallEnemy AND NO OTHER TYPE OF ENEMY how will you name a
variable which stores a reference to a new instance?
a. smlEmy
b. smallEnemy
c. e
d. enemy
The following scenario is considered. A company produces shirts and sell them online.
Following a customer survey, the company decided to add additional items such as the
customer’s monogram, color, size, branding, etc. what design pattern should be implemented
to allow customers to customize their shirts design before ordering them?
a. Strategy
b. Decorator
c. Adapter
d. Builder
e. Facade
If we perform a test for the getFibonacciNumber() method with the value 2, we perform a
________________ (choose the right type) test
a. Error condition
b. Right
c. Performance
d. Cross Check
@Test
public void testsetQuantity() {
int testValue = X;
product .setQuantity( testValu.e );
int obtainedValue = product .getQuantity{);
You implement the Product class that contains the quantity attribute. The attribute accepts
values between 5 and 100 (including these 2 values). To allow clients to change the Product
quantity you also implement the setQuantity (int value) method. The method should validate
the input value. If you implement a unit test, what values should you use as input for
setQuantity() for a RANGE test? Choose one or more values
a. 5
b. 6
c. 99
d. 4
e. 100
You implement the Product class that contains the quantity attribute. The attribute accepts
values between 5 and 100 (including these 2 values). To allow clients to change the Product
quantity you also implement the setQuantity(int value) method. The method should validate
the input value. If you implement the next unit test, what values should you use for „X” if the
test is a Right test?
a. 5
b. 101
c. 4
d. 6
e. 99
f. 100
What are some of the benefits of unit testing?
a. Can improve the design of code, especially if using Test Driven Development (TDD)
b. Simplifies integration testing
c. Reduce the level of bugs in production code
d. Makes it easier to change/refactor code
e. Unit tests are a form of documentation
What annotations from the following do you use within your JUnit Test class in JUnit 4?
a. @TestClass, @TestMethod
b. @Before, @After, @Test
c. @TestTest, @TestThis
d. @BeforeTest, @AfterTest
What annotations from the following do you use within your JUnit Test class in JUnit 4?
a. @TestClass, @TestMethod
b. @Before, @After, @Test
c. @TestTest, @TestThis
d. @BeforeTest, @AfterTest
a. Adaptor
b. Decorator
c. Façade
d. Singleton
e. Strategy
If you want to implement a solution that generates expensive objects (creation time and used
memory), which pattern offers the optimal solution so that the repetitive creation processes
are minimized?
a. Builder
b. Factory
c. Prototype
d. Flyweight
e. Singleton
What's the correct difference between an Adapter pattern and a Decorator ?
What GoF pattern must be implemented if you want to implement a solution that allows the
client to choose at run-time the algorithm / function needed to process a data set. The solution
must allow the modification of the function library but not of the class that manages the data
a. Decorator
b. Facade
c. Strategy
d. Adapter
e. State
f. Wrapper
If you want to implement a solution where complex objects are built by a mechanism
independent of the actual object making process, so that the client does not know the internal
details of the object, the most suitable GoF pattern is:
a. Builder
b. Factory
c. Decorator
d. Singleton
e. Adapter
If you want to test your own Fibonacci function (based on the fib(n) = fib(n-1) + fib(n-2)
algorithm) by using the next function, what test strategy are you using ?
a. Conformance
b. Inverse Relationship
c. Error condition
d. Cross-Check
Given the next implementation. What Clean Code principles (choose one or more) have been
used here ?
private boo,l@an perfectSquare (int number ) (
1
r ie t urn ,( ( illilt ) Marth ..sqrt ( number )), ( ( int ) Math • sqrt,( n urnb er)) == number ;
}
a. KISS
b. DRY
c. Single Responsability
d. Open-Closed
e. WET
f. Liskov
g. One Screen function
If you want to test your own Fibonacci function (based on the fib(n) = fib(n-1) + fib(n-2)
algorithm) by using the next function, what test strategy are you using ?
a. Error condition
b. Conformance
c. Cross-Check
d. Inverse Relationship
Which lines contain "Magic Numbers"?(Multiple choice)
33 sum +- 1 · !I
34
35 3 f .o r ( 1n i = 0·!I i < S·, i4+)
l
36 {
37 Console .Writeline($" {i} ~ { sum * i}' ) ;
38 }
a. Alegeți o opțiune:
b. The level of technical knowledge that software developers lack
c. The future cost of fixing bugs created now
d. The value that exceeds the project budget
e. The difference between different technologies used in the development phase
f. The value that the client should pay for new features, which are added before
release
6/1/2021 Test Autoevaluare - Unit Testing
1 Tntrebare
Corect
Alegeti o optiune:
a. Niciun raspuns corect
~ c. 0 clasa ce defineste setul de obiecte (fixture) pentru a rula mai multe test~
https://online.ase.ro/mod/quiz/review.php?attempt=554493 1/24
6/1/2021 Test Autoevaluare - Unit Testing
2 Tntrebare
Corect
Alegeti o optiune:
a. Toate variantel~
C) c. Structural Testing
3 Tntrebare
Corect
Alegeti o optiune:
a. Toate variantel~
https://online.ase.ro/mod/quiz/review.php?attempt=554493 2/24
6/1/2021 Test Autoevaluare - Unit Testing
4 Tntrebare
Corect
Alegeti o optiune:
a. BlackBox Testing ;
0 b. WhiteBox Testing;
0 c. Integration Testing;
@ d. Toate variantelEV
5 Tntrebare
Corect
Alegeti o optiune:
a. Este un framework ce permite realizarea si rularea de teste pentru diferite metode din
cadrul proiectelor dezvoltate.
0 d. jUnit este eel mai folosit framework pentru testarea unitara a codului scris in JAVA.
https://online.ase.ro/mod/quiz/review.php?attempt=554493 3/24
6/1/2021 Test Autoevaluare - Unit Testing
6 Tntrebare
Corect
Alegeti o optiune:
a. Interpreter & Iterator
7 Tntrebare
Corect
Fixture reprezinta:
Alegeti o optiune:
a. 0 metoda/etapa de definire a setului de obiecte utilizate, inainte de testare
https://online.ase.ro/mod/quiz/review.php?attempt=554493 4/24
6/1/2021 Test Autoevaluare - Unit Testing
8 Tntrebare
Corect
Ce reprezinta Teardown?
Alegeti o optiune:
a. Un set de obiecte utilizate in test;
9 Tntrebare
Corect
Alegeti o optiune:
a. @BeforeEverything
@ b. @BeforeEac~
) c. @BeforeAII
d. Nu s-a schimbat
https://online.ase.ro/mod/quiz/review.php?attempt=554493 5/24
6/1/2021 Test Autoevaluare - Unit Testing
10 intrebare
Corect
Alegeti o optiune:
a. Instrument de rulare al testelO(jll'
11 intrebare
Corect
0 b. BlackBox Testing
•) c. WhiteBox TestinS,
J d. Niciun raspuns
https://online.ase.ro/mod/quiz/review.php?attempt=554493 6/24
6/1/2021 Test Autoevaluare - Unit Testing
12 intrebare
lncorect
Care dintre urmatoarele variante reprezinta o adnotare pentru structura unui test in JUnit5-Jupiter?
Alegeti o optiune:
a. @BeforeClasEO(
0 b. @AfterClass;
0 c. @AfterEach;
0 d. @After;
13 intrebare
Corect
https://online.ase.ro/mod/quiz/review.php?attempt=554493 7/24
6/1/2021 Test Autoevaluare - Unit Testing
14 intrebare
Corect
Alegeti o optiune:
a. Testele sunt realizate din punctul de vedere al utilizatorul~
15 intrebare
Corect
Care dintre urmatoarele reprezinta o adnotare utilizata in jUnit4 pentru metodele automate din
skeleton?
Alegeti o optiune:
a. @BeforEV
0 b. @SetUpBefore.
0 c. @AfterClass.
0 d. setUpBeforeClass().
https://online.ase.ro/mod/quiz/review.php?attempt=554493 8/24
6/1/2021 Test Autoevaluare - Unit Testing
16 intrebare
Corect
@ b. Testare comportamental~
0 d. Testare structurala
17 intrebare
Corect
Alegeti o optiune:
a. Arhitectura interna a aplicatiei testate
https://online.ase.ro/mod/quiz/review.php?attempt=554493 9/24
6/1/2021 Test Autoevaluare - Unit Testing
18 intrebare
Corect
Alegeti o optiune:
a. @BeforeClass;
@ b. @BeforeEactv
C) c. @BeforeAII;
19 intrebare
Corect
Alegeti o optiune:
a. Este un framework ce permite realizarea si rularea de teste pentru diferite metode din
cadrul proiectelor dezvoltate;
0 d. Este eel mai folosit framework pentru testarea unitara a codului scris in JAVA;
https://online.ase.ro/mod/quiz/review.php?attempt=554493 10/24
6/1/2021 Test Autoevaluare - Unit Testing
20 intrebare
Corect
Alegeti o optiune:
a. metoda tearDown();
0 b. metoda tearDownAfterClass();
0 c. metoda setUp();
@ d. metoda setUpBeforeClass(v
21 intrebare
Corect
Alegeti o optiune:
a. Pe baza lor se pot defini colectii de testtif
) c. Greu de scris
https://online.ase.ro/mod/quiz/review.php?attempt=554493 11/24
6/1/2021 Test Autoevaluare - Unit Testing
22 intrebare
Corect
Care este adnotarea utilizata in JUnit4 pentru metoda automata din skeleton
tearDownAfterClass()?
Alegeti o optiune:
a. @BeforeClass
0 b. @Before
@ c. @AfterCla~
() d. @After
23 intrebare
Corect
Care dintre urmatoarele variante reprezinta motive pentru a folosi teste unitare?
Alegeti o optiune:
a. Reduc timpul pierdut pentru debugging si pentru gasirea bug-urilor;
https://online.ase.ro/mod/quiz/review.php?attempt=554493 12/24
6/1/2021 Test Autoevaluare - Unit Testing
24 intrebare
Corect
Alegeti o optiune:
a. Este efectuata din perspectiva utilizatorului
25 intrebare
Corect
Alegeti o optiune:
a. 0 clasa care defineste setul de obiecte (fixture) pentru a rula mai multe testev
https://online.ase.ro/mod/quiz/review.php?attempt=554493 13/24
6/1/2021 Test Autoevaluare - Unit Testing
26 intrebare
Corect
Alegeti o optiune:
a. Persoanele care testeaza nu cunosc arhitectura interna a aplicatiei testate
@ b. Toate variantel~
27 intrebare
Corect
Alegeti o optiune:
a. 0 clasa ce defineste setul de obiecte (Fixture) pentru a rula mai multe teste
https://online.ase.ro/mod/quiz/review.php?attempt=554493 14/24
6/1/2021 Test Autoevaluare - Unit Testing
28 intrebare
Corect
Ce reprezinta fixture?
Alegeti o optiune:
a. instrument de rulare a testului
29 intrebare
Corect
Ce reprezinta Teardown?
Alegeti o optiune:
a. Este un instrument de rulare a testelor.
d. Este o clasa ce defineste unset de obiecte pentru a rula mai multe teste.
https://online.ase.ro/mod/quiz/review.php?attempt=554493 15/24
6/1/2021 Test Autoevaluare - Unit Testing
30 intrebare
Corect
Alegeti o optiune:
a. Testele sunt realizate din punctul de vedere al utilizatorul~
31 intrebare
Corect
Ce este fixture?
Alegeti o optiune:
a. Metoda de definire a setului de obiecte folosite, inainte de testare
https://online.ase.ro/mod/quiz/review.php?attempt=554493 16/24
6/1/2021 Test Autoevaluare - Unit Testing
32 intrebare
Corect
Care dintre urmatoarele adnotari pentru structura unui test nu este prezenta in JU nit 4?
Alegeti o optiune:
a. Before
0 b. AfterClass
~~ c. AfterEac~
0 d. BeforeClass
33 intrebare
Corect
r Testarea WhiteBox:
Alegeti o optiune:
a. Este denumita si Clear Box Testing
@ b. Toate variantel~
c. Este utilizata pentru ea persoanele care cunosc arhitectura interna a aplicatiei sa o poata
testa
https://online.ase.ro/mod/quiz/review.php?attempt=554493 17/24
6/1/2021 Test Autoevaluare - Unit Testing
34 intrebare
lncorect
Ce este testarea?
Alegeti o optiune:
a. Niciuna dintre variantele
35 intrebare
Corect
Alegeti o optiune:
a. Nicio varianta
@ b. Toate variantel~
c. Este o metoda utilizata pentru a testa aplicatia software de catre persoane care nu cunosc
arhitectura interna a aplicatiei testate
https://online.ase.ro/mod/quiz/review.php?attempt=554493 18/24
6/1/2021 Test Autoevaluare - Unit Testing
36 intrebare
Corect
r Testarea BlackBox:
Alegeti o optiune:
a. Toate variantel~
b. Este utilizata in conditiile in care testerul cunoaste numai datele de intrare si de iesire ale
aplicatiei
37 intrebare
Corect
Alegeti o optiune:
a. Testarea poate fi inceputa intr-o etapa anterioara punerii in functiune;
0 b. Testarea este mai aprofundata, cu posibilitatea de a acoperi cele mai multe posibilitati;
https://online.ase.ro/mod/quiz/review.php?attempt=554493 19/24
6/1/2021 Test Autoevaluare - Unit Testing
38 intrebare
Corect
r Teardown:
Alegeti o optiune:
a. Niciuna dintre variante
39 intrebare
Corect
0 b. assertSame
~ c. assertEquakif
0 d. fail
https://online.ase.ro/mod/quiz/review.php?attempt=554493 20/24
6/1/2021 Test Autoevaluare - Unit Testing
40 intrebare
Corect
JU nit:
Alegeti o optiune:
a. Toate raspunsurile sunt corect~
c. Este un framework ce permite realizarea si rularea de teste pentru diferite metode din
cadrul proiectelor dezvoltate
J d. Este eel mai folosit framework pentru testarea unitara a codului scris in JAVA
41 intrebare
Corect
Ce reprezinta JUnit?
Alegeti o optiune:
a. Nicio varianta
() b. Reprezinta o adaptare de la JsUnit
0 c. Toate variantele
r,
d. Este un framework ce permite realizarea si rularea de teste pentru diferite metode din
cadrul proiectelor dezvoltat~
https://online.ase.ro/mod/quiz/review.php?attempt=554493 21/24
6/1/2021 Test Autoevaluare - Unit Testing
42 intrebare
Corect
Alegeti o optiune:
a. Testerul nu trebuie sa stie programare, limbajul folosit pentru dezvoltare sau structura de
cod a aplicatiev
J b. Testarea este mai aprofundata, cu posibilitatea de a acoperi cele mai multe posibilitati;
43 intrebare
Corect
Alegeti o optiune:
a. Set de obiecte utilizate in test
https://online.ase.ro/mod/quiz/review.php?attempt=554493 22/24
6/1/2021 Test Autoevaluare - Unit Testing
44 intrebare
lncorect
Alegeti o optiune:
a. Se realizeaza intr-un context bine definit in specificatiile de testare
0 b. Toate variantele
() c. Niciuna dintre variante
45 intrebare
Corect
Alegeti o optiune:
a. metoda tearDownAfterClass();
C) b. metoda setUpBeforeClass();
0 c. metoda setUp();
~D d. metoda tearDown( ~
https://online.ase.ro/mod/quiz/review.php?attempt=554493 23/24
6/1/2021 Test Autoevaluare - Unit Testing
46 intrebare
Corect
JU nit:
Alegeti o optiune:
a. Este un framework de testartif
https://online.ase.ro/mod/quiz/review.php?attempt=554493 24/24
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
1 întrebare
Corect
Alegeți o opțiune:
0 a. Lucrul cu fisiere
c. Toate variantele
0 d. Macro-uri
1 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
2 întrebare
Corect
Alegeți o opțiune:
0 a. Nicio varianta
b. Ambele variante
0 c. Ori de cate ori nu se doreste modificarea codului existent
3 întrebare
Corect
Alegeți o opțiune:
a. Proxy permite accesul la anumite functionalitati, iar Decorator adauga noi functionalitati
0 b. Proxy modifica intreaga clasa, iar Decorator modifica comportamentul
2 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
4 întrebare
Corect
Alegeți o opțiune:
a. Thread safe Singleton
0 b. Eager Initialization
5 întrebare
Corect
Alegeți o opțiune:
0 a. Permite salvarea si revenirea la starile salvate ori de cate ori acest lucru este dorit
0 b. Este folosit atunci cand se doreste salvarea anumitor stari pentru obiectele unei clase
c. Toate variantele
0 d. Este utilizat pentru backup
3 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
6 întrebare
Corect
Alegeți o opțiune:
0 a. Builder, Produs
7 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Se doreste rezolvarea unei probleme cand nu se stie cu exactitate cine o poate rezolva,
dar exista o lista de posibilitati
4 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
8 întrebare
Corect
Alegeți o opțiune:
0 a. Adapter adauga si functionalitati noi
9 întrebare
Corect
Alegeți o opțiune:
0 a. obiecte a caror construire consuma foarte multe resurse
5 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
10 întrebare
Corect
Simple Factory:
Alegeți o opțiune:
0 a. Niciuna dintre variantele de mai sus
11 întrebare
Corect
Alegeți o opțiune:
a. Observer defineste o relatie de 1:n
0 b. Observer permite instantierea unui singur obiect dintr-o clasa
6 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
12 întrebare
Incorect
Alegeți o opțiune:
0 a. Valorile enum-ului sunt accesibile la nivel local
d. Toate variantele
13 întrebare
Corect
Alegeți o opțiune:
a. Ambele variante
0 b. Exista o singura varianta/versiune de implementare pentru Builder
7 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
14 întrebare
Corect
Alegeți o opțiune:
a. Creational
0 b. Comportamental
0 c. Structural
15 întrebare
Corect
Alegeți o opțiune:
0 a. familie de obiecte
b. instanta unica
0 c. folosirea unui enum
8 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
16 întrebare
Corect
Alegeți o opțiune:
0 a. Nu se recomanda implementarea acestui design pattern
17 întrebare
Corect
Prototype:
Alegeți o opțiune:
0 a. Este un design pattern comportamental
9 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
18 întrebare
Corect
Care este partea componenta care se ocupa de faptul ca poate fi creat un singur obiect al clasei
Singleton?
Alegeți o opțiune:
a. Clasa
0 b. Utilizatorul
0 d. Apelatorul
19 întrebare
Corect
Alegeți o opțiune:
0 a. Toate variantele sunt corecte
10 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
20 întrebare
Corect
Alegeți o opțiune:
a. Toate variantele
0 b. Pentru reprezentarea oricarei arborescente
0 c. Meniurile aplicatiilor
0 d. Meniurile de la restaurant
21 întrebare
Corect
Alegeți o opțiune:
0 a. Atunci cand se dorestea modificarea functionalitatii unui obiect la runtime
0 c. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
d. Atunci cand trebuie sa construim foarte multe instante ale unei clase, obiecte ce au o
parte comuna
11 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
22 întrebare
Corect
Alegeți o opțiune:
0 a. Atunci cand modul de procesare urmeaza un numar finit de pasi
0 b. Atunci cand modul de rezolvare a unei probleme urmeaza un numar cunoscut de pasi
0 c. Backtracking
d. Toate variantele
23 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste construirea de obiecte ce au multe proprietati optionale
12 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
24 întrebare
Incorect
Alegeți o opțiune:
0 a. ConcreteTemplate, ConcreteClass
0 c. Template, ConcreteTemplate
0 d. Template, AbstractTemplate
25 întrebare
Corect
Alegeți o opțiune:
0 a. Interfata care anunta metoda de copiere, interfata care implementeaza metoda de
copiere sau de clonare
b. Interfata care anunta metoda de copiere, clasa concreta care implementeaza metoda
de copiere sau de clonare
0 c. Clasa abstracta care anunta metoda de copiere, clasa abstracta care implementeaza
metoda de copiere sau de clonare
0 d. Interfata care anunta metoda de copiere, clasa abstracta care implementeaza metoda
de copiere sau de clonare
13 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
26 întrebare
Corect
Alegeți o opțiune:
0 a. Clasa existenta, adapterul
27 întrebare
Corect
Alegeți o opțiune:
0 a. Ultimul handler din lant trebuie implementat, astfel incat sa apeleze la un handler
urmator, generalizat
14 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
28 întrebare
Corect
Alegeți o opțiune:
0 a. Creational
c. Comportamental
0 d. Structural
29 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variantele de mai sus
0 d. Nu se poate rezolva
15 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
30 întrebare
Corect
Alegeți o opțiune:
0 a. Presupune initializarea instantei inca de la momentul declararii in clasa
31 întrebare
Corect
Alegeți o opțiune:
0 a. Ajuta la crearea de clone pentru obiectele a caror construire dureaza foarte mult sau
consuma foarte multe resurse
c. Toate variantele
0 d. Prototipul urmeaza sa fie clonat pentru urmatoarele instante din acea clasa
16 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
32 întrebare
Corect
Alegeți o opțiune:
0 a. Asigurarea sigurantei thread-urilor
33 întrebare
Corect
Alegeți o opțiune:
a. Creational
0 b. Niciuna dintre variantele
0 c. Comportamental
0 d. Structural
17 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
34 întrebare
Incorect
Alegeți o opțiune:
0 a. Eager Initialization cu Lazy Initialization
35 întrebare
Corect
Alegeți o opțiune:
0 a. O interfata ce defineste comanda in sens general + Clase concrete ce definesc
comenzile in particular + Invoker
18 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
36 întrebare
Corect
Ce reprezinta Strategy?
Alegeți o opțiune:
0 a. Este folosit atunci cand avem un singur algoritm pentru rezolvarea unei probleme
37 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste construirea unei singure instante
b. Se doreste construirea a foarte multe obiecte ale unei clase, obiecte ce au o parte
comuna
0 c. Niciuna dintre variante
19 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
38 întrebare
Incorect
Alegeți o opțiune:
0 a. prin intermediul fabricii sunt create nodurile frunză
39 întrebare
Corect
Alegeți o opțiune:
a. Interfate pentru observer si observabil + Clase concrete pentru observer si observabil
0 b. Niciuna dintre variante
20 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
40 întrebare
Incorect
Alegeți o opțiune:
0 a. O interfata + Clase concrete ce implementeaza interfata + Clasa concreta ce contine o
referinta de tipul interfetei
41 întrebare
Corect
Alegeți o opțiune:
0 a. De fiecare data cand se doreste realizarea de permisiuni pentru accesul la toate
obiectele
c. De fiecara data cand se doreste realizarea de permisiuni pentru anumite obiecte sau
pentru accesul la anumite functionalitati ale obiectelor
0 d. De fiecare data cand se doreste realizarea de permisiuni pentru toate obiectele
21 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
42 întrebare
Corect
Alegeți o opțiune:
0 a. Structural
b. Creational
0 c. Niciuna dintre variantele de mai sus
0 d. Comportamental
43 întrebare
Corect
Alegeți o opțiune:
a. Toate variantele sunt adevarate
0 b. Clasa Facade ascunde complexitatea prin apelurile sale
22 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
44 întrebare
Incorect
Alegeți o opțiune:
0 a. Nu este corelat cu Singleton in cadrul fiecarei clase
0 b. Este greu de implementat atunci cand exista mai multe atribute pentru clasele utilizate
0 c. Atunci cand adaugam un nou tip de produs trebuie sa modificam in mai multe locuri
inclusiv fabria
d. Toate variantele
45 întrebare
Corect
Alegeți o opțiune:
0 a. Deschiderea unei singure instante ale unei aplicatii
d. Toate variantele
23 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
46 întrebare
Incorect
Alegeți o opțiune:
0 a. Clasele concrete pentru fiecare comanda
47 întrebare
Corect
Alegeți o opțiune:
0 a. In cazul în care clasa Singleton nu este folosita, instanta nu este creata;
0 b. Eager Initialization asigura faptul ca metoda nu o să fie apelata de un alt fir de executie
pana nu se termina metoda apelata deja pe un fir de executie;
24 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
48 întrebare
Corect
Alegeți o opțiune:
a. Atunci cand exista o lista de posibile obiecte ce pot rezolva problema
0 b. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
49 întrebare
Incorect
Alegeți o opțiune:
0 a. Un obiect Singleton poate fi trimis ca parametru unei functii, spre deosebire de o clasa
statica care nu poate fi transmisa ca parametru
b. Toate variantele
25 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
50 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 c. O interfata + Prototip
51 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
26 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
52 întrebare
Incorect
Alegeți o opțiune:
a. AbstractProduct, ConcreteProduct, AbstractDecorator
0 c. ConcreteProduct, ConcreteDecorator
53 întrebare
Corect
Care dintre afirmatiile referitoare la implementarea design pattern-ului Singleton este corecta?
Alegeți o opțiune:
0 a. Constructorul clasei trebuie sa fie privat
d. Toate variantele
27 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
54 întrebare
Incorect
Alegeți o opțiune:
a. Toate variantele
0 d. Pentru metoda din interfata, se furnizeaza o implementare, dar nu se adauga noi functii
abstracte
55 întrebare
Corect
Alegeți o opțiune:
0 a. Se aplica ori de cate ori folosim copy-paste
b. Atunci cand crearea unui obiect dureaza foarte mult sau consuma foarte multe resurse
0 c. Nu folosim niciodata Prototype
0 d. Atunci cand crearea unui obiect nu dureaza foarte mult sau nu consuma resurse foarte
multe
28 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
56 întrebare
Corect
Alegeți o opțiune:
0 a. Toate variantele
0 b. Utilizatorii sau apelatorii sunt cei care se ocupa de faptul ca poate fi creat un singur
obiect
57 întrebare
Corect
Alegeți o opțiune:
0 a. Structural
0 b. Creational
c. Comportamental
0 d. Niciuna dintre variante
29 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
58 întrebare
Corect
Alegeți o opțiune:
0 a. Obiectele create seamana intre ele
c. Toate variantele
0 d. Folosim clone()
59 întrebare
Incorect
Alegeți o opțiune:
0 a. Niciuna dintre variante
d. Clasa care are obiecte pentru care se vor salva stari intermediare
30 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
60 întrebare
Incorect
Alegeți o opțiune:
0 a. Utilizarea unei alte interfete
61 întrebare
Corect
Alegeți o opțiune:
0 a. Atunci cand dorestea adaugarea de noi functionalitati claselor existente
0 b. Atunci cand este nevoie sa se utilizeze clase din doua framework-uri diferite
c. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
0 d. Atunci cand se dorestea modificarea functionalitatii unui obiect la runtime
31 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
62 întrebare
Corect
Alegeți o opțiune:
0 a. In lista de obiecte de tip ComponentaAbstracta se pot adauga si sterge noduri
63 întrebare
Corect
Alegeți o opțiune:
a. Toate variantele de mai sus
0 b. Fiecare factory va crea doua sau mai multe tipuri de obiecte
0 c. Avem o singura fabrica cu ajutorul careia obtinem obiecte din toate familiile de obiecte
dintr-o anumita categorie
32 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
64 întrebare
Incorect
Alegeți o opțiune:
0 a. Structural
b. Comportamental
0 c. Creational
65 întrebare
Corect
Interfata Prototype :
Alegeți o opțiune:
0 a. Niciuna dintre variante
33 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
66 întrebare
Incorect
Alegeți o opțiune:
0 a. KISS
0 b. YAGNI
c. DRY
67 întrebare
Incorect
Alegeți o opțiune:
a. Clasa Memento poate fi inclusa in cadrul clasei CareTaker
0 c. Clasa Memento poate fi una externa, ocupandu-se de atributele pentru care trebuie
realizata imaginea intermediara
0 d. Clasa Memento este folosita atat de catre obiectele de tip Originator, cat si de cele de
tip CareTaker
34 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
68 întrebare
Corect
Alegeți o opțiune:
0 a. Comportamental
b. Structural
0 c. Niciuna dintre variante
0 d. Creational
69 întrebare
Incorect
Flyweight:
Alegeți o opțiune:
0 a. Este un design pattern structural
35 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
70 întrebare
Corect
Alegeți o opțiune:
0 a. Controleaza relatiile complexe dintre clase
d. Toate variantele
71 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste crearea de obiecte cu multe proprietati optionale
36 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
72 întrebare
Corect
Alegeți o opțiune:
0 a. O interfata + Clasa abstracta Entitate + Clasa abstracta Proxy
73 întrebare
Corect
Alegeți o opțiune:
0 a. Este folosit in utilizarea validatoarelor pentru anumite controale
37 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
74 întrebare
Corect
Alegeți o opțiune:
0 a. Este folosit atunci cand cel care are nevoie de rezolvarea unei probleme nu stie exact
cine poate sa rezolve problema
0 b. Este folosit atunci cand cel care are nevoie de rezolvarea unei probleme are o lista de
posibile obiecte ce pot rezolva problema
c. Toate variantele
0 d. Aceste obiecte posibile se ordoneaza intr-un lant, apoi cel care are problema de
rezolvat apeleaza pentru prima za din lant
75 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variantele
b. Creational
0 c. Structural
0 d. Comportamental
38 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
76 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
77 întrebare
Corect
Alegeți o opțiune:
0 a. Lazy initialization
b. Toate variantele
0 c. Thread safe
0 d. Eager initialization
39 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
78 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Creational
c. Comportamental
0 d. Structural
79 întrebare
Incorect
Alegeți o opțiune:
0 a. Toate variantele
b. Sintagma dupa care este recunoscut este familie de obiecte sau obiecte din aceeasi
familie
0 c. Nicio varianta
0 d. Ofera posibilitatea crearii de obiecte concrete dintr-o familie de obiecte, fara sa se stie
exact tipul concret al obiectului
40 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
80 întrebare
Corect
Alegeți o opțiune:
0 a. Clasele existente nu se vor modifica
81 întrebare
Corect
Alegeți o opțiune:
a. Se doreste construirea de obiecte cu multe proprietati ce nu sunt obligatorii
0 b. Se doreste construirea unei singure instante
41 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
82 întrebare
Corect
Alegeți o opțiune:
0 a. Atunci cand este nevoie sa se utilizeze clase din doua framework-uri diferite
0 c. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
d. Atunci cand un obiect isi schimba comportamentul pe baza starii in care se afla
83 întrebare
Corect
Alegeți o opțiune:
a. O interfata + Clase concrete ce defiesc starile obiectului + Clasa concreta ce defineste
obiectul
0 b. O interfata + Clase concrete ce definesc obiecte in diferite stari
42 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
84 întrebare
Corect
Alegeți o opțiune:
0 a. utilizarea unei clase imbricate(inner class)
d. Toate variantele
0 e. Nicio varianta nu este corecta
85 întrebare
Corect
Alegeți o opțiune:
0 a. Atunci cand dorestea adaugarea de noi functionalitati claselor existente
0 b. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
43 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
86 întrebare
Incorect
Alegeți o opțiune:
0 a. Creational
0 c. Structural
d. Comportamental
87 întrebare
Incorect
Alegeți o opțiune:
0 a. Nu ascunde aplicarea de comenzi, stiindu-se concret ce presupune acea comanda
c. Toate variantele
44 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
88 întrebare
Incorect
Care dintre afirmatiile referitoare la varianta Inner Static Helper Class este falsa?
Alegeți o opțiune:
a. Clasa imbricata este incarcata doar cand este apelata functia de creare a instantei
0 b. Clasa imbricata poate fi accesata si din afara clasei deoarece este publica
89 întrebare
Corect
Alegeți o opțiune:
0 a. Model View Controler
b. Realizarea de backup-uri
0 c. Evitarea utilizarii structurii switch sau if-else
0 d. Backtracking
45 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
90 întrebare
Corect
Alegeți o opțiune:
0 a. Command este folosit pentru implementarea lose coupling
91 întrebare
Incorect
Alegeți o opțiune:
a. Ambele ascund, intr-un fel, clasa existenta
46 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
92 întrebare
Corect
Alegeți o opțiune:
0 a. Nu foloseste structuri switch sau if-else
93 întrebare
Corect
Alegeți o opțiune:
0 a. Hollywood Principle
0 b. Decorator
0 c. Simple Factory
d. Virtual Constructor
47 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
94 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste implementarea unui algoritm ce urmeaza cu strictete anumiti pasi
95 întrebare
Corect
Singleton:
Alegeți o opțiune:
a. Este un design pattern creational
0 b. Este un design pattern structural
48 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
96 întrebare
Corect
Alegeți o opțiune:
0 a. Creational
c. Structural
0 d. Comportamental
97 întrebare
Corect
Alegeți o opțiune:
0 a. Construirea de obiecte este gestionata de o clasa
49 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
98 întrebare
Incorect
Alegeți o opțiune:
0 a. Ambele ascund, intr-un fel, clasa existenta
99 întrebare
Corect
Alegeți o opțiune:
0 a. Ajuta la crearea de obiecte abstracte
50 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
100 întrebare
Corect
Alegeți o opțiune:
0 a. Este foarte asemanator cu Observer
0 c. Toate variantele
d. Este folosit atunci cand un obiect isi schimba comportamentul pe baza starii in care se
afla
101 întrebare
Corect
Alegeți o opțiune:
0 a. Simple Factory este un design pattern prezentat in cartea GoF
b. Simple Factory este folosit in practica deoarece este foarte usor de implementat
0 c. Toate variantele
51 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
102 întrebare
Corect
Alegeți o opțiune:
0 a. Baze de date
0 b. DNS Resolver
103 întrebare
Incorect
Alegeți o opțiune:
0 a. Structural
c. Comportamental
0 d. Creational
52 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
104 întrebare
Incorect
Alegeți o opțiune:
a. cand vrem sa construim obiecte mai rapid
105 întrebare
Corect
Alegeți o opțiune:
a. Crearea de clone pentru obiecte
0 b. Creearea unei singure instante a unei clase
0 c. Abstractizarea obiectelor
53 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
106 întrebare
Corect
Alegeți o opțiune:
a. Toate variantele sunt corecte
0 b. Crearea obiectului complex se realizeaza in metoda build() pe baza setarilor realizate
107 întrebare
Corect
Adapter:
Alegeți o opțiune:
0 a. Niciuna dintre variante
54 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
108 întrebare
Corect
Alegeți o opțiune:
0 a. Command, Receiver, Invoker
109 întrebare
Corect
Alegeți o opțiune:
0 a. construirea de obiecte cu multe atribute dintre care unele sunt optionale
0 b. crearea a doua sau mai multe tipuri de obiecte, pentru fiecare existand o metoda
55 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
110 întrebare
Incorect
Alegeți o opțiune:
a. Clasa Adapter contine instante ale celor doua clase existente
111 întrebare
Corect
Alegeți o opțiune:
0 a. Clasele existente nu se vor modifica, ci se vor adauga noi clase pentru realizarea unui
Adapter intre acestea (clase Wrapper)
d. Toate variantele
56 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
112 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
113 întrebare
Incorect
Alegeți o opțiune:
0 a. Clasa concreta care gestioneaza lista de observatori
b. Clasa abstracta sau interfata care defineste la nivel abstract obiectele care vor fi
notificate
0 d. Clasa sau interfata care defineste le nivel abstract obiectele care gestioneaza lista de
observatori
57 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
114 întrebare
Corect
Alegeți o opțiune:
0 a. o singura instanta
115 întrebare
Corect
Alegeți o opțiune:
a. Una din clase(FlyweightFactoy) contine un HashMap pentru retinerea obiectelor
asemanatoare
0 b. Implementarea lui este mare consumatoare de memorie
58 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
116 întrebare
Corect
Alegeți o opțiune:
a. O interfata/Clasa abstracta + Composite + Frunza
0 b. Niciuna dintre variantele de mai sus
117 întrebare
Incorect
Alegeți o opțiune:
0 a. Nodurile Frunza pot reprezenta aceeasi instanta
59 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
118 întrebare
Corect
Alegeți o opțiune:
0 a. construirea de obiecte a caror construire dureaza foarte mult
119 întrebare
Corect
Alegeți o opțiune:
0 a. Clasa care ascunde complexitatea framework-ului
60 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
120 întrebare
Incorect
Alegeți o opțiune:
0 a. Este folosit atunci cand un algoritm este cunoscut si urmeaza anumiti pasi precisi
d. Toate variantele
121 întrebare
Corect
Referitor la diferentele dintre Singleton si clasele statice, care dintre urmatoarele variante este
corecta?
Alegeți o opțiune:
0 a. Singleton nu respecta principiile de POO
61 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
122 întrebare
Corect
Alegeți o opțiune:
0 a. Prin implementarea interfetei, se asigura implementarea unui set de metode, care vor
face apeluri/call-uri ale metodelor specifice clasei existente prin intermediul parintelui (super)
b. Toate variantele
0 c. Clasa Adapter implementeaza interfata la care trebuie sa faca adaptarea
123 întrebare
Corect
Alegeți o opțiune:
0 a. Comportamental
0 b. Creational
c. Structural
0 d. Niciuna dintre variante
62 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
124 întrebare
Corect
Alegeți o opțiune:
a. Atunci cand este necesar ca un subiect sa notifice mai multi observatori
0 b. Atunci cand dorestea adaugarea de noi functionalitati claselor existente
0 c. Atunci cand este necesara crearea unei structuri ierarhice prin compunerea de obiecte
0 d. Atunci cand este nevoie sa se utilizeze clase din doua framework-uri diferite
125 întrebare
Corect
Alegeți o opțiune:
a. creeaza instanta la momentul folosirii
0 b. instantiaza instanta de la inceput
63 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
126 întrebare
Corect
La ce se utilizeaza Façade?
Alegeți o opțiune:
0 a. Pentru a adapta o clasa la o alta clasa
127 întrebare
Corect
Alegeți o opțiune:
0 a. Thread Safe Singleton
c. Conformity Assessment
0 d. Lazy Initialization
64 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
128 întrebare
Corect
Alegeți o opțiune:
0 a. Componenta concreta, Composite, NodFrunza
129 întrebare
Corect
Alegeți o opțiune:
0 a. AI
b. DNS Resolver
0 c. Model View Controller
0 d. Data mining
65 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
130 întrebare
Corect
Alegeți o opțiune:
0 a. Defineste o relatie de n : 1, in care mai multi subiecti notifica un singur observer
c. Este folosit atunci cand anumite elemente (obiecte) trebuie sa fie anuntate de
schimbarea starii altor obiecte
0 d. Niciuna dintre variante
131 întrebare
Corect
Alegeți o opțiune:
a. Ambele variante
0 b. Ajuta la cearea de clone pentru obiectele a caror construire dureaza foarte mult
0 c. Ajuta la cearea de clone pentru obiectele a caror construire consuma foarte multe
resurse
66 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
132 întrebare
Corect
Alegeți o opțiune:
0 a. In cazul in care clasa Singleton nu este folosita, instanta nu este creata
133 întrebare
Incorect
Alegeți o opțiune:
0 a. Memento, Originator, CareTaker
0 b. Memento, CareTaker
0 c. Memento, Originator
67 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
134 întrebare
Corect
Alegeți o opțiune:
0 a. Nu exista niciun design pattern cu acest nume
b. Este folosit atunci cand este necesara crearea unei structuri ierarhice sau o structura
arborescenta prin compunerea de obiecte
0 c. Este o structura de date (arbore)
0 d. Toate variantele
135 întrebare
Corect
Care dintre urmatoarele variante reprezinta tipuri ale design pattern-ului Singleton?
Alegeți o opțiune:
0 a. Eager initialization;
0 b. Lazy initilization;
d. Toate variantele
68 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
136 întrebare
Corect
Alegeți o opțiune:
0 a. Clasa Adapter contine o instanta a clasei existente
b. Toate variantele
0 c. Clasa Adapter implementeaza interfata la care trebuie sa faca adaptarea
0 d. Prin implementarea interfetei, se asigura implementarea unui set de metode, care vor
face apeluri/call-uri ale metodelor specifice clasei existente prin intermediul instantei
137 întrebare
Incorect
Alegeți o opțiune:
0 a. Niciuna dintre variante
69 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
138 întrebare
Incorect
Alegeți o opțiune:
a. Se doreste rezolvarea unei probleme cand nu se stie cu exactitate cine o poate rezolva,
dar exista o lista de posibilitati
139 întrebare
Corect
Alegeți o opțiune:
0 a. Este superior tuturor celorlalte design pattern-uri si trebuie, astfel, folosit in orice situatie
0 b. In jocuri atunci cand foarte multe modele difera semnificativ intre ele
d. In jocuri atunci cand foarte multe modele seamana, insa difera prin culoare sau prin
pozitie
70 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
140 întrebare
Corect
Care este sintagma dupa care este recunoscut design pattern-ul Simple Factory?
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Obiecte asemanatoare
c. Familie de obiecte
0 d. Instanta unica
141 întrebare
Corect
Alegeți o opțiune:
a. Atunci cand avem mai multi algoritmi pentru rezolvarea unei probleme, iar alegerea
implementarii se face la runtime
0 b. Atunci cand este nevoie sa se utilizeze clase din doua framework-uri diferite
71 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
142 întrebare
Corect
Alegeți o opțiune:
0 a. cloneaza obiectul dorit fara sa foloseasca resurse pentru procsare
b. primeste tipul de obict dorit si returneaza tipul concret de obiect conform parametrului
primit
0 c. creaza doua sau mai multe tipuri de obiecte
143 întrebare
Corect
Alegeți o opțiune:
0 a. Structural
b. Comportamental
0 c. Creational
72 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
144 întrebare
Incorect
Alegeți o opțiune:
0 a. Clasa sau interfata care defineste le nivel abstract obiectele care gestioneaza lista de
observatori
0 b. Clasa abstracta sau interfata care defineste la nivel abstract obiectele care vor fi
notificate
145 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste construirea de obiecte cu multe proprietati ce nu sunt obligatorii
73 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
146 întrebare
Corect
Alegeți o opțiune:
a. Toate variantele
0 b. Usureaza lucrul cu framework-uri foarte complexe
147 întrebare
Incorect
Ce principii din SOLID respecta design pattern-ul Factory prin metoda createInstance()?
Alegeți o opțiune:
0 a. Dependency Inversion, Open-Closed
b. Single responsability
0 d. Liskov Substitution
74 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
148 întrebare
Corect
Alegeți o opțiune:
0 a. Nu foloseste structuri switch sau if-else
149 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
75 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
150 întrebare
Corect
Alegeți o opțiune:
a. La Strategy strategia este data ca parametru, iar la State trecerea de la o stare la alta
se face controlat
0 b. Strategy modifica intreaga clasa, iar State modifica comportamentul
0 d. Strategy permite accesul la anumite functionalitati, iar State adauga noi functionalitati
151 întrebare
Incorect
Alegeți o opțiune:
0 a. Pentru adaugarea de noi functionalitati claselor existente
76 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
152 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
153 întrebare
Incorect
Alegeți o opțiune:
0 a. Starile concrete in care poate fi un obiect
77 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
154 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Clasa Helper imbricata va fi incarcata doar cand este apelata functia de creare a
instantei
c. Toate variantele
0 d. Contine o clasa imbricata in clasa Singleton
155 întrebare
Corect
Alegeți o opțiune:
0 a. Sintagma dupa care este recunoscut este: familie de obiecte sau obiecte din aceeasi
familie;
0 d. Ofera posibilitatea crearii de obiecte concrete dintr-o familie de obiecte, fara sa se stie
exact tipul concret al obiectului;
78 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
156 întrebare
Corect
Alegeți o opțiune:
0 a. Adapter de obiecte si Adapter de interfete
157 întrebare
Incorect
Cu care din celelalte tipuri este asemanator tipul Static block initialization?
Alegeți o opțiune:
0 a. Eager initialization
0 b. Enum singleton
0 c. Singleton Collection
d. Lazy initialization
79 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
158 întrebare
Incorect
Alegeți o opțiune:
0 a. Furnizeaza posibilitatea de captare a posibilelor exceptii generate de initializarea
instantei statice
0 c. Toate variantele
159 întrebare
Incorect
Alegeți o opțiune:
a. Clasa Adapter contine instante ale celor doua clase existente
80 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
160 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Creational
c. Comportamental
0 d. Structural
161 întrebare
Corect
Alegeți o opțiune:
0 a. Ambele au o singura instanta
81 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
162 întrebare
Incorect
Alegeți o opțiune:
0 a. AbstractFlyweight, ConcreteFlyweight, UnsharedAbstractFlyweight, FlyweightFactory
0 c. Flyweight, FlyweightFactory
163 întrebare
Corect
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Structurale
c. Creationale
0 d. Comportamentale
82 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
164 întrebare
Corect
Alegeți o opțiune:
0 a. Cunoscut si sub numele de Singleton Registry
165 întrebare
Corect
Alegeți o opțiune:
a. Comportamental
0 b. Creational
0 d. Structural
83 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
166 întrebare
Incorect
Alegeți o opțiune:
a. Interfata care defineste la nivel abstract comenzile sau actiunile
167 întrebare
Corect
Alegeți o opțiune:
0 a. Single Factory
0 b. Singleton
d. Virtual Constructor
84 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
168 întrebare
Corect
Alegeți o opțiune:
0 a. Sa folosim Thread Safe Singleton
169 întrebare
Incorect
Alegeți o opțiune:
0 a. Din interiorul clasei se va restrictiona crearea de mai multe instante
85 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
170 întrebare
Corect
Alegeți o opțiune:
0 a. Se doreste decuplarea clientului de cel ce executa o actiune
171 întrebare
Corect
Alegeți o opțiune:
a. Simple Factory
0 b. Singleton
0 c. Prototype
0 d. Builder
86 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
172 întrebare
Corect
Alegeți o opțiune:
0 a. Toate variantele de mai sus
173 întrebare
Corect
Alegeți o opțiune:
0 a. construirea de obiecte complexe cu foarte multe atribute
b. instanta unica
0 c. adaugarea de noi functionalitati
0 d. familie de obiecte
87 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
174 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Se doreste construirea a foarte multe obiecte ale unei clase, obiecte ce au o parte
comuna
0 b. Se doreste alegerea implementarii pentru rezolvarea unei probleme pentru care exista
mai multi algoritmi
175 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Clasa care gestioneaza starea interna a obiectelor
0 d. Clasa care are obiecte pentru care se vor salva stari intermediare
88 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
176 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Clasa Proxy implementeaza interfata InterfataEntitate, astfel incat sa poata fi folosita ca
un obiect de tipul interfetei
0 b. Metoda specifica instantei va fi apelata doar in cazul in care conditiile sunt indeplinite
0 c. Clasa Proxy are un atribut de tipul Entitate, acesta fiind obiectul gestionat la care da
acces in mod controlat
0 d. Toate variantele
177 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Separa crearea obiectelor de utilizarea lor concreta
0 b. Toate variantele
89 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
178 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Niciuna dintre variantele de mai sus
0 b. Structural
0 c. Comportamental
0 d. Creational
179 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Niciuna dintre variantele de mai sus
90 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
180 întrebare
Nu a primit răspuns
Ce presupune Singleton?
Alegeți o opțiune:
0 a. nu poti crea mai multe obiecte ale clasei simultan
0 b. clonarea obiectelor
181 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Se doreste construirea a foarte multe obiecte ale unei clase, obiecte ce au o parte
comuna
0 d. Se doreste rezolvarea unei probleme cand nu se stie cu exactitate cine o poate rezolva,
dar exista o lista de posibilitati
91 of 92 5/30/2021, 5:22 PM
Test Autoevaluare - Design Patterns https://online.ase.ro/mod/quiz/review.php?attempt=516531&showall=1
182 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Niciuna dintre variante
0 b. Comportamental
0 c. Creational
0 d. Structural
183 întrebare
Nu a primit răspuns
Alegeți o opțiune:
0 a. Usurarea lucrului cu framework-uri foarte complexe
92 of 92 5/30/2021, 5:22 PM
1 intrebare Ge are in vedere sub-principiul Time?
lnoorect
5 intrebare Principiul care verifica absenta unui parametru, daca acesta este nut sau Oeste:
Coreci
6 intrebare Care este primul lucru pe care trebuie sa-1 facem cand testam o metoda?
lnoorect
8 intrebare Ge verifica in plus principiul Time din CORRECT fata de eel de Performance din Right-BICEP?
lnoorect
11 intreOOre In plus fata de testul de Performance din cadrul Right-BICEP, testul de lime din cadrul CORRECT testeaza:
lnoorect
c. RighV
d. CORRECT
14 intre bare
Lace se refera testarea conditiilor de eroare (Error conditions) in cazul principiului de testare RIGHT-BICEP?
Corect
15 intre bare Care dintre urmatoarele variante reprezinta caracteristicile sub-principiului Conformance?
Corect
18 intre bare Ge princiupiu se utilizeaza pentru verificarea unei metode daca are Oelemente, 1 element sau n elemente?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. Gardinaliljl'
'f' intreb3re cu
flag b. Range
c. Boundary
d. Existence
19 intre bare Testarea pentru conformance este, de asemenea, cunoscuta si sub numele de:
Coreci
20 intre bare Care dintre afirmatiile referitoare la sub-principiul Conformance este corecta ?
Coreci
23 intre bare Care dintre urmatoarele variante reprezinta o caracteristica a sub-principiului Reference?
lnoorect
c. Boundary
d. Cross-Check
25 intre bare La ce se refera Cross-Check?
Corect
27 intre bare Care din sub-principiile CORRECT poarta denumirea si de Compliance testing?
Corect
29 intrebare Care este modalitatea prin care se pot realiza testele Reference ?
lnoorect
3 3 intre bare Care este testul pentru care trebuie verificata corectitudinea printr-o verificare incrucisata?
Corect
c. Right test
d. Cross-Check tesi,
34 intre bare CORRECT reprezinta acronimul urmatoarelor notiuni:
Coreci
3 5 intre bare Care este testul care trebuie facut pentru a verifica ce se intampla in situatiile in care aplicatia ar putea crapa?
Coreci
c. Boundary test
d. Error conditionv
36 intre bare Care dintre urmatoarele variante reprezinta caracteristicile sub-principiului Range?
Coreci
39 intre bare Care dintre sub-principiile CORRECT este asemanator conditiei de eroare din Right-BICEP?
Coreci
d. Existence;,
4U intre bare
Care dintre afirmatiile referitoare la Right-BICEP este corecta?
Coreci
d. Suite Case
46 intre bare Lace este folosita adnotarea @Test(timeout=1 00)?
lnoorect
c. Boundary
d. Inverse Relationshi!I'
50 intre bare
in ce consta sub-principiul Range?
Corect
c. Boundary tesl'
d. Binary test
2 intrebare Care este o modalitatea prin care este incalcat principiul KISS (Keep It Simple and Stupid)?
Coreci
11 imreb3re
Care dintre principiile de mai jos este derivat din KISS:
Coreci
d. SOLID
12 intre bare Conventia de nume in care se mentioneaza si tipul de data al variabilei este:
lnoorect
14 intre bare
Principiul Open-Closed specific SOLID presupune:
Coreci
21 intre bare Care dintre urmatoarele variante nu reprezinta o buna practica in scrierea codului sursa?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. Metodele sunt separate prin oricate linii goal~
'f' intreb3re cu
flag b. Parametrii sunt separati prin virgula si spatiu
c. Acolada de inchidere a unui corp de instructiuni este singura pe linie, exceptie facand situatiile cand avem if-else sau try-catch
d. Blocurile cu instructiuni sunt marcate si prin identare
■ •i,<mttlZ
22 intre bare Care dintre urmatoarele principii este derivat din principiul KISS?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. SOLID
'f' intreb3re cu
flag b. Niciuna dintre variantele de mai sus
c. YAGN!f
d. DRY
29 intre bare Care dintre urmatoarele variante reprezinta reguli de Clean Code in metode?
Corect
d. ToDo comment~
31 intre bare Ince consta incalcarea principiul KISS?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. In scrierea unor metode ce nu sunt necesare
f" intreb3re cu
flag b. Niciuna dintre variantele de mai sus
c. In scrierea unor metode cu scopuri multiple,
d. In copierea unor bucati de cod si integrarea lor in mai multe zone dintr-o aplicatie
36 intre bare Care dintre urmatoarele variante reprezinta o regula de Clean Code in comentarii?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. Evitarea blocurilor de comentarii introductive;,
1" intreb3re cu
flag b. Nu sunt indicate comentariile pentru bibliotecile care vor fi refolosite de alti programatori ;
c. Comentarea codului nefolosit;
d. Nu este indicat utilizarea comentariilor pentru TODO comments;
3 7 intre bare Ge presupune Clean Code?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. Codul trebuie sa fie user de citit
f" in1teb3re cu
flag b. Codul trebuie sa fie user de modificat
c. Codul trebuie sa fie user de inteles
d. Toate variantel~
39 intre bare Atunci cand aceeasi bucata de cod se regaseste in doua metode s-a incalcat principiul:
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. D.R.'V
'f' intreb3re cu
flag b. YAG.N.I.
c. K.I.S.S.
d. O.C.P.
40 intre bare Cand este aplicabil principiul KISS?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. De fiecare data cand scriem doua metode care tac acelasi lucru;
f" in1teb3re cu
flag b. Ori de cate ori vrem ea o metoda sa taca de toata;I'
c. Ori de cate ori scriem metode care nu sun! necesare inca;
d. Ori de cate ori dam Copy/Paste unei bucati de cod;
41 intre bare Care este principiul prin care nu este recomandata scrierea a 2 metode care tac acelasi lucru?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. KISS
'f' in1teb3re cu
flag b. DR1'f
c. Niciuna din variantele de mai sus
d. YAGNI
4 7 intre bare Un exemplu de clasa denumita dupa conventia de nume UpperGamelGase este:
Coreci
50 intre bare KISS (Keep it simple and stupid) este incalcat atunci cand:
Coreci
5 in1rebare Care din urmatoarele comenzi GIT realizeaza stergerea branch-ului local si de pe repository chiar daca exista modificari ne-merge-uite?
lnoorect
c. git check
d. git commit
15 intre bare Care dintre urmatoarele comenzi se foloseste pentru verificarea statusului proiectului?
Coreci
c. git clone;
d. git init;
16 intre bare Pentru a initializa un repository se va folosi comanda:
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. git pull
f" intreb3re cu
flag b. git clone
c. git start
d. git iniv
26 intre bare Ge comanda se foloseste pentru a publica in repository modificarile facute in working copy?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. git save
'f' in1teb3re cu
flag b. git init
c. git clone
d. git commiV
29 intre bare Care este comanda pentru adaugarea unui nou fisier in track?
Coreci
30 intre bare Care dintre comenzile de mai jos realizeaza actualizarea informatiilor locale cu cele de pe server?
lnoorect
3 5 intre bare Care din comenzile de mai jos sterge branch-ul local si de pe repository?
lnoorect
36 intre bare Pentru vizualizarea fisierelor ce au fost adaugate in repository-ul local si nu se afla pe repository-ul remote se foloseste comanda:
Corect
3 8 intre bare Cu care dintre unnatoarele comenzi se face adaugarea unui nou fisier in track?
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. git commit
f" in1teb3re cu
flag b. git push
c. git adil'
d. git pull
42 intre bare Una dintre necesitatile pentru care a fost dezvoltat controlul versiunilor este:
lnoorect
44 intre bare Cum se numeste comanda prin care se afiseaza branch-urile locale si cele de pe repository ?
Coreci
50 intre bare Procesul de unire a doua sau mai multe versiuni de lucru se numeste:
Co,ect
c. git branch;
d. git branch --0 <<new_branch>>;
54 intre bare Care dintre urmatoarele afirmatii cu privire la GIT este falsa?
Corect
c. git pusl!f
d. git add
6 2 intre bare Care dintre comenzile GIT de mai jos actualizeaza informatiile locale cu cele de pe server?
Co,ect
d. lnitializare Repository
c. git status
d. git clone
69 intre bare Care dintre urmatoarele comenzi este utilizata pentru a crea un nou branch sincronizat cu branch-ul sursa din repository?
Coreci
5 inU-ebare Cum s-a schimbat adnotarea @Before din JUnit4 in JUnitS - Jupiter?
Coreci
c. BlackBox Testing;
d. WhiteBox Testing;
8 inU'ebare Care dintre urmatoarele variante reprezinta o adnotare pentru structura unui test in JUnit5-Jupiter?
lnoorect
11 inueb3re Care dintre urmatoarele reprezinta o adnotare utilizata in jUnit4 pentru metodele automate din skeleton?
lnoorect
12 intre bare Care dintre urmatoarele variante reprezinta un avantaj al testarii BlackBox?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. Testerul nu are caietul de sarcini al aplicatiei
'f' intreb3re cu
flag b. Testele vor avea un numar mic de intrari
c. Testele pot fi redundante cu alte teste realizate de dezvoltator
d. Testele sunt realizate din punctul de vedere al utilizatorulw,
13 intre bare Care sunt avantajele testelor unitare?
Coreci
14 intre bare
Ce reprezinta Test Case?
Coreci
20 i ntrebare Teardown:
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. Este un obiect folosit in test
1" intreb3re cu
flag b. Niciuna dintre variante
c. Este o metoda de definire a obiectelor folos~e inainte de testare
d. Este o metoda de distrugere a obiectelor folosite dupa terminarea testelov
23 intre bare Care dintre urmatoarele adnotari pentru structura unui test nu este prezenta in JUnit 4 ?
Corect
Marc3t 1.00 din Alege~ o op\iune:
1,00
a. AfterClass
1" intreb3re cu
flag b. AfterEaclif
c. Before
d. BeforeClass
24 intre bare Testarea WMeBox mai este cunoscuta si sub denumirea de:
Corect
Marc3t 1.00 d:n Alege\i o op\iune:
1,00
a. Open Box Testing
1" in1teb3re cu
flag b. Glass Box Testing
c. Testare structurala
d. Toate raspunsurile sunt corect~
25 intre bare Ge este fixture?
Corect
30 intre bare Daca vrem sa testam egalitatea a doua obiecte, ce tip de asertie folosim?
Corect
3 2 intre bare Care dintre urmatoarele informatii despre BlackBox Testing este adevarata?
Corect
3 3 intre bare Care este echivalentul adnotarii @Before din JUnit4 in JUnitS-Jupiter?
Corect
39 intre bare Testarea Open Box este cunoscuta si sub numele de:
Corect
d. WhiteBox Testin!I'
40 intre bare Ge reprezinta Teardown?
Coreci
41 intre bare Pentru care dintre unnatoarele metode este utilizata adnotarea @After?
Coreci
45 intre bare Care este adnotarea utilizata in JUnit4 pentru metoda automata din skeleton tearDownAfterClass()?
Corect
Finalizare verificare