Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Option II 1. What will be the output of the following code fragment static async Task Main(string[ args) LongProcess0;Console.ReadLine0;ShortProcess0; static async void LongProcesso { Console.Write(LongProcess
Option II 1. What will be the output of the following code fragment static async Task Main(string[ args) LongProcess0;Console.ReadLine0;ShortProcess0; static async void LongProcesso \{ Console.Write("LongProcess Started;"); await Task.Delay(4000); Console.Write("LongProcess Completed;"); ] static void ShortProcess0 \{ Console.Write("ShortProcess Started;"); Console.Write("ShortProcess Completed;"); \} a) LongProcess Started;ShortProcess Started;ShortProcess Completed;LongProcess Completed; b) ShortProcess Started;ShortProcess Started;ShortProcess Completed;LongProcess Completed; c) ShortProcess Started;LongProcess Started;ShortProcess Completed;LongProcess Completed; d) LongProcess Started;ShortProcess Started;ShortProcess Completed;ShortProcess Completed; ) None of the above 2. Create function which will create Directory (directory name should be "Final Exam 2022") on C drive, create a file in the Directory above (file name should be "Exam.txt"), write your date of birth in that file 3. Create class Player which will have the following properties: Username, Password, LastName, FirstName and Level, create a constructor which will receive Username, Password, LastName, FirstName and Level for Player class and initialise these properties in class, create function "GetInfo" in class Player, which will not receive anything but print the FirstName + LastName + Level. Now create an object of that class using refiection and call "Getlnfo" method using reflection. 4. Create a TcpListener instance to send the message using socket technology, in the same class create a function to receive that message and print in the console window 5. Create MVC application to display the list of products (create product class with following properties: Id, Name, Price, CreateDate), the products should be stored in database, the database should be created using EntityFramework (use migration scripts for that). After creating the database write C\# code to insert three products in database, then delete the second product
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started