TRIBHUVAN UNIVERSITY
INSTITUTE OF SCIENCE AND TECHNOLOGY
2082 B.S.
Candidates are required to give their answers in their own words as far as practicable.
Group A
Long Answer QuestionsAttempt any Two questions.
- 1Define lambda expression. Distinguish between expression lambda and statement lambda. Write a program for asynchronous file read. List the benefits of Async and Await.
- 2What 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.
- 3Why 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
Short Answer QuestionsAttempt any Eight questions.
- 4Write the logic to extract name of the movie and genre from the following JSON string. ```json {"movie": "The Imitation Game", "Genre": "Science"} ```
- 5What are the logics behind the .NET architecture and design principles? Explain.
- 6Describe any four ways to read HTTP response in ASP.NET core.
- 7Write a program to create two pages P1 and P2. P1 collects user's name and it will have two buttons to navigate to P2, one using query string and other using a hidden field. P2 will display it, showing the two different methods of retrieval.
- 8How do you use JQuery in facilitating client-side form validation? Explain.
- 9Explain how ASP.NET core defends against XSS through output encoding.
- 10What is the use of partial class? Discuss about session state.
- 11Explain the core differences between a traditional Virtual Machine (VM) and a Docker container.
- 12What is SPA? Write a code to define role to admin who can create, update and delete any article.