Sunteți pe pagina 1din 6

C# Programming and .

NET

10IS761

Question Bank
C# Programming and .Net
UNIT 1 The Philosophy of .NET
1. Briefly explain the history of .NET. Explain the building components of .NET and their
responsibilities. 10M (Jan 16/Jan 15)
2. List and explain intrinsic CTS data types and .Net name spaces in C#.?8M (July 15)
3. What is an assembly? Explain each component of an assembly. Differentiate between
single file assembly and Multifile assembly. 8M (Jan 15/Jan 16)
4. Explain with neat diagram, the relationship between .Net runtime layer and base class
library. 8M (July16)
5. Discuss the issues that lead to the genesis of .NET platform? With an example of
calculator explain the role of CIL?10M (July 14/July 15/Jan 15)
6. What defines set rules in .net in order to interact one language with another? Explain with
example. 10M (July 14)
7. Explain the following Terms
(i) CLS (ii) CIL (iii) ASSEMBLY (iv) MANIFEST 10 M(July 16)
Unit-2 Building C# Applications
1. How to build c# application using csc.exe? Write source code to compute the sum,
subtraction and multiplication of two members passed as command line arguments?
10M (July 14)
2. Explain how CSC.exe computer is used to build c# application. Explain any five flags
with appropriate examples. 8 M (Jan16)
3. Explain with a neat diagram, the workflow that takes place between your source code, a
given .Net compiler and the .Net execution engine. 10M (July 14)
4. Explain C# pre-processor directives with examples? 9M (Jan 15/July 15/Jan 16)
5. Write a c# program to display information using system Environment class. 6M
(Jan 15)
6.Write a C# program to accept an integer as command line parameter from user and check
whether it is prime or not. 5M (Jan 15)
7. Give output centric options of C# Compiler.5M (JUL 2015/JUL 16)
Dept. of ISE, SJBIT

Page 1

C# Programming and .NET

10IS761

8. What is the rule of response files in c# program development using command line
compiler (CSC.exe)? 5M (July 15)
9. What is command line debugger? List and explain five command line flags recognized
by command line debugger? 8M (Jan 16)
10. Write a note on .NET namespaces in C#? 5M (July 16)
11. Explain how to build visual studio .NET test application that reference external assembly?
8M (July 16)
UNIT 3 C# Language Fundamentals
1. Write a C# program to compute row sum and column sum of the rectangular array? 10 M
(July 14/Jan 15)
2. Explain the core members of System.string with explain? 10M (Jul 14)
3. Explain the method parameter modifiers. Demonstrate with a function definition and
function call for each modifier. 10M

(July 15)

4. Explain the function of system, object class. Give override definition for ToString() and
Equals(). 8M

(Jan 15)

5. Explain C# member variable initialization syntax? 4M (July 15)


6. With an illustrate example explain what happened when reference type is past by value
and when reference type is passed reference.8M

(Jan 16)

7. Distinguish between value types and reference types, with examples. 6M (July 15)
8. What is boxing and unboxing? Explain with examples. 8M (Jan 16/Jan 15)
9. Explain with an example static keyword when used with
(i) Variable (ii) Method (iii) Constructor

6M (Jan 16)

10. Explain any Five members of System.Object. 5M (July 16)


11. What is role of sytem.text.string builder and how its different from system.string? 5M
(July 16)
12. Write a c# program to find roots of quadratic equation ax2+bx+c=0,read
coefficients a,b,c? 10M (July 16)

Dept. of ISE, SJBIT

Page 2

C# Programming and .NET

10IS761

Unit -4 Object- Oriented Programming with C#:


1. Explain how encapsulation is enforce in c#. 8M (Jan 15).
2. What are the three pillars of object oriented programming in c# ? Difference
between is-a and has-a relationship 10M (July 15/Jan 16).
3. How would you enforce encapsulation using accessors and mutators?explain
with examples, class properties and static properties in C#. 8M (Jan15/July 16/Jan 16)
4. Illustrate with an example, polymorphic supports in C#. 4M (July15)
5. With a C# program to compute the area of triangle and rectangle for hierarchy to illustrate
polymorphism?10M (July 14/July 16)
6. Define encapsulation. Explain Containment /delegation model with example? 10M (July 14)
7. Write a short note on enumeration and explain usage with example? 6M (Jan 15)
8. Explain two different roles of this keyword with an example? 6M (Jan 16)
UNIT-5 Exceptions and Object Lifetime:
1. Explain the process of finalize object in .net environment. Give members of System. GC
and explain their usage with example. 10 M (July 14)
2. Write a program in c# to implement the queue operations INSERT and DELETE with
appropriate generic exception for overflow and underflow of queue. Display the

elements

12M (JUL 14)


3. Explain how to build finalizable and disposable objects with examples. 5M (Jan 15)
4. What is SHE? List advantages of SHE, atoms in SHE. Differentiate between application exception
and system exception. Create a user defined exception to handle division by zero exception? 11 M
(Jan 15)
5. What are Bugs,Error AND Exception?List and explain with code the core members of
System. Exception Type? 12M (Jan 16)
6. What is meant by object lifetime? Explain garbage collection optimization process in c#?
08M (Jan 16)
7. What is meant by object lifetime? Explain sequence of events involved in finalization process
in c#?10M (July 16)

Dept. of ISE, SJBIT

Page 3

C# Programming and .NET

10IS761

8. Write a c# program that will read the name from the keyboard and display it on the screen. The
program should throw an exception when the length of name is more than 15 characters. 10M(July
16)
9. List and explain core members of the system exception type. below would you build
custom exception?10M (July15/Jan 16)
10. What is meant by object life time? Describe the role of .Net garbage collection,
finalization process and Ad Hoc destruction method, with examples. 10M (July15/July 16)

UNIT-6 Interfaces and Collections:


1. Explain how do you build clonable objects in c# with example? 10M(JULY 14)
2. What is an interface? Explain the three methods to obtain interface references with
example? 10M (July 14/July 15/Jan 16)
3. List the class types of system.collection namespace and list the associated built-in
functions for 2 class types of system.collection.8M(Jan 15/Jan 16)
4. How to build clonable, comparable objects. Explain with examples.12M(JAN 15)
5. With an example, explain any 4 interfaces of system. Collections.10M (July 15/Jan 16)
6. Declare a class Box that has 2 data members leangth(inches) and width(inches).The class
implements 2 interfaces IEnglish Dimension that returns leanghth ,width in metric
dimension (m=inch*2.54). Write a class and to instantiate an object of that type use all the
functions?10M(July 16)
7.

Explain

the

following

interfaces

Icomparable,Iconvertable,Iclonable,Interface

Hierarchies? 10M(July 16)


UNIT-7 Callback Interfaces, Delegates, and Events, Advanced Techniques:

1.

What

10M

are

delegates?

Explain

the

members

of

system.

Multicast

Delegates.

(July 16).

2. Write a program in c# to implement operator over loading of + and for adding subtracting
two square matrices.

10M (Jan 15)

3. Explain the two conceptual views of .Net assembly with a neat diagram. What are the core
benefits of this?
Dept. of ISE, SJBIT

10M (Jan15)
Page 4

C# Programming and .NET

10IS761

4.With an example,Discuss advanced keywords of C #:checked, unchecked, un safe,


stackalloc, volatile and size of.

12M (Jan15/July 15)

5. Write a complete c# program to compute and display sum, difference and multiplication of two
numbers by writing appropriate methods which could be called through multicast delegate method of
programming? 10M (JULY 14)
6. What are asynchronous delegates? write the source code in c# to illustrate it?10M (July 14/July
15)
7. What is delegate? Differentiate between synchronous and asynchronous delegates with
example?10M (Jan 16)
8. Illustrate the use of Callback Interfaces in a c# program.10M (Jan 16)
9. Write a c# program to following on complex numbers C1 and C2 using operator overloading
C1+C2,C1-C2,C1!=C2?10M(July 16)
UNIT 8 Understanding .NET Assembles:
1. Write short notes on the following:
i) Classic COM binaries versus .Net assemblies

ii) Cross language inheritance.

10M (JUL 15/jan 16)


2. What is .NET assembly? How to build shared assembly? Explain with a program?10M(July
16)
3. What is multifile assembly?explain how to build and consuming a multifile assembly?10M
(July 16/Jan 15)
4. List the key elements and core CIL tokens of the assembly manifest. 7M (Jan15)
5. Write the structure of .NET assembly? 4M (Jan 15)
6. Write short notes on process of building a multi-file assembly. 6M (Jan 15)
7. Explain the Two views of an assembly? 10M (Jan 15/Jan 16)
8. Design a c# application for linked list with following operation
(i) Add car
(ii) Remove car
(iii) count the number of cars
(iv) cars present

10M(July 14)

9. Write short Notes on the following


Dept. of ISE, SJBIT

Page 5

C# Programming and .NET

(i) Cross language inheritance

Dept. of ISE, SJBIT

10IS761

(ii) operator overloading

Page 6

10M(July 14)

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