0% found this document useful (0 votes)
33 views8 pages

C# Pyq

Uploaded by

Krupa Janani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
33 views8 pages

C# Pyq

Uploaded by

Krupa Janani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Department of Information Technology Madras Institute of Technology, Chromepet, Chennai - 600 044. 175014 C# AND .NET PROGRAMMING Regulation 2019 Course Outcomes Date: 30.09.22 | 8.3010 AM By the end of this course, students will be able to Understand the difference between NET and Java framework 1. 2. Work with the basic and advanced features of C# language. 3. Create applications using various data providers. 4. Create web applications using ASP.NET 5. Create mobile applications using NET compact framework. 6. Integrate al the features of C# language and build complex web applications in NET framework, 5/8 B.Tech (Full time) Assessment Test | Maximum Marks 50 Part A (Answer all) (5X2= 10) Q.No ‘Questions — Marks CO | BL PO 1. Why e# is called as pure object oriented programming? 2 col ji 3 2. Write a c# program to print the following pattern using 2D jagged array. 2 $¢o2 7373 12345 1234 123 12 ‘a Hello World program in c# without using a semicolon, 2 (cor 73 ‘Write the difference between c# and java 2 cor 1 2°/co2 3 3 |S. “Ist possible to access the internal variable of one namespace in the derived class of another namespace? Justify your answer. _ a Part B (Answer with Options) (2X13 = 26) (_Q.No Questions pee Marks | CO_ 4 16. (i) Explain the types of inheritance with one program example, (10), 13° C02 14,213 (i) Differentiate class with interface. @) ! (OR) (i) Explain the NET architecture with neat example. 8) (i) With example, explain the creation of single delegate. 6) | [95> (@) Write a ef program to convert words to number ee | Sample Inps | | | | Two Six Zero Five | | i sample Output: |. | 2605 © | Write 2 c# code to prove an integer data as an object type. Q@ | | | {Gy Write short notes on access modifiers in cf. 6) i i i (OR) bee} i) Write ef program to find the in Sumpte Inpu Statement 1: € vection of words etwaven tv te Tir vol Morning, Have a Nice day Statement 2: Welcome to Chennai, Have a Good day, Output: Intersection of Words: 4 Nave, a, Good, day. % (i) Write short notes on indexers in eff 6 (Compulsory) (X14 = 14) Q.No Questions Marks CO 8. Consider the address book system and implement the following using cf array. 14 CO2 (a) add the contaets (name, number, mail, place) (b) remove the contact (based on number) (©) search the contact (@) update the contact. BL Bloom's Taxonomy Levels (J- Remembering 2- Understanding 3 — Applying 4 ~ Analyzing 5 — Evaluating 6 - Creati ‘CO - Course Outcomes; PO - Program Outcomes; PI Code ~ Performance Indicator Code. 2le|afo]sfelé| fol | ANNA UNIVERSITY (UNIVERSITY DEPARTMENTS) Roll No. B.E./B. Tech (Full Time) - END SEMESTER EXAMINATIONS, NOV / DEC 2022 INFORMATION TECHNOLOGY Fifth Semester 175014 C# AND NET PROGRAMMING (Regulation 2019) Time: Shes, ‘Max.Marks: 100 CO7_| Understand the difference between NET and Java framework Z CO 2_| Work with the basic and advanced features of C# language CO 3__| Create applications using various data providers CO 4_| Create web applications using ASP.NET | CO 5 _| Create mobile applications using NET compact framework ‘COG | Integrate all the features of Ci language and build complex web applications in NET framework. BL = Bloom's Taxonomy Levels (L1 - Remembering, L2 - Understanding, L3 - Applying, L4 - Analyzing, L5 - Evaluating, LG - Creating) PART-A(10 x2 PARTS at Gusstons) Q.No Questions Marks | CO | BL 1 ‘Write the difference between c#t and java. 2 coil 14 2 Is it possible to’access the internal variable of one namespace in the 2 coi] 3 derived class of another namespace? Justify your answer. 3 Does of support pointers. Justify your answer. 2 [coz] 2 ‘4 | Whatis meant by event, event listener and event handler? 2_|co2| 14 5 ‘Write the difference between data reader and data set. 2 co3| 2 6 ‘What is LINQ in cit? 2 co3} 4 7 ‘What is the use of picturebox control in windows form? 2 co4| 2 8 Write an ASP.NET web application using c# to display an image. 2 co4| 3 9 ‘What is meant by .NET compact framework? 2_|cos| 4 10 ‘What are the differences between well known server objects and 2 cos| 2 client activated server objects? * PART- B (5 x 13 = 65 Marks} (Restrict toa maximum of 2 subdivisions) Q.No ‘Questions Marks | CO | BL 771 (a) () | Explain the types of inheritance with one program example. qo |co1| 3 (i) | Identify the differences between class and interface. 3 coil] 2 OR 11 (b) (i) | With neat diagram, explain the NET architecture. 7 coil] 2 (il) | Write @ cf program using array to find the average of n numbers. 6 co1| 3 72 (a) | With program example, explain the following 43 [co2] 3 (1) Single delegate _(2) Multicast delegates. OR 72 (b) () | Write a of program using regular expression to display the total T Coz] 3 number of vowels in the given text (i) | Consider the following set of inputs € [coz] 3 www. facebook.com www.aooale.com wow.twitter.com www.whatsapp.com ‘Write a c# program to read the inputs mentioned above and display only the domain name using string concept. 73 (@) (| With program example, explain the life cycle of thread in cf. Tag COS: [8 (i) [Explain the ADO.NET architecture. 6 [cos| 2 OR 73 (by Implement the following in c# file operations 73] Cosy 3 (1) file creation (2) file copying (3) appending text to file (4) file renaming. 14 (a) (i) | Develop an ASP.NET web application using ci to check whether 6 |coa] 6 the given number is armstrong number of not. (LT Explain the various Ul widgets in c#t windows forms. 7 [coalz OR 14(b)_ | Explain the NET Web service architecture. Develop a c# application] 13 | CO4[26 using web services for arithmetic operations like addition, subtraction, multiplication and division. Test this webservices under server side. _| 15 (a) (| With neat diagram, explain the architecture of NET remoting 6 [cos | 2 (il) | Write @ c# program using reflection to display the following type 7 \cos| 3 information for the built-in class named string. + fullname, a + namespace, + base type +public constructors. 15 (b) () | With neat diagram, explain the architecture of NET compact 6 [cosy 2 framework. (i) | Write a mobile application for login system using NET compact 7 |cos| 3 framework with c#. PART- C (1 x 15 = 15 Marks) (Q.No. 16 is compulsory) Q.No ‘Questions Marks | CO [BL 16. | (i) Consider the student table. Assume the table has four columns _| 7#8=15 | CO 3, | 3,6 like id, name, dept and marks. Write a c# program to connect the co6 database using ADO.NET and display the details of table mentioned above. (ii) Consider the single account based ATM system and implement the following operations using c# windows forms or ASP.NET web application. (1) Balance Enquiry (2) Deposit (3) Withdrawl, Department of Information Technology Madras Institute of Technology, Chromepet, Chennai - 600 044. 115014 C# AND .NET PROGRAMMING Regulation 2019 Course Outcomes Date: 30.09.22 | 8.30 - 10 AM By the end of this course, students will be able to Understand the difference between NET and Java framework, 1 2. Work with the basic and advanced features of C# language 3. Create applications using various data providers. 4. Create web applications using ASP.NET 5. Create mobile applications using NET compact framework 6. Integrate all the features of C# language and build complex web applications in .NET framework. 5/8 B.Tech (Full time) Assessment Test | Maximum Marks 50 Part A (Answer all) (5X2 = 10) Q.No Questions Marks CO BL PO |. Why cis called as pure object oriented programming? 2 col 1 3 2. Write a c# program to print the following paitern using 2D jagged array 2602 S33 12345 1234 123 12 1 a Write a Hello World program in e# without using a semicolon 2 coi _13_13 4. Write the difference between c# and java. 2 cor 3 5. Is it possible to access the internal variable of one namespace in the derived classof 2. «=< CO2.—3—3. another namespace? Justify your answer. tL Part B (Answer with Options) X13 = 26) Q.No Questions see “Marks CO BL PO 6. (i) Explain the types of inheritance with one program example. (id) 13. C02 1,213 i) Differentiate class with interface. @) FE (oR) Explain the NET architecture with neat example. 8) (Gi) With example, explain the creation of single delegate. () : i “T.(@ Write a c# program to convert words to number SS eects: Sample Input: Two Six Zero Five Sample Output: 2605 © Gi) Write a c# code to prove an integer data as an object type. Q Gii) Write short notes on access modifiers in ct. @) (OR) between two text Hines (@) Write a c# program to find the intersection of wor Sample Input: Statement I: Good Morning. Have a Nice day Statement 2: Welcome to Chennai. Have a Good day. Output: Intersection of Words: 4 Have, a, Good, day. ® Gi) Write short notes on indexers in c# ro) Part C (Compulsory) (N14 = 14) | Q.No Questions Marks CO. : 14 coz 8. ‘Consider the address book system and implement the followi ig using c# array. (@) add the contacts (name, number, mail, place) (b) remove the contact (based on number) (©) search the contact @ update the contact. BL- Bloom's Taxonomy Levels (1- Remembering 2- Understanding 3 — Applying 4 ~ Analyzing CO - Course Outcomes; PO - Program Outcomes; PI Code — Performance Indicator Code. Evaluating 6 - Creating) Department of Information Technology Madras Institute of Technology, Chromepet, Chennai - 600 044. 1T5014 C# AND .NET PROGRAMMING Regulation 2019 Course Outcomes | Date: 12.12.22} 3 -4.30 PM By the end of this course, students will be able 10, 1. Understand the difference between NET and Java framework. 2. Work with the basic and advanced features of C# language. 3. Create applications using various data providers. 4. Create web applications using ASP.NET 3. Create mobile applications ui compact framework 6. Integrate all the features of C# language and build complex web applications in NET framework, 5/8 B.Tech (Pull time) Assessment Test IT Maximum Marks 50 PART A (ANSWER ALL) (SX2= 10) Marks CO BL PO > 2 CO2 1 33 E 2 thi aia providers. State the purpose of each, a (coy 4113 3. What is meant by event, event listener ancl event handle? Ea Meso A a) 4. Specify the essential elements of windows forms in c#. 20 co2 41 13 5. Why ci strings are immutable? Justify your answer with an example. 2 joo |p {3 PART B (ANSWER WITH OPTIONS) (2X13 = 26) No | Questions - Marks CO | BL PO 6. (i) Explain the ADO.NET architecture. @ 3 coms [izt3 | Explain the various UL widgets available in e# windows form, a (oR) (@ With program example, explain the life eycle of thread in ef (10) | | | Gi) Consider a class named Test which consists of two public instance variables and ‘methods, one static variable and method. Write a c# code using reflection to display i || __ oth public variables and methods using only single reflect @) | 7.) Write @ c# program using regular expression to display the total number of 13 COZ 34/5 ‘vowels in the given text. © | (ii) Develop a c# windows GUI application to read the contents ofa tex file and find the frequency of each word in the file. ‘Sample Input: | Filename: tamil.nxt | Welcome to Tamil Nadu. ‘Tamil Nadu state is a one of the popular state in india. ‘Sample Output: | Tamil 2 I E Nadu +2 State +2 a (OR) (@ Write a c# program to create a single thread, Also kill the running thread. (5) (Gi) Write a c#f application to read a test file and implement the following using file concept. ()-Extract the odd contents of file and save them to'odd.1xt file __ (2) Extract the even contents of file and save them to even.tnt file (3) Display the contents of odd.txt and even.xt files, (8) PART C(COMPULSORY) (x14 = 14) Q.No Questions Marks CO BL PO 8. (i Consider the student table. Assume the student table has four columns like id, 14 C034-.34 5 ‘name, dept and marks. Write a c# program to connect the database and display the details of table mentioned above. ) (ii) Write a web application using ASP.NET to check whether the given number is ©) perfect number or not. BL— Bloom’s Taxonomy Levels — Applying 4 — Analyzing 5 — Evaluating 6 - Creating) (1- Remembering 2- Understand CO - Course Outcomes; PO - Program Outcomes; PI Code ~ Performance Indicator Code.

You might also like