logo

Crowdly

Practical C#/.Net

Шукаєте відповіді та рішення тестів для Practical C#/.Net? Перегляньте нашу велику колекцію перевірених відповідей для Practical C#/.Net в softserve.academy.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Please, select query string formats that are correct for the action :

public IActionResult OnPost(int? teacherId, int[] selectedStudents)

0%
0%
0%
0%
0%
Переглянути це питання

What will be the result of the request https://hostname:44351/home/index/52?id=35?

0%
0%
0%
0%
0%
0%
Переглянути це питання

Please, set a validation attribute for Age property so that  correct values will be from 17 to 50 inclusive

class Student

    {

        public string Name { get; set; }

       

        public int Age { get; set; }

        public DateTime EnterDate { get; set; }

    }

Переглянути це питання

What model validation attribute should be used to implement client-side validation that requires calling a method on the server to

determine whether field input is valid?

Переглянути це питання

What will be the result of the action

public class HomeController : Controller

{

public IActionResult Login(int x, int y)

{

return Content($"{x * y}");

}

}

with  https://localhost:xxxxx/home/login/    request?

0%
0%
0%
Переглянути це питання

Please, choose the name ot the mechanism that performs:

  • Retrieving data from various sources such as route data, form fields, and query strings.
  • Providing the data to controllers in method parameters and public properties.
  • Converting string data to .NET types
  • Updates properties of complex types.

Переглянути це питання

What will be the output as a result of sending request to hostname:[port]/home?
Startup.cs  Configure method:

HomeController.cs:

0%
0%
0%
0%
Переглянути це питання

What will be the output of this code with Request "http://hostname:65087/Home/Index"?

0%
0%
0%
Переглянути це питання

Please, choose what is true about attribute-based routing:

Переглянути це питання

Please, define the url that corresponds to the action defined below:

[Area("admin")]

[Route(“[controller]/[action]")]

public class MenuController : Controller

{

[Route("~/stats")]

public ActionResult Stats()

{ ... }

}

URL: https://localhost:xxxx/

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на softserve.academy?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!