0% found this document useful (1 vote)
163 views6 pages

Introducing Microsoft Visual C#: Question Bank Dot Net Frame Work For Application DEVELOPMENT (10CS564) Course Outcomes

This document contains questions related to .NET framework and C# programming concepts. It is divided into multiple modules covering topics like object oriented programming, C# object model, defining extensible types, collections and generics. Some key questions ask about namespaces, method overloading, exception handling, inheritance, interfaces, abstract classes, properties, indexers and generic programming. Code examples are provided for common programming tasks like checking even-odd numbers, exception handling and implementing collection classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
163 views6 pages

Introducing Microsoft Visual C#: Question Bank Dot Net Frame Work For Application DEVELOPMENT (10CS564) Course Outcomes

This document contains questions related to .NET framework and C# programming concepts. It is divided into multiple modules covering topics like object oriented programming, C# object model, defining extensible types, collections and generics. Some key questions ask about namespaces, method overloading, exception handling, inheritance, interfaces, abstract classes, properties, indexers and generic programming. Code examples are provided for common programming tasks like checking even-odd numbers, exception handling and implementing collection classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

QUESTION BANK

DOT NET FRAME WORK FOR APPLICATION


DEVELOPMENT[10CS564]

COURSE OUTCOMES
CO1 : Build applications on Visual Studio .NET platform by understanding the syntax and
semantics of C#
CO2 : Demonstrate Object Oriented Programming concepts in C# programming language
CO3 : Design custom interfaces for applications and leverage the available built-in
interfaces in
building complex applications.
CO4 : Illustrate the use of generics and collections in C#
CO5 : Compose queries to query in-memory data and define own operator behavior

MODULE 1
INTRODUCING MICROSOFT VISUAL C#
Sl.
Question CO
No
What is Namespace? How namespace is used to solve name-clashing
1 1
problem, Explain with Example
Describe Method overloading? Explain useful of method overloading with 1
2
Example
3 What is short circuiting using Boolean operators. Explain with Example 1
Explain how to use Boolean expressions with the if and switch statements to 1
4
make decisions in your programs with example
Explain how to use while, for, and do statements to execute code repeatedly 1
5
while some Boolean condition is true with example
Explain the two things you need write exception-aware programs. Explain 1
6 with example how to catch and handle exceptions by using the try and catch
Constructs
a) How to throw an exception if your code detects an exceptional situation. 1
b) How to use a finally block to ensure that critical code always runs, even
7
if an exception occurs

Explain the usage of optional parameters and named arguments with 1


8
Examples
9 Write a code for the following programs. 1
 write a  C# Program to Check whether the Entered Number is Even or
Odd

Shilpa V, Asst.Prof,CBIT,Kolar Page 1


 write a   C# Program to Print a BinaryTriangle.
 write a   C# Program to Get a Number and Display the Number with its
Reverse
 write a   C# Program to Get a Number and Display the Sum of the Digits
 write a   C# Program to Count the Number of 1's in the Entered Number
 write a   C# Program to Check Whether the Entered Year is a Leap Year
or Not
 write a   C# Program to Demonstrate IndexOutOfRange Exception
 write a   C# Program to Demonstrate DivideByZero Exception

Shilpa V, Asst.Prof,CBIT,Kolar Page 2


MODULE 2
UNDERSTANDING THE C# OBJECT MODEL
Sl.
Question CO
No

1 Explain how classes are created and used in C# 2


2 Explain the creation of objects in C# 2
3 What is a constructor? Explain 2
How to use the new keyword to create a new instance of a class and
4 2
how to define constructors that can initialize class instances.
Explain how we create a with example
5 1) Sharing field 2) static field by using the const keyword 3)Static Class 2
4) Anonymous classes
Explain the differences between a value type and a reference type With
6 2
Example
7 Explain how to declare, create and use a structure type with examples 2
Explain the differences in behavior between a structure and a class With
8 2
Examples.
9 What is boxing and unboxing? Explain with examples. 2
Explain how arguments are passed as method parameters by using the ref
10 2
and out keywords
11 Explain how to Declare, Create and use an enumeration type with Examples. 2
Explain how arrays are declared and used in C#. Illustrate the same with
12 2
Program
13 Explain the concept of jagged arrays with a sample example program 2

14 Explain how multidimensional arrays are created in C# 2

15 How do you create implicitly typed array 2


16 Briefly explain nullable types? 2

17 Explain is and as operators 2

18 Briefly explain the copy operation with respect to arrays 2

Shilpa V, Asst.Prof,CBIT,Kolar Page 3


MODULE 3
UNDERSTANDING THE C# OBJECT MODEL(CONTD)
Sl.
Question CO
No

1 Explain the usage of params keyword 3

Write a C# program to find minimum value in a set of values that can accept
2 3
any number of arguments by using the params keyword
Write a C# program that can accept any number of arguments of any type by
3 3
using the params keyword in combination with the object type.
4 Write a C# program that compares parameter arrays and optional parameters 3
Explain how to control method hiding and overriding by using the new,
5 3
virtual, and override keywords with example
How to limit accessibility within an inheritance hierarchy by using the
6 3
protected keyword, explain with example
Explain how extension methods used as an alternative mechanism to using
7 3
inheritance with examples
Define an interface specifying the signatures and return types of methods
8 3
with examples
9 What is abstract class? Write a C# program to implement abstract classes. 3
10 What is Sealed Classes? Write a C# program to implement sealed classes. 3
Why use the garbage collector? Explain with example and Explain How does
11 3
the garbage collector work with recommendations?
How the .NET Framework uses it to dispose of objects and reclaim memory.
12 3
Explain with examples
Implement the IDisposable interface in C# to support exception-safe disposal
13 3
in a class
14 What is inheritance? Explain how it is achieved in C# 3
15 Explain the usage of base keyword 3

MODULE 4
Shilpa V, Asst.Prof,CBIT,Kolar Page 4
DEFINING EXTENSIBLE TYPES WITH C#
Sl.
Question CO
No
List the various collection classes used in C#. Explain any three with
1 4
appropriate programs.
What are lambda expressions? Briefly explain the various forms of lambda
2 4
expressions?

3 What is an indexer? Lists and explain set of operators provided by c# that 4


you can use to access and manipulate the individual bits in an int.
4 Explain find method. 4
5 Compare between arrays and collections. 4
What is encapsulation? Explain the two ways of enforcing encapsulation?
6 4
Give example for both the methods.
7 Define Property in C#.net? 4
8 Write a program that illustrates how to create custom indexers to class types 4
Explain the following with relevant program: (i) Generic class (ii) Generic
9 4
method
10 Explain the problem with object type. 4

11 What are collection classes? List the various collection classes used in C# 4
Briefly explain (i) Stack (ii)Queue (iii) HashSet (iv) SortedList (v)
12 4
Dictionary

MODULE 5

Shilpa V, Asst.Prof,CBIT,Kolar Page 5


DEFINING EXTENSIBLE TYPES WITH C#[CONTD]
Sl.
Question CO
No
How to implement an enumerator without using iterator and by using an
1 5
iterator. Explain with program

2 What is a delegate? Briefly explain with a a program 5

3 What is an event? How to subscribe, unsubscribe and raise an event in C#? 5

Write a C# program that illustrates selecting, grouping, ordering and filtering


4 5
data using LINQ.
What is LINQ? Briefly explain with syntax of selecting data, filtering data ,
5 5
grouping data, ordering data and aggregating data
6 Briefly explain joining data in LINQ? 5
7 Briefly explain using query operators in LINQ 5
8 Briefly explain deferred evaluation in LINQ 5
9 Explain how operator overloading is achieved in C#. 5
Write a C# program to perform the following on Complex numbers using
10 operator overloading (i) C1+C2, C1-C2,C1!=C2 (ii) User defined conversion 5
operators
Explain overloading of equality operators, compound assignment operators
11 5
and increment/decrement operators.
What are delegates? Explain the members of System.Multicast delegates.
12 5
Give a small program to implement multicasting.
13 Write a program in C# to simulate simple calculator using delegates. 5
What do you understand by asynchronous delegates. Write a C# program to
14 5
illustrate the same

15 Explain how to overload ‘+’ operator to add 2 instances of a class 5

Shilpa V, Asst.Prof,CBIT,Kolar Page 6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy