c# question paper vtu mca

Download PDF FILE 

Question Paper

  Chapter 1 – Getting started with .NET Framework 4.0 Marks
1.                    What is .NET Framework? Explain the benefits of .Net framework. 05
2.                    Discuss the architecture of .Net Framework 4.0 with a neat diagram. 05
3.                    Briefly discuss the role of Common Language Runtime (CLR) in .NET Framework with a neat diagram. 10
4.                    Differences between managed code and unmanaged code. 04
5.                    Explain the role of Common Type System. 05
6.                    What is Common Language System? Explain 03
7.                    Differentiate between single file and multi file assembly. 05
8.                    What is Assembly? List out the information stored in assembly manifest. 05
9.                    Explain the role of Metadata and Assemblies. 08
10.                Write a Short notes on:

i.            Unmanaged code

ii.            JIT Compiler

iii.            Private and Shared assemblies

iv.            Strong Names assembly

v.            Global Assembly Cache

vi.            Static and Dynamic assemblies

Each carries


11.                What are the new features introduced in .NET Framework 4.0? 03
12.                Explain the Dynamic Language Runtime. 05
  Chapter 2 – Introducing C#  
1.        Explain the feature of C#. 05
2.        What do you mean by C# preprocessor directives? Explain with suitable examples. 08
3.        List the C# preprocessor directives, with description of each. 05
4.        Give an anatomy of C# console application program and discuss the variations of the main method. 06
5.        Explain value types and reference types. List the differences. 06
6.        Bring out the differences between value types and reference types. 08
7.        Explain .Net Array types. Give an example for the members of System.Array class. 08
8.        Describe .Net struct types with an example 05
9.        What are enumerations? What is the default data type of the members? How would you change the default type? Give an example. 06
10.    What are Jagged Arrays? Write a program to find the sum of all elements in a jagged array of 3 inner arrays. 08
11.    Bring out the differences between dynamic types and object types. 04
12.    Write a C# program to the row sum and column sun of given matrix 08
13.    Write a program to find the sum of even elements in even rows in a given jagged array. 06
14.    Write a C# program on boxing, unboxing and bad unboxing. 06
15.    Write a Short notes on:

i.            Verbatim string literal

ii.            Null Coalescing(??)operator

iii.            is and as operator

iv.            Boxing and unboxing

v.            foreach

vi.            Nullable types

vii.            Scope Resolution operator

  Chapter 3- Namespaces, Classes, Objects, and Structs  
1.        What are namespaces? List and explain the purpose of any three namespaces 05
2.        What do you mean by ‘this’ keyword? Explain with suitable examples. 05
3.        Describe how to create an array of objects to the class with suitable example. 05
4.        Explain how to defining partial class and partial method with an example. 10
5.        Explain various method parameters used in C#. 12
6.        Give the differences between ‘ref’ parameters and ‘out’ parameters. Describe each of these with examples. 06
  2nd Internal Questions  
7.        List the various access modifiers available in C#, with description of each. 05
8.        Explain the concept of static methods and static data with suitable examples. 10
9.        How to define constant data and read only fields? 05
10.    What is properties? Explain different ways of manipulate the private data with an example. 10
11.    Differentiate a property and static property 8
12.    What is an indexer? Give an example. Differentiate indexer and property. 10
13.    Write a Short notes:

i.            Static Class

ii.            Anonymous Types

iii.            ‘var’ keyword

iv.            Static property

v.            Read-only property

  Chapter 4 – Object Oriented Programming  
1. What are the three pillars of object oriented programming in C#? What are the two ways of enforcing encapsulation? Give examples for both the methods. 10
2. How do you enforce encapsulation using accessors and mutators, class properties and static properties? 08
3. How do you prevent inheritance using sealed classes? Explain with an example. 5
4. Bring out the differences between interfaces and abstract base classes. 5
5. What are abstract classes? Explain with an example. 5
6. What are the different methods of accessing private data fields by other classes in C#? Explain with examples. 8
7. What is the alternate approach to support multiple inheritance in C# .NET? List its major features with code example. 10
8. How to define constant data and read only fields? 5
9. How do you prevent inheritance? Explain with an example. 8
10. Explain with and example:

i.            public class

ii.            sealed class

iii.            abstract class

11. Explain the overloading of equality and comparison operators in C# 6
12. Write a program to overload + and – operators for adding and subtracting two square matrices. 10
13. Write a C# program, which defines class Flight. The class Flight implements two interfaces namely Ibirds and Iplane and the interface member of Ibirds and Iplane is fiy(), which displays some message. Write the usage class which exercises the above. 8
14. Write a short notes:

i.            Static data

ii.            Operator overloading

  Chapter 5 –Delegates and Events and Exception Handling  
1.        What is meant by the .Net delegate type? Explain the concept with example code. 10
2.        Describe four steps to create and use a delegate in your program with an example. 10
3.        Explain single cast and multicast delegates in C# with examples. 10
4.        Explain Covariance and Contrvariance with an example. 10
5.        Define Anonymous method with delegate and give an example. 8
6.        What is event? Explain with an example.  
7.        Explain .NET Exception handling with valid example code.  
8.        Explain the use of ‘checked’ and ‘unchecked’ C# keyword, with relevant examples. 4
9.        Write a short notes on:

i.            Delegates and events

ii.            finally and throw

  Chapter 6 –Graphical User Interface with Windows Forms  
1.        What is GUI? List and Explain the basic GUI Controls. 10
2.        Mention windows form properties, events and method with description. 10
3.        Explain the event handling in GUI with an example. 06
4.        List the Control Layout properties and methods, with description of each. 08
5.        Explain differences among anchoring and docking. 06
6.        Write a program to display hidden text in a password box. 06
7.        What are the differences between the GroupBox and Panel. Explain with an example. 10
8.        Design a window application, to demonstrate the usage of  GroupBox and RadioButton. 06
9.        What are the use of tooltip? List out the properties and events. 05
10.    What are the properties of mouse events and event arguments? 06
11.    What are the properties of Keyboard events and event arguments. 06
12.    Define: menus, menu item, submenus 03
13.    What is monthcalendar control and DateTimePicker control used for? List out its properties. 10
14.    What are the difference between label and linklabel control. Give an example. 06
15.    Write a short notes on:

i.            Anchoring and Docking

ii.            Windows Forms

iii.            NumericUpDown Control






Leave a Reply