Nội dung text Qns Paper.pdf
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. 2021 Batch
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Don’t Forget to Follow Uni Bytes 2020 Batch
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: V Subject: Dot Net Technology 2019 Batch Group B Attempt any SIX questions 2. What do you mean C# is type safety programming language? Explain any four applied technologies in DotNet framework. 3. List any five contextual keywords in C#? Write a C# program to initialize and display jagged array elements with sum of each row. 4. What is string interpolation? How passing argument by value is differing from passing argument by reference? Explain with program. 5. What are uses of base keyword in C#? Write a C# program to illustrate the concept of abstract class and abstract method. 6. What is virtual method? # program to illustrate multi-level inheritance with virtual method. 7. What is difference between indexer and properties? Explain the concept of generic class in C# with 8 suitable program. 8. Write a program to create form for calculating simple interest in one ASP.NET page and display the simple interest in another page of ASP.NET. Group C Attempt any TWO questions. 9. a. What is System Exception? Write a C# program that will read balance and withdraw amount from keyboard and display the remaining balance on screen if balance is greater than withdraw amount otherwise throw an Application Exception with appropriate message. b. List any five LINQ standard operator? Write a C# program to compute aggregate salary of 5 employee and then display employee record in descending order with respect to employee salary using LINQ. 10. What are different type of delegate in C#? Write a C# program to create a class Time which represents time. The class should have three fields for hours, minutes and seconds. It should have constructor to initialize hours, minutes and seconds and method displayTime() to print current time. Overload following operators: a) + (add two time objects on 24 hours clock) b) (compare two time objects) 11. What is difference between executeScalar() and executeReader() method ? Write a C# program to connect database Bank and insert 5 customer record (Account_no, Name, Address, Balance) in Customer table and Display the customer record whose balance is greater than 5000. Don’t Forget to Follow Uni Bytes