CSC367 NET Centric Computing

NET Centric Computing TU Board 2082 question paper

12 questionsSit this paper (timed)

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. 1.

    Define lambda expression. Distinguish between expression lambda and statement lambda. Write a program for asynchronous file read. List the benefits of Async and Await.

    10
  2. 2.

    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.

    10
  3. 3.

    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.

    10

Group B

(8 × 5 = 40)

  1. 4.

    Write the logic to extract the name of the movie and genre from the following JSON string:
    {"movie": "The Imitation Game", "Genre": "Science"}

    5
  2. 5.

    What are the logics behind the .NET architecture and design principles? Explain.

    5
  3. 6.

    Describe any four ways to read HTTP response in ASP.NET Core.

    5
  4. 7.

    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.

    5
  5. 8.

    How do you use JQuery in facilitating client-side form validation? Explain.

    5
  6. 9.

    Explain how ASP.NET Core defends against XSS through output encoding.

    5
  7. 10.

    What is the use of a partial class? Discuss session state.

    5
  8. 11.

    Explain the core differences between a traditional Virtual Machine (VM) and a Docker container.

    5
  9. 12.

    What is SPA? Write code to define a role for admin who can create, update, and delete any article.

    5

— The End —