Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Option I 1. What will be output of the following code fragment: static void Main(string[ args) { LongProcess0; ShortProcess0; ) static void LongProcess0 { Console.Write(LongProcess

image text in transcribed

Option I 1. What will be output of the following code fragment: static void Main(string[ args) \{ LongProcess0; ShortProcess0; ) static void LongProcess0 \{ Console.Write("LongProcess Started;"); System. Threading.Thread.Sleep(5000); Console.Write("LongProcess Completed;"); \} static void ShortProcess0 \{ Console.Write("ShortProcess Started;"); System. Threading. Thread.Sleep(3000); Console.Write("ShortProcess Completed;";); \} a) LongProcess Started;LongProcess Completed;ShortProcess Started;ShortProcess Completed; b) ShortProcess Started;LongProcess Completed;ShortProcess Started;ShortProcess Completed; c) LongProcess Completed;LongProcess Completed;ShortProcess Started;ShortProcess Completed; d) ShortProcess Started;LongProcess Completed;ShortProcess Started;ShortProcess Completed; e) None of the above 2. Create function which will create Directory (directory name should be "Final Exam") on C drive, create a file in the Directory above (file name should be "Exam 2022.txt"), write current date in that file 3. Create class User which will have the following properties: Username, LastName, FirstName and Password, create a constructor which will receive Username, LastName, FirstName and Password for User class and initialise these properties in class, create function "GetInfo" in class User, which will not receive anything but print the FirstName + LastName. Now create an object of that class using reflection and call "GetInfo" 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 update the second product

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ How can they be incorporated into social media content?

Answered: 1 week ago