Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 6 · TU Board 2082
Course Title: NET Centric Computing (CSC367)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group A
(2 × 10 = 20)
- 1.10
Define lambda expression. Distinguish between expression lambda and statement lambda. Write a program for asynchronous file read. List the benefits of Async and Await.
- 2.10
What is the process to capture Razor output? Explain the ASP.NET Core features to dynamically generate HTML content using C# and send it to the client, separating the application's concern.
- 3.10
Why do we need ORM? List the components of ADO.NET. Assume a database with a relation BOOK(ID, NAME, PRICE). Write a function to fetch a list of books having price more than 1000 using ADO.NET.
Group B
(8 × 5 = 40)
- 4.5
Write the logic to extract the name of the movie and genre from the following JSON string:
{"movie": "The Imitation Game", "Genre": "Science"} - 5.5
What are the logics behind the .NET architecture and design principles? Explain.
- 6.5
Describe any four ways to read HTTP response in ASP.NET Core.
- 7.5
Write a program to create two pages P1 and P2. P1 collects the user's name and has two buttons to navigate to P2 — one using a query string and the other using a hidden field. P2 will display it, showing the two different methods of retrieval.
- 8.5
How do you use JQuery in facilitating client-side form validation? Explain.
- 9.5
Explain how ASP.NET Core defends against XSS through output encoding.
- 10.5
What is the use of a partial class? Discuss session state.
- 11.5
Explain the core differences between a traditional Virtual Machine (VM) and a Docker container.
- 12.5
What is SPA? Write code to define a role for admin who can create, update, and delete any article.
— The End —