[go: up one dir, main page]

0% found this document useful (0 votes)
8 views13 pages

C# QST

Uploaded by

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

C# QST

Uploaded by

saravanan2018rsp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

SRM VALLIAMMAI ENGINEERING COLLEGE

(An Autonomous Institution)


SRM Nagar,Kattankulathur– 603203

DEPARTMENT OF INFORMATION TECHNOLOGY

QUESTIONBANK

VII SEMESTER

1908004- C# and .NET Programming

Regulation– 2019

Academic Year 2024–25(Odd Semester)

Prepared by

Mr.M.Asan Nainar, A.P(Sel.G) / IT


SRM VALLIAMMAI ENGINEERING COLLEGE
(An Autonomous Institution)
SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF INFORMATION TECHNOLOGY


QUESTION BANK

SUBJECT :1908004 -C# and.NETProgramming


SEM/ YEAR: V Sem / III Year
UNIT- I C# LANGUAGE BASICS
.Net Architecture – Core C# – Variables – Data Types – Flow control – Objects and Types- Classes
and Structs – Inheritance- Generics – Arrays and Tuples – Operators and Casts – Indexers.
PART– A
Q. No Questions BTLe Competence
vel
1 Why C# is related to .NET? BTL2 Understanding
2 Define CLR and list down the features of CLR. BTL1 Remembering
3 Why C# is called type safe language? BTL2 Understanding
4 List some of the new features that are unique to C# language. BTL1 Remembering
5 What are the two methods used in C# to ensure the variable BTL1 Remembering
initialization? Reme
6 Express the uses of type inference? Give an example. mber
BTL2 Understanding
7 What are the major categories of data types in C#? BTL1 Remembering
8 Differentiate between value type and reference type. BTL2 Understanding
9 What are the categories offlow control in C#? BTL1 Remembering
10 How do you write for loop in C#? BTL2 Understanding
11 What is the use of for each in C#? Give an example. BTL2 Understanding
12 Differentiate classes and structures. BTL2 Understanding
13 Relate boxing and unboxing, provide suitable example for each. BTL1 Remembering
14 What are the two distinct types of inheritance? BTL1 Remembering
How does an array list differ from array? BTL2 Understanding
15
16 Write a jagged array. BTL2 Understanding
17 What are generics in C#.NET? How to create generic class in C#? BTL2 Understanding
18 What is the use of tuple in C#? BTL1 Remembering
19. Give an example for user defined cast. BTL1 Remembering
20 Define indexers in C# with an example. BTL2 Understanding

21 What is mean by tuple? BTL2 Understanding


22 Define Array. BTL1 Remembering

23 Mention the use of Generics. BTL1 Remembering

24 How variable differ from constant? BTL1 Remembering

PART B
1 Illustrate the architecture of .NET framework with neat BTL3 Applying
diagram.(13)
2 i. Discuss various data types in C#.(7) BTL3 Applying
ii. Describe the usage of for and for each loop with example in C#.(6)

3 Describe in detail about program control statements available in C# BTL4 Analyzing


with suitable example.(13)
4 What is the use of Constructors? Analyze different types of BTL4 Analyzing
constructors available in C# with examples.(13)
5 List and Discuss the types of inheritance with example.(13) BTL3 Applying
6 i. Describe how C# support multiple inheritance? Explain by giving BTL3 Applying
an example. (7)
ii. Discuss the difference with Class and structure with suitable
examples(6)
7 i. What is array? Discuss array class with suitable example.(7) BTL6 Creating
ii. Summarize the different types of type casting.(6)
8 i. Classify the types of arrays and features of arrays.(7) BTL3 Applying
ii.Illustrate with example jagged array in C#.(6)
9 i. Illustrate with example tuples in C#.(7) BTL3 Applying
ii. Describe the purpose of checked and unchecked
operators.(6)
10 What is indexers? Indexers can be overloaded justify your BTL5 Evaluating
statement with an example.(13)
11 i.Write the program to sort the number in ascending order. (7) BTL6 Creating
ii. Write a C# program to find the factorial of given “N”
number. (6)
12 (6)
i.Explain sealed classes and sealed methods with example program. BTL4 Analyzing
(7)
ii. Write short notes on object class.(6)
13 Explain in detail about creation generic classes and function with BTL4 Analyzing
example program.(13)
14 Develop a program to implement the operating overloading with an BTL6 Creating
example program. (13)
15 Develop a program to implement the simple inheritance. (13) BTL6 Creating
16 Formulate a program to evaluate Tuple as a Method Parameter.(13) BTL5 Evaluating
17 Formulate a menu driven program to evaluate arithmetic BTL5 Evaluating
opearations.(13)
PART C
1 Create an array of 10 integers. Populate the array by giving the BTL 6 Creating
Input values. Find the first maximum, second maximum, first
minimum and second minimum from the given input using C#
program.(15)
2 i. Write a C# code to compare two strings using "Equals" BTL5 Evaluating
Method.(8)
ii. Write the program to sort the number in descending order.(7)
3 Consider a student class with feet and inches as attributes which BTL 6 Creating
describes the height of the student. Write a C# program to overload
the + operator and to find the average of N students. (15)

4 Write a program to find area of various shapes rectangle, circle, and BTL5 Evaluating
triangle. Use the concept of inheritance and polymorphism.(15)

5 Write a C# Program to Implement Use of Indexers.(15) BTL5 Evaluating

UNIT II C# ADVANCED FEATURES


Delegates – Lambdas – Lambda Expressions – Events – Event Publisher – Event Listener –
Strings and Regular Expressions – Generics – Collections – Memory Management and Pointers
– Errors and Exceptions – Reflection
PART A
Q. No Questions BTLe Competence
vel
1. Define delegates and uses of delegates. BTL1 Remembering
2. List the types of delegates in C#. BTL1 Remembering
3 Why do you use lambda expression? BTL2 Understanding
4 How variables are used outside of lambda expression? BTL2 Understanding
5 List the different ways of defining parameters in lambda Expression. BTL1 Remembering
6 What is the relationship between events and delegates? BTL1 Remembering

7 Point out the purpose of event listeners in C#. BTL1 Remembering


8 Distinguish between strings and string builder classes in C#. BTL2 Understanding

9. Show string builder methods of C#. BTL1 Remembering


10. What are the high level operations possible on strings with the help BTL2 Understanding
of regular expression?
What is generic collection in C#? BTL1 Remembering
11
12 Show the various types of generic collection. BTL1 Remembering
13 How to insert an element in the list using Collection? BTL2 Understanding
14 How is memory managed in C#? BTL2 Understanding
15 What are the ways in which unmanaged resources handled in C#? BTL1 Remembering
16. Give an example for casting pointer to integer types. BTL2 Understanding
17 Show the diagram for exception class hierarchy. BTL2 Understanding
18 Give the syntax to handle the exception in C#. BTL2 Understanding
19. Write a code to find out the types defined in the Assembly. BTL1 Remembering
20 Define reflections and its allowed operations. BTL1 Remembering
21 What is -> in C#? BTL1 Remembering
22 How to manage memory in C#? BTL2 Understanding
23 How exception handling is different from error? BTL2 Understanding
24 What are collections in C#? BTL2 Understanding
PART B
1 i. What do you mean by delegates? Describe in detail about delegates BTL3 Applying
with an example. (7)
ii.Describe in detail about multicast delegates.(6)
2 What is the use of event in C#? Describe in detail about how to BTL3 Applying
publish an event with an example.(13)
3 Illustrate in detail about BTL3 Applying
i. Anonymous methods.(6)
ii. Lambda Expression.(7)
4 Discuss in detail about the following BTL3 Applying
i. Lambda Expression parameter .(6)
ii. Variables outside of the lambda expression(7)
5 Analyze the event Listeners are used in C#. Develop a C# program BTL4 Analyzing
using event Listeners.(13)
6 i. Explain in detail about key methods of String Class. BTL4 Analyzing
ii .Analyse the use of String Builder class. Explain the methods of
string builder class.(13)
7 Examine in detail about regular expression with an example and list BTL4 Analyzing
its unique features(13)
8 Define generic collections. Discuss in detail about List operations BTL3 Applying
using collection with an example.(13)
9 Write short notes on the following. BTL3 Applying
i. Working with queues in collection.(6)
ii. Working with stacks in collection.(7)
10 Explain in detail about the memory management in C#.(13) BTL4 Analyzing
11 i. Illustrate in detail about Garbage Collections in C#.(6) BTL3 Applying
ii.Summarize in detail about the pointer usage in C# with an example
program.(7)
12 i. How the Exception are handled in C#. (6) BTL6 Creating
ii. Develop a C# program to implement the multiple catch block.
(7)
13 Explain in detail about user defined exception with an example BTL5 Evaluating
program.(13)
14 i.Discuss the implementation of reflection with suitable BTL3 Applying
example.(10)
ii.List the benefits of using reflection.(3)
15 Develop a C# Program to Demonstrate DivideByZero BTL6 Creating
Exception.(13)
16 Formulate a C# Program to Detect Whether ENTER key is Pressed BTL5 Evaluating
or Not.(13)
17 Develop a C# Program to calculate the length of the string.(13) BTL6 Creating
PART C
1 Develop a program to perform the following. Defines a Math BTL6 Creating
Operations class that has a couple of static methods to perform two
operations on doubles. Then you use delegates to call up these
methods.(15)
2 Explain about event publisher and event listener with a real time BTL5 Evaluating
scenario.(15)
3 Develop a program to implement dictionary generic collection.(15) BTL6 Creating

4 Explain in detail about custom attributes declaration , naming and BTL5 Evaluating
construction with example program.(15)

5 Develop a program for regular expression pattern for a five-letter BTL6 Creating
word that starts with "a" and ends with "e".(15)

UNIT III BASIC CLASS LIBRARIES AND DATA MANIPULATION


Diagnostics -Tasks, Threads and Synchronization – .Net Security – Localization – Manipulating
XML- SAX and DOM – Manipulating files and the Registry- Transactions – ADO.NET- Peer-to-
Peer Networking – PNRP – Building P2P Applications – Windows Presentation Foundation
(WPF).
PART– A

1 Write a simple thread using Thread class. BTL1 Remembering


2 State the priority level setting in the threads. BTL1 Remembering
3 Give the limitation of using thread pool. BTL1 Remembering
4 List the classes used in C# for synchronization. BTL1 Remembering
5 What is the method used in C# to know the identity? BTL1 Remembering
6 List the importance of code access security. BTL1 Remembering
7 Define localization. BTL1 Remembering
8 What is DOM? Give am example for XML DOM. BTL2 Understanding
9 Give the main XML reader and writer Classes. BTL2 Understanding
10 Differentiate SAX and DOM. BTL2 Understanding
11 Show the main actors of transaction. BTL2 Understanding
12 What are the different phases of transaction? BTL1 Remembering
13 Point out the characteristics of transaction. BTL2 Understanding
14 List the methods of file system object to manipulate the files in C#. BTL1 Remembering
15 Show the structure of XML. BTL2 Understanding
16 Mention the advantages of peer to peer networking. BTL1 Remembering
17 What is the Data Adapter Object in ADO.NET? BTL1 Remembering
18 Write the code to generate one 2D shape using shape class. BTL1 Remembering

19 What is WPF and Give its advantages? BTL1 Remembering


20 Point out the classifications of contents in WPF. BTL2 Understanding
21 Interpret the term PNRP. BTL2 Understanding
22 In what way ADO.NET is used ? BTL2 Understanding
23 Is SAX faster than DOM? BTL2 Understanding
24 Why is registry used? BTL2 Understanding
PART B

1 i.Explain in detail about thread creation in C#.(6) BTL5 Evaluating


ii. How the data passed to the thread? Explain with an example.(7)
Creating threads and passing data at start time | Microsoft Docs

2 Discuss the following thread issues BTL3 Applying


i. Race condition.(6)
ii. Dead lock.(7)
3 Describe in detail about task handling with the necessary code.(13) BTL3 Applying
4 Illustrate the following synchronization technologies BTL3 Applying
i. Mutex.(6)
ii. Semaphore.(7)
5 Demonstrate the Signature- security using the EDSA Algorithm for BTL3 Applying
signing.(13)
6 Analyze symmetric key exchange for a secure transfer by using the BTL4 Analyzing
Diffie Hellman algorithm.(13)
7 i. Differentiate localization and globalization.(4) BTL4 Analyzing
ii. Explain the windows form localization with example.(9)
8 Discuss in detail about ADO.NET transaction using simple C# BTL3 Applying
program.(13)
9 Formulate how to read and write the streamed XML in .NET. (13) BTL5 Evaluating

10. i. Compare DOM with SAX.(6) BTL4 Analyzing


ii.Explain about reading XML via the SAX approach in C# .NET.(7)

11 Write short notes on the following file manipulations. BTL3 Applying


i. Reading to the file.(6)
ii. Writing to the file.(7)
12 Discuss in detail about peer to peer Networking.(13) BTL3 Applying

13 Describe in detail about the Peer Name resolution BTL3 Applying


Protocol(PNRP).(13)

14 i. Describe in detail the different layouts of WPF.(6) BTL3 Applying


ii. Discuss about WPF controls and features.(7)
15 Develop a C# code to Read the Contents of a File.(13) BTL6 Creating
16 Formulate a C# Program how to Kill a Thread.(13) BTL5 Evaluating

17 Examine the steps involved in developing Hello World WPF BTL4 Analyzing
application.(13)
PART C
1 Create an application for the following scenario. BTL6 Creating
First reads the maximum number of worker and I/O threads and
writes this information to the console. Then assign job to the threads
by invoking the thread pool. The thread pool receives this request
and selects one of the threads from the pool to invoke the method. If
the pool is not already running, the pool is created and the first thread
is started. If the pool is already running and one thread is free to do
the task, the job is forwarded to that thread.(15)
2 How synchronization is achieved in C#? What are the technologies BTL5 Evaluating
supported by C#? Explain in detail about any two technologies of
synchronization with an example.(15)
3 What is Role registry? Explain in detail about how the read and write BTL5 Evaluating
operation performed in registry with suitable examples.(15)
4 List the Core elements of WPF. Using WPF design the BTL6 Creating
following.The 2D drawing, geometry, and transformation.(15)

5 Develop a C# Program to Accept an Employee Name from Client BTL6 Creating


and Sends back the Employee Job using XML.(15)

UNIT IV WINDOW BASED APPLICATIONS,WCF AND WWF


Window based applications – Core ASP.NET- ASP.NET Web forms -Windows Communication
Foundation (WCF)- Introduction to Web Services – .Net Remoting – Windows Workflow
Foundation (WWF) – Activities – Workflows
PART– A
1 What is the use of control class in windows form creation? BTL1 Remembering
2 What is order in which events are raised when more than one event BTL1 Remembering
selected?
3 Point out the ways in which we can display the data table with in BTL2 Understanding
a DataGridView control.
4 Demonstrate the usage of dateTimepicker. BTL2 Understanding
5 Differentiate websites and web application. BTL2 Understanding
6 Draw the basic architecture of ASP.NET. BTL2 Understanding
7 List the components of ASP.NET file. BTL1 Remembering
8 State the ASP.NET server control types. BTL1 Remembering
9 State the usage of pushback operation. BTL1 Remembering
10 Give the XML element type Format of web server controls. BTL2 Understanding
11 Show the components that participate with a WCF communication BTL1 Remembering
12 Define Workflow. How it differ from activity? BTL2 Understanding

13 Why we use .NET remoting? BTL2 Understanding


14 List the key elements of .NET remoting architecture BTL1 Remembering
15 Define WSDL. BTL1 Remembering

16 Express the use of REST in WCF. BTL2 Understanding


17 State contract and its Types in WCF. BTL1 Remembering
18 Point out the functionality of Invoke method activity. BTL1 Remembering
19 Why bookmarks used in Workflow? BTL2 Understanding
20 Write the architecture of serverside communication in .NET remoting. BTL1 Remembering

21 What is web service? BTL1 Remembering

22 Differentiate between RequiredFieldValidator and RangeValidator BTL2 Understanding

23 Why CustomValidator is needed? BTL2 Understanding

24 Differenciate between Stored Procedure and Functions. BTL2 Understanding

PART B

1 Explain in detail about creating windows form application.(13) BTL4 Analyzing

2 Create simple windows application to select the every record from BTL6 Creating
the table in database and display these records to the user in
Datagridview control.(13)
3 Describe in short the following controls BTL3 Applying
i.Button.(5)
ii.Checkbox.(5)
iii.RadioButton.(3)

4 How to create a windows forms? Explain various forms events and BTL5 Evaluating
control with example.(13)
5 i. Discuss in detail about ASP.NET architecture and its file BTL3 Applying
processing.(6)
ii. Describe about ASP.NET code Model.(7)
6 i. Illustrate the ASP.NET server controls.(5) BTL3 Applying
ii.Write a code to add web form controls using ASP.NET.(8)

7 i. Describe in detail about WCF.(6) BTL3 Applying


ii. Discuss about the core services used for platform-independent
communication.(7)
8 i.List the different activities of WCF.(3) BTL3 Applying
ii. Describe in detail about any four activities of WCF.(9)
9 Discuss in detail about workflow and explain the variables and BTL3 Applying
arguments passed in Workflow with an example.(13)
10 Explain in detail about .NET remoting and the client and server side BTL4 Analyzing
communication.(13)
11 Demonstrate the usage remote objects, clients, and servers using a BTL3 Applying
simple application.(13)
12 Discuss with neat sketch the .NET remoting architecture in BTL3 Applying
detail.(13)
13 Summarize in detail about web service creation using ASP.NET.(13) BTL6 Creating

14 i. Compare ASP and ASP.NET.(6) BTL4 Analyzing


ii. Explain in detail Data Webserver controls of ASP.NET.(7)
15 Develop a C# code to Validate Email in ASP.NET(13) BTL6 Creating

16 Draw and explain the components of the ASP.NET Web Forms.(13) BTL4 Analyzing

17 Explain the various types of ASP.NET validation controls,(13) BTL4 Analyzing

PART C

1 Create a simple windows application to pass the data between two BTL6 Creating
forms and change the back ground color of the form.(15)
2 Develop a simple registration form for event registration using BTL6 Creating
ASP.NET Web forms.(15)
3 Explain in detail about web services in ASP.NET. Create a simple BTL5 Evaluating
calculator web service using ASP.NET.(15)
4 How do you create a window workflow foundation project? Discuss BTL5 Evaluating
in detail about with an example.(15)
5 Compare the technologies of XML-RPC, SOAP, WSDL and BTL5 Evaluating
UDDI.(15)
UNIT V .NET FRAMEWORK AND COMPACT FRAMEWORK
Assemblies - Shared assemblies - Custom Hosting with CLR Objects – App domains - Core
XAML - Bubbling and Tunneling Events- Reading and Writing XAML - .Net Compact
Framework - Compact Edition Data Stores – Errors, Testing and Debugging –Optimizing
performance – Packaging and Deployment – Networking and Mobile Devices
PART A
1 What are assemblies? BTL1 Remembering
2 Show the structure of Assembly. BTL1 Remembering
3 Differentiate private and shared assembly. BTL2 Understanding
4 What is the use of application domain? BTL1 Remembering
5 List the items available in strong name of .NET assembler. BTL1 Remembering
6 Define XAML. BTL1 Remembering
7 Give the syntax of get and set accessors. BTL2 Understanding
8 Why the bubbling and tunneling events used in XAML? BTL2 Understanding
9 Differentiate XML and XAML. BTL2 Understanding
10 Point out the advantages of XAML. BTL1 Remembering
11 What are the challenges of using the .NET compact framework? BTL1 Remembering
12 Differentiate Window CE and Window mobile. BTL2 Understanding
13 List the uses of compact edition Data store. BTL1 Remembering
14 How the exceptions are handled in .NET compact framework? BTL2 Understanding
15 What is Unit testing? BTL1 Remembering
16 Give the unique feature of compact CLR Engine. BTL2 Understanding

17 How can you code to display “hello World” in XAML? BTL2 Understanding

18 Differentiate between testing and debugging. BTL2 Understanding


19 What is the method used to start a help topic in your application on BTL1 Remembering
smart mobile devices?
20 How does .net mobile work? BTL1 Remembering
21 What are the types of testing? BTL2 Understanding
22 Differentiate between Unit and Integration testing. BTL2 Understanding
23 Interpret the term CLR. BTL2 Understanding
24 What is Bubbling and Tunneling? BTL1 Remembering
PART B

1 i.Discuss in detail about features of assembly.(8) BTL3 Applying


ii.Describe in detail about different types of assemblies.(5)
2 Explain in detail about assemblies creation with an example.(13) BTL4 Analyzing

3 Illustrate the usage of Application domain with an example BTL3 Applying


program.(13)
4 Describe in detail about shared assembly and its advantages.(13) BTL3 Applying

5 i.Discuss about the dependency properties of XAML.(6) BTL6 Creating


ii.Develop a code to show a dependency property with an example
code.(7)
6 Summarize about bubbling and tunneling events with an suitable BTL6 Creating
application.(13)
7 Discuss in detail about reading and writing operations of XAML.(13) BTL3 Applying

8 Describe in detail about .NET compact framework and its BTL3 Applying
challenges.(13)
9 Analyze the differences between .NET framework and .NET BTL4 Analyzing
compact framework.(13)
10 Discuss the following operations using compaction edition data BTL3 Applying
store.
i.Creating table .(5)
ii.Creating foreign key and indexing.(8)

11 Illustrate the exception handling of .NET compact framework.(13) BTL3 Applying

12 Describe about the web exception, socket exception and sqlce BTL3 Applying
exception.(13)
13 Analyze the .NET compact framework performance statistics.(13) BTL4 Analyzing

14 i. Explain in detail about .net framework deployment features.(7) BTL4 Analyzing


ii. Explain the advantages of packaging in .net framework.(6)

15 Compare and contrast between Testing and Debugging. (13)


BTL5 Creating
16 Develop a WPF application using Bubbling Event.(13) BTL6 Evaluating
17 Explain the different ways to package an application and how to BTL4 Analyzing
deploy an application to Windows as well as to the Internet.(13)

PART C

1 Explain in detail about core XAML with suitable example .(15)


BTL5 Evaluating
2 Create simple application using the compact edition data store .(15)
BTL6 Evaluating
3 Explain how to develop mobile application using .NET.(15)
BTL5 Creating
4 Develop a simple application using the .NET compact
framework.(15) BTL6 Creating
5 Compare the technologies of .NET Framework and Compact BTL5 Evaluating
Framework.(15)

You might also like