MIT4021– C# and .Net

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601



[ WINTER, 2015 ] ASSIGNMENT

PROGRAM
Master of Science in Information Technology(MSc IT)Revised Fall 2011
SEMESTER
4
SUBJECT CODE & NAME
MIT4021– C# and .Net
CREDITS
4
BK ID
B1187
MARKS
60


Note: Answer all the questions.

Question.1. Explain .NET framework class library.

Answer:

The .Net Framework class library (FCL) provides the core functionality of .Net Framework architecture . The .Net Framework Class Library (FCL) includes a huge collection of reusable classes , interfaces, and value types that expedite and optimize the development process and provide access to system functionality.

The .Net Framework class library (FCL) organized in a hierarchical tree structure and it is divided into Namespaces. Namespaces is a logical grouping of types for the




Question.2. Explain the steps to execute C# programs using visual studio IDE.

Answer:There are different ways for this:

1.Building C# Applications Using csc.exe

While it is true that you might never decide to build a large-scale application using nothing but the C# command-line compiler, it is important to understand the basics of how to compile your code files by hand.

2.Building .NET Applications Using Notepad++




Question.3. Explain the following in context of methods in C# with the help of examples:

Answer:For writing a nested function in C#, we would make use of delegates and anonymous functions. A delegate is nothing but a "function pointer". And an anonymous function is a function/method without a name. Below, we are declaring a delegate which will point to an anonymous function.

// Declare a delegate which will point to different anonymous methods.
public delegate long FactorialDelegate(long n);       



Question.4. What do you mean by members in C#? Explain constant members and read only members also explain properties in C#.

Answer: Classes and structs have members that represent their data and behavior. A class's members include all the members declared in the class, along with all members (except constructors and destructors) declared in all classes in its inheritance hierarchy. Private members in base classes are inherited but are not accessible from derived classes.

The following table lists the kinds of members a class or struct may contain:


Question.5. How to handle exception in C#. Explain the syntax with an example.

Answer:Exceptions are unforeseen errors that happen in your programs. Most of the time, you can, and should, detect and handle program errors in your code. For example, validating user input, checking for null objects, and verifying the values returned from methods are what you expect, are all examples of good standard error handling that you should be doing all the time.

However, there are times when you don't know if an error will occur. For example, you can't predict when you'll receive a file I/O error, run out of system




Question.6. Explain console input and output

Answer:Dennis Ritchie develop the C language without compromising to its compact feature. To attain compactness he deliberately not provided everything related to input output in the definition of the language. So C language doesn’t contain any code to receive data from keyboard and send it on the screen. Then how are we using scanf() and printf()
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601


No comments:

Post a Comment

Note: only a member of this blog may post a comment.