Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
186 views

CS6001-C Sharp and .NET Programming

The document discusses a question bank for the subject C# and .NET Programming. It contains questions grouped under different sections and parts related to topics like introduction to C#, object oriented aspects of C# and more. The questions cover different cognitive levels ranging from remembering to creating. The document also contains details about the college, department, subject and regulations for the academic year.

Uploaded by

Karthik S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views

CS6001-C Sharp and .NET Programming

The document discusses a question bank for the subject C# and .NET Programming. It contains questions grouped under different sections and parts related to topics like introduction to C#, object oriented aspects of C# and more. The questions cover different cognitive levels ranging from remembering to creating. The document also contains details about the college, department, subject and regulations for the academic year.

Uploaded by

Karthik S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203

DEPARTMENT OF INFORMATION TECHNOLOGY

QUESTION BANK

VI SEMESTER

CS6001- C# and .NET Programming

Regulation – 2013

Academic Year 2018 – 19 (Even Semester)

Prepared by

Ms. K. Mohanambal, Assistant Professor (O.G)/IT


VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF INFORMATION TECHNOLOGY


QUESTION BANK

SUBJECT : C# and .NET Programming


SEM / YEAR: VI Sem/III Year

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. What is the .NET Framework? BTL1 Remembering
2. Define CLR and list down the features of CLR. BTL1 Remembering
3. Write about the string literal in C#. BTL1 Remembering

4. What is dynamic data type in C#? BTL1 Remembering

5. What are the steps to compile in NET? BTL1 Remembering


What is an immutable string? How can we modify such a BTL1 Remembering
6. string?
7. Differentiate Static and non-static members of a class. BTL2 Understanding
8. Compare value type and reference type. BTL2 Understanding
9. Show the characteristics of C#. BTL2 Understanding
10. How managed codes differ from unmanaged codes. BTL2 Understanding
11. Classify the major categories of data types in C#. BTL3 Applying
Illustrate with an example the implicit and explicit
12. conversions?
BTL3 Applying
Relate Boxing and unboxing, provide suitable example for
13. each. BTL3 Applying

14. Why Data types are important? BTL4 Analyzing


15. Why C# is called type safe language? BTL4 Analyzing
16. How does an Array List differ from Array. BTL4 Analyzing
17. Can “this” be used within a static method? Justify your answer. BTL5 Evaluating
Decide when concurrent programming is chosen for
18. application development. BTL5 Evaluating

19. Develop an application with jagged arrays? BTL6 Creating


What if the language Java is considered instead c# for an
20. application development BTL6 Creating

PART – B
Describe the architecture of .NET framework with neat
1. diagram.(13) BTL1 Remembering

Describe in detail about program control statements available


2. BTL1 Remembering
in C# with suitable example.(13)
i) Write a short note on mutable strings with example.(7)
3. ii) Explain in detail the different types of expressions used in BTL1 Remembering
C#. (6)

i)Describe the purpose of checked and unchecked


operators.(6)
4. BTL1 Remembering
ii) Describe the usage of an for… Each loop with example
in C#.(7)
i) Describe in detail the role of Common Language Runtime
5. (CLR) in .NET.(7)
BTL2 Understanding
ii) Brief the processes boxing and unboxing with example.(6)

Explain in detail about the class which can be used when you
6. want to modify a string without creating a new object. (13) BTL2 Understanding

i)What is array? Discuss array class with suitable example.(7)


7. ii)Discuss various data types in C#.(6)
BTL2 Understanding

i) Classify the types of arrays and features of


arrays.(7)
8. ii) Create an array of 10 integers. Populate the array by having BTL3 Applying
the user enter integers at the console (Console Readline)
Output the integers sorted from the greatest to least.(6)
i) Illustrate with example enumerations and arrays in C#.(7)
9. ii) Demonstrate the type of parameter passed to methods in BTL3 Applying
C#.(6)

10. i) Write a C# Program to check whether the entered year is a BTL4 Analyzing
Leap year or not. (7)
ii) Write a C# program to find the length of the Jagged Array
using predefined functions.(6)

i)Write a C# program to computer integer power of 2.(7)


11. ii)Write a C# program to find the factorial of given “N‟ BTL4 Analyzing
number.(6)
i)Explain the properties and functions in array class(7)
12. ii)Write the program to sort the number in descending BTL4 Analyzing
order.(6)

13. Explain in detail about the types of operators (13) BTL5 Evaluating
Develop a program to generate the first 10 terms of the
14. Fibonacci series. (13) BTL6 Creating
PART – C
What are the methods and properties supported by ArrayList
1. class? Explain.(15) BTL5 Evaluating

i) Explain the salient features of .NET framework. (8)


2. ii) Explain the important characteristics of C# in detail.(7) BTL5 Evaluating

i)Develop a C# code to find the sum of all the elements of a


jagged array .(8) BTL6 Creating
3. ii) Develop a C# code to compare two strings using "Equals"
method. (7)
i) Develop a C# code to get a Number and Display the
Number in its Reverse Order. (8) BTL6 Creating
4. ii) Develop a C# code to Sort a List of Names in Alphabetical
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 implementation inheritance? BTL1 Remembering
2. What is abstract class? BTL1 Remembering
3. Define operator overloading. BTL1 Remembering
4. Define Interfaces. BTL1 Remembering

5. Define Delegates and uses of delegates. BTL1 Remembering


6. List the restrictions in Thread Pool. BTL1 Remembering
Discuss about exceptions and Name any four system defined
7. exceptions. BTL2 Understanding

8. What are Sealed classes and Give the uses of sealed class. BTL2 Understanding

9. Difference between throw exception and throw clause. BTL2 Understanding


10. Give an example for virtual method and polymorphism. BTL2 Understanding
What is the relationship between specialization and
11. generalization? BTL3 Applying

12. Discuss about event? BTL3 Applying


Illustrate with an example the earl y binding and late
13. binding. BTL3 Applying

14. Is object a universal data type?Justify your answer. BTL4 Analyzing


15. Point out different types of constructor. BTL4 Analyzing
16. Arrange at least three important features of properties. BTL4 Analyzing
Justify that Operators need to be overloaded. List the
17. operators that can be overloaded? BTL5 Evaluating

18. What support is provided by c# for events? BTL5 Evaluating


19. What if there are no sealed classes in c#? BTL6 Creating
Develop a c# application with method hiding.
20. BTL6 Creating
PART – B
i) What do you mean by delegates? State their use with an
example. (7)
1.
ii) Describe the process of handing events through delegates. BTL1 Remembering
(6)

2. Describe the concepts of indexers with example it. (13) BTL1 Remembering

i) What are abstract classes and how to implement their


3. interfaces? (7)
BTL1 Remembering
ii) Brief note on operations of thread with examples.(6)

4. List and explain the types of inheritance with example.(13) BTL1 Remembering

i)Describe how C# support multiple inheritance? Explain by


5. giving an example. (7)
BTL2 Understanding
ii) Describe the use of properties with an example. (6)

i) Discuss the method overloading with an example. (7)


6. ii) Define an abstract class and Discuss the role of BTL2 Understanding
abstract classes in an application development.(6)

Mention some states where “delegates” are useful.Summarize


7. the concept for storing the employee details using bubble BTL2 Understanding
sort.(13)
i)Write a C# Program to Illustrate Multiple Exceptions. (7)
8. ii)Write a C# Program to Perform Addition with MOUSEUP
Event. (6) BTL3 Applying

9. Illustrate with an example interfaces in C#.(13) BTL3 Applying

What is indexers? Indexers can be overloaded justify


10. your statement with an example.(13) BTL4 Analyzing
i)Demonstrate both sealed classes and sealed methods with
example program .(7)
11.
ii)Explain the purpose of constructor.(6) BTL4 Analyzing

12. How the Exception are handled in C#. (13) BTL4 Analyzing

Explain about the concept of operator overloading in BTL5 Evaluating


13.
detail.(13)
13. i) Develop an application with polymorphism in c# .(7)
14. ii) Develop a c# application which demonstrates dynamic BTL6 Creating
polymorphism.(6)

PART – C
Explain constructors and its types and how to add a
1. constructor to the building class. (15) BTL5 Evaluating

i) Write a C# program to Obtain Status of the Current


Thread.(8) BTL5 Evaluating
2. ii) Write a C# program to demonstrate IndexOutOfRange
Exception.(7)

i) Write a C# program to convert feet to inches using


delegates.(8) BTL6 Creating
3. ii) Write a C# program to illustrate the concept of Passing
Parameter for thread. (7)
i) Write a C# program to demonstrate hierarchical inheritance.
(8) BTL6 Creating
4. ii) Write a C# program to Illustrate Multilevel Inheritance with
Virtual Methods. (7)

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 data set in ADO.NET? BTL1 Remembering
2. What are intrinsic attributes. BTL1 Remembering
3. What is SDI and MDI application? BTL1 Remembering
4. Define data adapter. BTL1 Remembering
5. List the advantages of stored procedure. BTL1 Remembering
6. What is a message box? BTL1 Remembering
7. Differentiate model and modeless Dialog. BTL2 Understanding
What are major difference between classic ADO and
8. BTL2 Understanding
ADO.NET?
9. Discuss about ADO.NET model BTL2 Understanding
10. Give notes on Typed dataset. BTL2 Understanding
How to relate the two different types of data providers
11. available in .NET Framework. BTL3 Applying

Illustrate with example any two stored procedures to update a


12. database. BTL3 Applying

Compare and contrast the two fundamental objects in


13. ADO.NET? BTL3 Applying
How does ADO.NET connected and disconnected models
14. differ from each other? BTL4 Analyzing
15. Analyze the two kinds of dialog boxes? BTL4 Analyzing
16. Point out the advantages of ADO.NET model. BTL4 Analyzing
Select the namespace that is used to include .NET Data
17. Provider for SQL server in .NET code. BTL5 Evaluating

Justify that a stored procedure is better suitable for the


18. BTL5 Evaluating
repetitive task than a function.
19. Develop a window based application to display a message. BTL6 Creating
Design an application with SDI and MDI and state the
20. scenario in which these applications are used. BTL6 Creating

PART – B
What is dialog box? Differentiate between model and
1. modeless dialog box? Write the program for creating BTL1 Remembering
dialog boxes with its different types. (13)

i) Brief the steps involved in development of SDI application.


2. (7) BTL1 Remembering
ii) What are MDI forms?Explain how to create MDI Form
with example. (6)
Describe in short the following controls. Develop
an application with each control.
3. i) Checkbox(4) BTL1 Remembering
ii) Radio button(4)
iii) Group box (5)

Discuss briefly about the following features with ADO.Net.


4. i) Updating Database using stored Procesures. (7) BTL1 Remembering
ii) Connecting SQL Server with ADO.NET .(6)

i)Compare the features of ADO.NET with ADO .(7)


5. BTL2 Understanding
ii)Describe how the data are accessed using ADO.NET .(6)
i) Discuss about ADO.NET in brief. What are the benefits of
using of ADO.NET in .NET 4.0. (7)
6. ii) Brief discussion on the classification of the basic classes in BTL2 Understanding
ADO.NET (6)

Discuss the following ADO.NET features:


7. i)Using Database Connection(7) BTL2 Understanding
ii)Dataset (or) Record set Commands(6)
Illustrate standard controls and components of windows forms
8.
in .NET (13) BTL3 Applying

Apply events, controls, menus and dialog boxes to create a


9. C# windows forms application for Super Market Stock BTL3 Applying
Management and Billing System. (13)

i) Explain in detail the exception handling procedure in


ADO.NET. (7)
10.
ii) List the validating controls supported by ADO.NET. BTL4
Analyzing
Explain each in detail with example. (6)
11. How to create a windows forms? Explain various forms events
BTL4 Analyzing
and control with example.(13)
i) Write a C# code that uses DataReader class to issue query to
read data from dataset. Assume your own example. (7)
12. ii)Write a program for maintaining the students information BTL4 Analyzing
(roll number, name, address and phone number)using
ADO.NET and SQL server.(6)

Explain in detail about Exceptions and user defined


13. Exceptions with suitable example.(13) BTL5 Evaluating

Create your own Windows form with events and controls for a
14. library management system. (13) BTL6 Creating

PART – C

Explain how to build the windows application forms with


1. events and controls with example.(15) BTL5 Evaluating

i) Explain i n detail the process of creating menus in a


windows-based application. (8)
2.
ii) Develop a window based application with at least 5 BTL5 Evaluating
controls and event handling methods. (7)
Develop an C# windows forms application for students
BTL6 Creating
enrollment in Inter College Technical Contest,with
3. appropriate form events, controls, menus and dialog
boxes.(15)
Create a DataTable object,explicitly defining the DataColumn
data types by using System.Data.sqlTypes instead of CLR
BTL6 Creating
types. The code fills the DataTable with data from the
4. Sales.SalesOrderDetail table in the AdventureWorks database
in SQL Server. The output displayed in the console window
shows the data type of each column,and the values retrieved
from SQL Server. (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? BTL1 Remembering
2. Define a web service? List few real-time web services. BTL1 Remembering
Define XML.Give example BTL1 Remembering
3.
4. List the server side state management options supported by BTL1 Remembering
ASP.NET

5. Why do we need virtual Directory? BTL1 Remembering


6. What is use of virtual directory in ASP.NET? BTL1 Remembering
Describe the procedure involved with database connectivity.
7. BTL2 Understanding

8. Discuss the reason for doing the Serialization of object. BTL2 Understanding
9. Give notes on web config. BTL2 Understanding
10. State the phases of a transaction. BTL2 Understanding
Apply the features of ASP.NET web forms and web pages and
11. design an application. BTL3 Applying

Illustrate with example how the datasets are passed as


12. parameters. BTL3 Applying

13. How would you relate master page with ASP.NET pages. BTL3 Applying
State the advantages and disadvantages of session state
14. management. BTL4 Analyzing

15. Point out the uses of web services with examples. BTL4 Analyzing

16. In which event, all the controls will be fully loaded? BTL4 Analyzing

17. Data sets are Objects -Justify BTL5 Evaluating


18. Summarize the benefits provided by XML classes in .NET BTL5 Evaluating

Why the transaction properties need to be followed. What


19. happens if they are not followed? BTL6 Creating

Develop a simple application that returns an exception from


20. SQL server. BTL6 Creating
PART – B

i)List the different object models associated with ASP.NET


and highlight the features of each object. (7)
1. BTL1 Remembering
ii) Describe the validator controls and their applications in
ASP.NET. (6)
i)Write short notes on web services(7)
2. ii)Describe the procedure in which to authenticate users BTL1 Remembering
using web.config. (6)
3. Desribe how to read and write the streamed XML in .NET.(13) BTL1 Remembering

What is session management in ASP.NET? Write session


4. BTL1 Remembering
management technique in detail.(13)

i).Compare the features of ASP.NET with ASP. (7)


5. BTL2 Understanding
ii) Explain the steps involved in creation of web services.(6)

Differentiate between client-side and server-side validations in


6. Web pages. Explain in detail how this can be done. (13) BTL2 Understanding

Describe the state management techniques for web application


7. BTL2 Understanding
in detail.(13)
Develop a web service to perform simple interest
BTL3 Applying
8. calculation using .NET.(13)
Show the steps for creating the virtual directory and
configuration for ASP.NET applications. (13) BTL3 Applying
9.
i)What is the difference between SQL notification and SQL
10. invalidation?(7) BTL4 Analyzing
ii)Explain with example that handles SQL notification and
SQL invalidation.(6).

How session is established, managed and tracked? Explain in


11. detail. (13) BTL4 Analyzing

i)How Query Strings are used in c#, illustrate with an


12. BTL4 Analyzing
example? (7)
ii) List advantages and limitations of Query Strings ? (6)
i)Explain what happens when transaction is performed
13. without following the procedure. (7)
BTL5 Evaluating
ii) Explain about exception handling in ASP.NET. (6)

Configure forms authentication by starting the ASP.NET


14. configuration tool from within Visual studio and create simple BTL6 Creating
web service application.(13)

PART – C
What are transactions? What are the ACID properties?
1. Explain in detail for fund transferring with code. (15) BTL5 Evaluating

Explain the following concepts:


i)Passing and returning data sets from web services.(8) BTL5 Evaluating
2. ii) Handling exceptions and Returning Exceptions from
SQL server.(7)
Develop an ASP.Net Web application for Bus Ticket
Reservation System-Ticket Availability, Ticket Booking and BTL6 Creating
3.
Ticket cancellation. (15)

Develop an ASP.Net Web application for Online Hotel


4. Reservation System Availability, Booking and Cancellation. BTL6 Creating
(15)

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 Meta Data? BTL1 Remembering
2. What are the uses of assemblies? BTL1 Remembering
3. Define CLR and list down its responsibilities. BTL1 Remembering
4. Define marshalling. BTL1 Remembering
5. What are claims? Why it is used. BTL1 Remembering
6. What are private and shared assemblies? BTL1 Remembering
7. Differentiate .EXE files from .DLL files BTL2 Understanding

8. Discuss about the PF files. BTL2 Understanding


State the two distinct ways of expressing version information
9. of assemblies and compare each with the other. BTL2 Understanding

Describe metadata and specify the method through which


10. BTL2 Understanding
Meta data are inspected.
What is the relationship between marshalling and
11. unmarshalling. BTL3 Applying

Show the several aspects of providing security to .Net


12. Applications. BTL3 Applying

13. List and compare the two predefined .Net remoting channels. BTL3 Applying

14. How can we produce an assembly? BTL4 Analysing


15. Point out the way to restrict the access to resources. BTL4 Analysing
16. Examine the purpose of reflection. BTL4 Analysing

17. Summarize the information stored in the configuration file for BTL5 Evaluating
remoting.
List the members of AttributeTargets and convince when they
18. need to be used. BTL5 Evaluating

Use the reflection method and inspect an application at


19. runtime. List all the elements inspected. BTL6 Creating

Create a secured application. List the key elements you have


20. considered. BTL6 Creating

PART – B

i)What is reflection? Explain how to invoke methods using


1. reflection with an example (7) BTL1 Remembering
ii) Write about the typical uses of reflection (6)

i) Brief note on Viewing meta data. (7)


ii) What do you mean by type revealing process, explain how
2. BTL1 Remembering
it is achieved through reflection (6)

Describe the .Net framework architecture with neat


3. diagram.(13) BTL1 Remembering

i)Write short notes on versioning (7)


4. BTL1 Remembering
ii)Describe in detail about type discovery.(6)
Describe some of the security concerns when
5. calling unmanaged code. (13) BTL2 Understanding
Discuss with neat sketch the .NET remoting architecture in
6. detail .(13) BTL2 Understanding

Discuss the authentication and authorization security feature


BTL2 Understanding
7. in .NET.(13)
Illustrate the concepts of attributes and show its build in types.
8. BTL3 Applying
(13)
i)Illustrate with an example the Process assemblies and library
assemblies .(7)
BTL3 Applying
ii) Demonstrate how the version numbers are given for
9. assemblies with example. (6)
Explain the encryption technologies applied in .NET with
10. example. (13) BTL4 Analyzing
What are assemblies? Explain the creation and sharing of
11. assemblies in detail. (13) BTL4 Analyzing

Explain how security is implemented in .NET


12. environment.(13) BTL4 Analyzing

i)Explain in detail about marshaling, Remoting and Security


in .NET. (13) BTL5 Evaluating
13.
i)Write a web service using SOAP to convert Celsius To
Fahrenheit .(7)
14. ii)Develop an application which requires simple and BTL6 Creating
compound marshalling , Explain how these are performed .(6)

PART – C
1. Explain in detail about Assemblies and Reflection. (15) BTL5 Evaluating
What is remoting? Explain the steps involved in the process of
2. creating remote application. What if the remoting is not BTL5 Evaluating
used? (15)
Create a remoting application which returns the temperature
3. details of a given city in a particular day.(15) BTL6 Creating

How will you implementing security in a site? Show the BTL4 Analyzing
4.
different steps. (15)

You might also like