logo

Crowdly

Browser

Add to Chrome

Основи розробки програмного забезпечення на платформі Microsoft.NET

Looking for Основи розробки програмного забезпечення на платформі Microsoft.NET test answers and solutions? Browse our comprehensive collection of verified answers for Основи розробки програмного забезпечення на платформі Microsoft.NET at do.ipo.kpi.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

public static Func

Cloner

()

{

var p = Expression.Parameter(typeof(T));

var n = Expression.MemberInit(Expression.New(typeof(T)),

typeof(T).GetProperties().Select(pi =>

Expression.Bind(pi, Expression.Property(p, pi))));

return Expression.Lambda

>(n, p).Compile();

}

Що головне у цьому підході?

0%
0%
0%
100%
View this question
Що виведе згенерований код?

var cnt = new[]{ "dot","dog","dig" }

.GroupBy(w=>w[1])

.Select(g=>g.Count())

.Max();

]]>
50%
50%
0%
50%
View this question

public override bool Handle(Request r)

{

if (ShouldSkip(r)) return false; // Next не викликається

return base.Handle(r);

}

Що може статись із ланцюгом?

0%
0%
0%
0%
View this question

try

{

    JsonSerializer.Deserialize<Point>("""{"x":1,"y":"oops"}""");

}

catch (JsonException ex)

{

    System.Console.WriteLine(ex.Path);

}

record Point(int x, int y);

0%
0%
0%
0%
View this question
Що виведе згенерований код?

var res = new[] { "x", "y", "z" }.Reverse().Skip(1).First();
]]>
0%
0%
100%
View this question

exporter.Save("out.dat"); sorter.DoSort(list);

Ключова різниця Template Method vs Strategy?

0%
100%
0%
0%
View this question

Реалізацію завдання патерном декоратор (Decorator) можна замінити реалізацією через успадкування ?

0%
0%
0%
View this question
Що виведе згенерований код?

var words = new[] { "dot", "dog", "dig" };

var grouped = words.GroupBy(w => w[1]).Select(g => g.Count()).Max();

]]>
0%
50%
0%
50%
View this question
Що виведе згенерований код?

int[] p = {1,2,3};

int[] q = {3,4};

var diff = p.Union(q).Except(p.Intersect(q));

]]>
100%
100%
100%
100%
View this question

Класів, які реалізують інтерфейс IStrategy в патерні Стратегії, надаючи свою версію методу Algorithm(), може бути

0%
0%
0%
0%
View this question

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome