Tribhuwan University

Institute of Science and Technology

2081

Bachelor Level / Third Year / Sixth Semester / Science

B.Sc in Computer Science and Information Technology (CSC378)

(NET Centric Computing)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Distinguish between collection and generics. What are named and positional attribute parameters? Write a program to create your own exception when the user gives subject name than 'C#'.[10]
2.
How do you create controller? Illustrate with an example. Describe the procedure of rendering HTML with Razor with scenario.[10]
3.
List some advantages of Entity Framework over ADO.NET. Assume a database named 'IOST' with a table FACULTY(Course_Name, CourseID, No_of_Semester, fee). Insert some records using ADO.NET and retrive the fee of records having name CSIT.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
Describe the procedure of deploying .NET core application. [5]
5.
How does ASP.NET core MVC provides patterns-based way to build dynamic website? Explain. [5]
6.
Define state management. Explain the parts of state management on the client side. [5]
7.
Distinguish between roles and policies. Explain about Kestrel web server in ASP.NET core. [5]
8.
Describe the life cycle of Dependency Injection container. [5]
9.
Create a class named EMPLOYEE as super class and ENGINEER and DOCTOR as sub class. Make your own assumptions as properties and methods. [5]
10.
What is the task of ORM? Discuss about open redirect attacks. [5]
11.
Write short notes on: a. Polymorphism b. Hidden Field [5+5]
12.
Write a program to validate the form that takes input user name, password and phone number using JQuery. All fields must be non-empty and phone number must contain exactly 10 digits. [5]