Sunteți pe pagina 1din 11

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203

DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING

QUESTION BANK

VI SEMESTER
CS6001-C# AND.NET PROGRAMMING

Regulation – 2013
Academic Year 2017 – 18

Prepared by
Ms. V.Prema, Assistant Professor/CSE
VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar , Kattankulathur-603203

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

QUESTION BANK

SUBJECT : CS6001-C# AND.NET PROGRAMMING


SEM/YEAR : VI/III
UNIT I -INTRODUCTION TO C#
Introducing C#, Understanding .NET, overview of C#, Literals, Variables, Data Types,Operators,checked and
unchecked operators, Expressions, Branching, Looping, Methods, implicit and explicit casting, Constant,
Arrays, Array Class, Array List, String, String Builder, Structure, Enumerations,boxing and unboxing.
PART-A
Q.No Questions BT Level Competence
1 List some of the new features that are unique to c# language. Remember BTL 1
2 Differentiate Const and read only. Understand BTL 2
3 What are the major categories of data types in C#? Applying BTL 3
4 What are the steps to compile in .NET? Remember BTL 1
5 How will you determine the operator’s value? Remember BTL 1
6 Why C# is called type safe language? Analyze BTL 4
7 What is dynamic data type in c#? Remember BTL 1
8 What is String Literal in C#? Remember BTL 1
9 What are the differences between classes and structures? Analyze BTL 4
10 Compare value type and reference type. Understand BTL 2
11 Can an array hold objects of varying types? Explain how? Evaluate BTL 5
12 Compare array with structure. Understand BTL 2
13 How managed codes differ from unmanaged codes? Understand BTL 2
14 Illustrate with an example the implicit and explicit Apply BTL 3
conversions.
15 State few words about the two important entities of .NET frame Remember BTL 1
work.
16 Relate Boxing and unboxing, provide suitable example for Apply BTL 3
each.
17 Differentiate between Array List and Array. Analyze BTL 4
18 Develop an application with jagged arrays. Create BTL 6
19 Decide when concurrent programming is chosen for application Evaluating BTL 5
development.
20 What if the language Java is considered instead c# for an Create BTL 6
application development?
PART B
1 Explain the architectures of .NET framework with neat Analyze BTL 4
diagram.(13)
2 i)Discuss the various data types in C# .(6) Remember BTL 1
ii) Write short notes on the following. (7)
a) Literals. b) Variables.
3 i) Describe in detail about various operators available in C#.(7) Understand BTL 2
ii) when will you use the conditional operator? Compared to
if…else statement.(6)
4. Describe the branching and looping statements in C# with Remember BTL 1
suitable examples.(13)
5 i) Briefly note on control structures in C# with suitable Remember BTL 1
examples.(6)
ii) What are arrays? Explain the types of arrays.(7)
6 i) Write a short note on mutable strings with example.(6) Remember BTL 1
ii) Explain the different types of expressions used in C# in
detail.(7)
7 Illustrate structures and enumerations with example.(13) Apply BTL 3
8 i) Describe in detail about the role of Common Language Understand BTL2
Runtime( CLR) in .NET.(6)
ii) Brief with example the processes boxing and unboxing.(7)
9 i) Demonstrate the concept of command line compilation of Apply BTL 3
C#.(7)
ii) Illustrate type of parameter passed to the methods of C#.(6)
10 i) Explain how you will use primitive data types in code. Understand BTL 2
Demonstrate with example.(6)
ii) Describe in detail about string and string builder in C#.(7)
11 i)What will be the output of the following method? Why?(6) Analyze BTL 4
Static void Main ()
{
intvarA = 5;
intvarB = ++varA;
intvarC = varB++;
Console.WriteLine(“A:{0}, B:{1}, C:{2}”,varA, varB, varC);
}
ii)What are the methods and properties supported by ArrayList
class?Explain.(7)
12 Develop a C# code to find the sum of all the elements of a jagged Create BTL 6
array.(13)
13 i)Explain the properties and functions in Array Class.(6) Evaluate BTL 5
ii) Write the program to sort the numbers in descending order.(7)
14 i)Write a C# program to compute integer power of 2.(7) Analyze BTL 4
ii) Write a C# program to find the factorial of a given number.(6)

PART C
1 i)Explain the important characteristics of C# in detail.(8) Evaluate BTL 5
ii)Illustrate the application of the for each statement through a
simple program.(7)
2 Create an array of 10 integers. Populate the array by having the Create BTL 6
user enter integers at the console (Console Readline) Output the
integers sorted from the greatest to least.(15)
3 Write a program that assigns the value 25 to variable x and 5 to Analyze BTL 4
variable y. Output the sum, difference, quotient, product and
modulus of x and y.(15)
4 i)Write a C# code to compare two strings using "Equals" Create BTL 6
method.(8)
ii)Write the program to sort the number in descending order.(7)

UNIT II -OBJECT ORIENTED ASPECTS OF C#


Class, Objects, Constructors and its types, inheritance, properties, indexers, index overloading,polymorphism,
sealed class and methods, interface, abstract class, abstract and interface, operator overloading, delegates,
events, errors and exception, Threading
PART-A
Q.No Questions BT Level Competence
1 What is inheritance? Explain the use of new keyword in C# BTL 1
Remember
inheritance.
2 Define Polymorphism. Remember BTL 1
3 Arrange atleast three important features of properties. Analyze BTL 4
4 Define a constructor and list its different types. Remember BTL 1
5 Develop a c# application with method hiding. Create BTL 6
6 What are the uses of namespaces? Remember BTL 1
7 What are the uses of sealed classes in c#? Create BTL 6
8 Illustrate with an example the call to a base class constructor
Apply BTL 3
from a derived class?
9 What are the uses of indexers? Remember BTL 1
10 Give an example for virtual method and polymorphism. Understand BTL 2
11 What is abstract class? Apply BTL 3
12 Discuss about the uses of delegate. Apply BTL 3
13 Differentiate errors from exceptions. Understand BTL 2
14 Define Delegates. Remember BTL 1
15 Discuss about exceptions and Name any four system defined
Understand BTL 2
exceptions.
16 Point out the methods through which reusability is achieved in
Analyze BTL 4
C#.
17 Justify that Operators need to be overloaded. List the operators
Evaluate BTL 5
that can be overloaded.
18 Differentiate Multitasking and Multithreading. Analyze BTL 4
19 Evaluate the support provided by c# for events. Evaluate BTL 5
20 List the restrictions in Thread pool. Understand BTL 2
PART-B
1 Explain in detail about classes and objects. (13) Analyze BTL 4
2 i)List the advantage of constructor and destructor.(4)
ii)Discuss in detail about different types of constructor with Understand BTL 2
example programs.(9)
3 Illustrate a Program to find area of various shapes rectangle,
circle, triangle. Use the concept of inheritance and Apply BTL 3
polymorphism.(13)
4 i) Explain an application in C# example with polymorphism .(6)
ii) Develop a c# application which demonstrates dynamic Analyze BTL 4
polymorphism.(7)
5 i)What is Indexers?Write the advantage of Indexers.(3)
ii) Indexers can be overloaded justify your statement with an Remember BTL 1
example.(10)
6 i)Discuss both sealed classes and sealed methods with example
program.(7) Apply BTL 2
ii)Describe the use of properties with an example.(6)
7 List the different types of inheritance available in C#.Explain it
Remember BTL 1
with example programs.(13)
8 i)Define an abstract class and explain the role of abstract classes
in an application development.(7)
Remember BTL 1
ii)Explain with an example multitasking and multithreading in
c#.(6)
9 i) What do you mean by delegates? State their use with an
example.(6) Remember BTL 1
ii) Explain the process of handing events through delegates.(7)
10 i)Describe how C# support multiple inheritance? Explain by
giving an example. (7) Understand BTL 2
ii) Mention some states where “delegates” are useful.(6)
11 Illustrate with an example how the events are generated and
Apply BTL 3
handled in c#.(13)
12 Explain exception handling in C# with example. (13) Analyze
BTL 4
13 Explain about the concept of operator overloading in detail.(13) Evaluate BTL 5
14 Create an abstract ‘Animal Class that has private members weight
and name and abstract methods Speak(), Move() and
ToString().Derive from Animal a ‘Cat’ class and ‘dog’ class that
Create BTL 6
override the methods appropriately. Create an Animal Array,
populate it with Dogs and cats and then call each member’s
overridden virtual methods.(13)
PART C
1 Write a C# program to implement the relational operator
Create BTL 6
overloading.(15)
2 Explain about Virtual Methods and Overriding with example.(15) Evaluate BTL 5
3 Write user defined exception for overflow and stack empty
Create BTL 6
exceptions in a Stack class.(15)
4 Consider a student class with feet and inches as attributes which
describes the height of the student. Write a C# program to Analyze BTL 4
overload the + operator and to find the average of N students.(15)

UNIT III-APPLICATION DEVELOPMENT ON .NET


Building windows application, Creating our own window forms with events and controls, menu creation,
inheriting window forms, SDI and MDI application, Dialog Box(Modal and Modeless),accessing data with
ADO.NET, DataSet, typed dataset, Data Adapter, updating database using stored procedures, SQL Server
with ADO.NET, handling exceptions, validating controls, windows application configuration.
PART-A
Q.No Questions BT Level Competence
1 What is the use of scrollable control? Remember BTL 1
2 What are major difference between classic ADO and ADO.NET? Understand BTL 2
3 What is a form? List out the properties of Form Type? Remember BTL 1
4 Analyze the two kinds of dialog boxes? Analyze BTL 4
5 How to relate the two different types of data providers available
Apply BTL 3
in .NET Framework?
6 List out the various ADO.NET Namespaces. Remember BTL 1
7 Design an application with SDI and MDI and state the scenario in
Create BTL 6
which these applications are used.
8 Describe the role of the Dataset, Data Reader objects in
Understand BTL 2
ADO.NET.
9 What is Typed Dataset? Remember BTL 1
10 Describe the disconnected architecture of ADO. Net’s data access
Understand BTL 2
model.
11 Illustrate with example any two stored procedures to update a
Apply BTL 3
database.
12 Discuss about various properties of Data Column. Understand BTL 2
13 Select the namespace that is used to include .NET Data Provider
Evaluate BTL 5
for SQL server in .NET code.
14 Compare and contrast the two fundamental objects in ADO.NET. Apply BTL 4
15 What is data adapter? Remember BTL 1
16 Illustrate the two different methods in which a data set can be
Analyze BTL 3
populated.
17 List the distinct commands supported by Data adapter. Remember BTL 1
18 Justify that a stored procedure is better suitable for the repetitive
Evaluate BTL 5
task than a function.
19 Develop a window based application to display a message. Create BTL 6
20 How does ADO.NET connected and disconnected models differ
Analyze BTL 4
from each other?
PART-B
Describe briefly about building windows application in detail
1. Remember BTL 1
with example Program.(13)
i)How to create a windows forms?(3)
2. Understand BTL 2
ii)Discuss various forms events and controls with example.(10)
i)What is dialog box?(3)
3. Remember BTL 1
ii)What are the different types of dialog box?(10)
Describe in short the following controls. Develop an application
4. with each control.(13) Remember BTL 1
i) Checkbox (ii) Radio button (iii) Group box
Explain a menu-driven application using
i)File Menu option. (6)
5. Analyze BTL 4
ii)About Menu option.(7)
Demonstrate the execution model using an example.
i) Brief the steps involved with the development of SDI
6. application.(6) Remember BTL 1
ii) Explain in detail how to create MDI form with example.(7)
Apply the methods available for window based applications and
build an application to accept the reservation details of a train ticket
and to store the details in a database table. Use drop down list box
7. to choose the train number and name. Accept source and Apply BTL 3
destinations in text boxes. Allow the user to enter the date of
journey one month in advance. Assume that in each train, there are
thirty tickets and every booking should have a unique number.(13)
Discuss the following ADO.NET features
8. i) Using Database Connection. (6) Understand BTL 2
ii)Dataset(or) Record Set Commands.(7)
i) Discuss about ADO.NET in brief. What are the benefits of
9. using of ADO.NET in .NET 4.0?(7) Understand BTL 2
ii). Describe how the data are accessed using ADO.NET.(6)
Create a Program to implement library management system using
10. ADO.Net.(13) Create BTL 6
i) Explain in detail the process of creating menus in a windows-
based application. (7)
11. Evaluate BTL 5
ii) Develop a window based application with atleast 5 controls
and event handling methods.(6)
Implement Guest Book with name, email and comment textboxes
12. and necessary controls to validate these fields. It should be able to Apply BTL 3
view the guests using datagridview.(13)
Explain in details what are the steps to link SQL server with
Analyze BTL 4
13. ADO.NET.(13)
14. Explain in detail the exception handling procedure in
Analyze BTL 4
ADO.NET.(13)
PART C
1 Create the methods available for window based applications and
build an application to accept the reservation details of a hotel and Create BTL 6
to store the details in a database table.(15)
2 Write the program for creating dialog boxes with its different
Create BTL 6
types.(15)
3 Write a program for maintaining the students information (Roll Analyze BTL 4
number, Name, Address and Phone number) using ADO.NET and
SQL Server.(15)
4 List the validating controls supported by ADO.NET.Explain each
Evaluate BTL 5
in detail with example.(15)
UNIT IV-WEB BASED APPLICATION DEVELOPMENT ON .NET
Programming web application with web forms, ASP.NET introduction, working with XML and .NET,
Creating Virtual Directory and Web Application, session management techniques, web.config, web services,
passing datasets, returning datasets from web services, handling transaction, handling exceptions, returning
exceptions from SQL Server.
PART-A
Q.No Questions BT Level Competence
1 What is ASP.NET? Remember BTL 1
2 Develop a simple application that returns an exception from SQL
Create BTL 6
server.
3 What are the different levels of State management in ASP.NET? Remember BTL 1
4 How would you relate master page with ASP.NET pages? Apply BTL 3
5 Write down the uses of web services with examples. Remember BTL 1
6 Describe the procedure involved with database connectivity. Understand BTL 2
7 Data sets are Objects –Justify. Evaluate BTL 5
8 Differentiate the development process of web applications from
Analyze BTL 4
normal applications.
9 Describe the procedure in which to authenticate users using
Understand BTL 2
web.config.
10 List the advantages of stored procedure. Remember BTL 1
11 Apply the features of ASP.NET web forms and web pages and
Apply BTL 3
design an application.
12 Write short notes on web.config. Remember BTL 1
13 What is the need for Virtual directory? Understand BTL 2
14 Analyze the advantages and disadvantages of session state
Analyze BTL 4
management.
15 What are intrinsic attributes? Understand BTL 2
16 Define virtual directory. Remember BTL 1
17 Compare different Session management techniques. Analyze BTL 4
18 Summarize the reason for doing the serialization of object. Evaluate BTL 5
19 Design the Phases of a transaction. Create BTL 6
20 Illustrate with example how the datasets are passed as
Apply BTL 3
parameters.
PART-B
1 i) List the different object models associated with ASP.NET and
highlight the features of each object. (6)
Remember BTL 1
ii) Summarize the validator controls and their applications in
ASP.NET. (7)
2 Discuss Virtual Directory and Explain how to create it?(13) Understand BTL 2
3 What is session management in ASP.NET? (3)
Remember BTL 1
Write session management technique in detail.(10)
4 Configure forms authentication by starting the ASP.NET
configuration tool from within visual studio and create simple web Apply BTL 3
service application.(13)
5 i)Explain a Web service to perform simple interest calculation
using .NET in detail.(6)
Analyze BTL 4
ii)Explain a Web service to perform Compound interest
calculation using .NET in detail.(7)
6 Describe about how to read and write the streamed XML in
Remember BTL 1
.NET(13)
7 i) Compare the features of ASP.NET with ASP. (6)
Understand BTL 2
ii) Explain the steps involved in creation of web services.(7)
8 Differentiate between client-side and server-side validations in
Understand BTL 2
Web pages. Explain in detail how this can be done.(13)
9 i)What is Query String? What are its advantages and
limitations?(3) Remember BTL 1
ii) Develop an application with query string.(10)
10 Explain how data sets are passed as parameter and return from a
web service. Give an example code.(13) Analyze BTL 4
11 i)What is the difference between SQL notification and SQL
invalidation?(4) Analyze BTL 4
ii)Explain with example that handles both.(9)
12 i) Explain what happens when transaction is performed with out
following the procedure.(6) Evaluate BTL 5
ii) Explain about exception handling in ASP.NET.(7).
13 Develop a web application for railway ticket booking and
cancellation process with following features.(13)
 User friendly interfaces. Create BTL 6
 Implementation of transaction properties.
 Handling of exceptions.
14 Demonstrate a Program to implement a web application for
Apply BTL 3
student management.(13)
PART C
1 How to create a web form and explain how to add controls to the
Create BTL 6
form.(15)
2 Explain in detail about how session is established ,managed and
Evaluate BTL 5
tracked.(15)
3 Explain about .NET coding design guidelines in detail(15) Analyze BTL 4
4 Create a web application for hospital management system (15) Create BTL 6

UNIT V-CLR AND .NET FRAMEWORK


Assemblies, Versoning, Attributes, reflection, viewing meta data, type discovery, reflection on type,
marshalling, remoting, security in .NET
PART-A
Q.No Questions BT Level Competence
1 What is the purpose of reflection? Remember BTL 1
2 Point out the way to restrict the access to resources. Analyze BTL 4
3 Write about assemblies and list the two different views of
Remember BTL 1
assemblies.
4 Discuss several aspects of providing security to .Net applications. Understand BTL 2
5 List the use of assemblies. Evaluate BTL 5
6 Define marshaling. Remember BTL 1
7 Differentiate .EXE files from .DLL files. Understand BTL 2
8 Define CLR and list down feature of CLR. Remember BTL 1
9 State the two distinct ways of expressing version information of
Understand BTL 2
assemblies and compare each with the other.
10 Explain about the information’s stored in the configuration file
Analyze BTL 4
for remoting.
11 Describe metadata and specify the method through which Meta
Understand BTL 2
data are inspected.
12 Examine the relationship between marshalling and
Apply BTL 3
unmarshalling.
13 What are Claims?Why it is used? Remember BTL 1
14 List and compare the two predefined .Net remoting channels. Apply BTL 3
15 Define attributes and Write down the four different attributes of
assembly. Remember BTL 1
16 Use the reflection method and inspect an application at runtime.
Create BTL 6
List all the elements inspected.
17 Difference between managed and unmanged code with respect to
Analyze BTL 4
security.
18 Summarize when ACL’s are used. List its two different lists. Evaluate BTL 5
19 Illustrate the sequence of the processes authentication and
Apply BTL 3
authorization.
20 Create a secured application. List the key elements you have
Create BTL 6
considered.
PART-B
1 Summarize the concept of how to create and loading assemblies
Understand BTL 2
dynamically with code explain.(13)
2 i)What is reflection? Explain how to invoke methods using
reflection with an example.(6) Remember BTL 1
ii) Write about the typical uses of reflection.(7)
3 i) Brief note on the procedure in which meta data are viewed.(7)
ii) What do you mean by type revealing process, explain how it is Remember BTL 1
achieved through reflection.(6)
4 i)Draw the architecture of CLR.(3)
Analyze BTL 4
ii)Explain all the components in .NET environment.(10)
5 Describe some of the security concerns when calling unmanaged
Understand BTL 2
code.(13)
6 Discuss with neat sketch the .NET remoting architecture in
Understand BTL 2
detail.(13)
7 Use all the .NET coding design guidelines and develop any code
Apply BTL 3
on your choice following the guidelines.(13)
8 i)Illustrate with an example the Process assemblies and library
assemblies.(6) Apply BTL 3
ii) Explain how the version numbers are given for assemblies
with example.(7)
9 Explain in detail the aspects of providing security to .Net
Analyze BTL 4
applications.(13)
10 i)What is remoting?List the advantage of remoting.(4)
ii) Explain the steps involved in the process of creating remote Evaluate BTL 5
application. (9)
11 i) Develop an application which requires simple and compound
marshalling. (7)
Create BTL 6
ii)Explain how simple and compound marshalling are
erformed.(6)
12 Explain the Authentication and Authorization security feature in
Analyze BTL 4
.NET.(13)
13 i) Discuss the process of marshalling in detail.(6)
Remember BTL 1
ii)Write short notes on Type Discovery.(7)
14 Describe in detail about custom attributes declaration , naming
Remember BTL 1
and construction with example program.(13)
PART C
1 Explain in detail about reflection on type with example.(15) Analyze BTL 4
2 Explain how security is implemented in .NET environment.(15) Evaluate BTL 5
3 Develop the encryption technologies applied in .NET with
Create BTL 6
example.(15)
4 Explain in detail about Role based and Evidence based security in
Analyze BTL 4
detail.(15)

S-ar putea să vă placă și