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 IGameUIFactory Load(string dll)

{

var asm = Assembly.LoadFrom(dll);

var type = asm.GetTypes()

.First(t => typeof(IGameUIFactory).IsAssignableFrom(t));

return (IGameUIFactory)Activator.CreateInstance(type)!;

}

Чому рефлексивний спосіб менш безпечний?

0%
0%
0%
0%
View this question

services.AddScoped

();

services.Decorate

();

Що дає це налаштування?

100%
0%
0%
0%
View this question

public class AuditableBuilder : IOrderBuilder

{

private readonly IOrderBuilder _inner;

public AuditableBuilder(IOrderBuilder inner) => _inner = inner;

public IOrderBuilder AddItem(string sku)

{

Log($"Add {sku}");

return _inner.AddItem(sku);

}

public Order Build() => _inner.Build();

}

Що демонструє цей приклад?

0%
0%
0%
0%
View this question

public class CarDirector

{

public Car Construct(ICarBuilder b) =>

b.BuildChassis()

.BuildEngine()

.BuildInterior()

.Build();

}

Яку роль виконує CarDirector?

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

string[] w = { "ALpha","beta","ALGO","apple" };

var res = w.GroupBy(s => s.StartsWith("A", StringComparison.OrdinalIgnoreCase))

.First(g => g.Key)

.OrderByDescending(s => s.Length);

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

var zipped = Enumerable.Range(1,3)

.Zip(Enumerable.Repeat(2,3),(a,b)=>a*b);

]]>
100%
100%
100%
100%
View this question
Встанови відповідність

var jagged = new[]{

new[]{1,2},

new[]{3},

Array.Empty<int>(),

new[]{4,5,6}

};

var flat = jagged.SelectMany(a=>a.DefaultIfEmpty(-1));

]]>
View this question

var d = DateOnly.FromDateTime(DateTime.Today);

var json = JsonSerializer.Serialize(d);

System.Console.WriteLine(json);

0%
100%
0%
0%
View this question

class PositiveRandom:Random{ public override int Next(int min,int max)=>base.Next(min,max)|1; }

Що порушено?

0%
0%
100%
0%
View this question

var el = JsonDocument.Parse(@"""42""").RootElement;

try

{

    System.Console.Write(el.GetInt32());

}

catch (Exception e)

{

    System.Console.Write(e.GetType().Name);

}

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