Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
1. Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601
ASSIGNMENT
PROGRAM Master of Science inInformation Technology(MScIT)RevisedFall 2011
SEMESTER 4
SUBJECT CODE & NAME MIT4021– C# and .Net
CREDIT 4
BK ID B1287
MAX.MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately
of 400 words. Each questionis followedbyevaluationscheme.
1 What isCommon Language Runtime (CLR)? List the servicesthat CLR provide.
Answer: The Common Language Runtime (CLR) is programming that manages the execution of programs
written in any of several supported languages, allowing them to share common object-oriented class es
written in any of the languages. The Common Language Runtime is somewhat comparable to the Java
Virtual Machine that Sun Microsystems furnishes for running programs compiled from the Java
language. Microsoft refers to its Common Language Runtime as a "managed execution environment." A
program compiled for the CLR does not need a language-specific execution environment and can easily
be movedto andrun on any systemwithWindows2000 or WindowsXP.
Programmers writing in any of Visual Basic, Visual C++, or C# compile their programs into an
intermediate formof code calledCommon
2 Explain(a) AssignmentOperators (b) Bitwise Operators.
Answer: The assignment operator, '=', is the operator used for assignment. Like most other operators in
C++, it can be overloaded.
= Operator
^= Operator
2. *= Operator
/= Operator
3 Explaindifferentdecisionmakingstatementsusedin C#.
Answer:
The if-statement:The if statementisusedtocheckthe conditionistrue or false.
For example:
if(score == 100)
{
// Anycode betweenthe curlybracesgetsexecutedbythe programonlywhen
// the conditioninthe parenthesesistrue.
Console.WriteLine("Perfectscore! Youwin
4 What isa structure in C#? Explainwith an example.
Answer: A structure is a value type. The type is defined with the struct keyword. Structures are very
similar to the classes; they differ in some aspects. Structures are meant to represent lightweight objects
like Point, Rectangle, Color and similar. In many cases, structures may be more efficient than classes.
Structures are value types and are created on the stack. Note that primitive data types like int, bool,
floatare technicallystructtypes.
All struct types inherit from System.ValueType and further from System.Object. Structures are never
abstract and theyare alwaysimplicitlysealed.Sostruct
5 What ishidinga method?Explain.
Answer: Method hiding in C# is similar to the function overriding feature in C++. Functions of the base
class are available to the derived class. If the derived classis not happy, one of the functions available to
it from the base class can define its own version of the same function with the same function signature,
just differing in implementation. This new definition hides the base class definition. Take the following
program forexample.
classBC
6 What isan event?Explainwith example.
Answer:Eventsare declaredusingdelegates.Eventsare the higherlevelof Encapsulationoverdelegate.
A delegate thatexists in support of an eventis called as an event handler. Event handlers are methods in
an objectthat are executedinresponse tosome eventsoccurringinthe application.
3. Syntax of an EventHandlerusingdelegate:
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601