SlideShare ist ein Scribd-Unternehmen logo
1 von 3
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
*= 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.
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

Weitere ähnliche Inhalte

Was ist angesagt?

Mit103 object oriented programming
Mit103  object oriented programmingMit103  object oriented programming
Mit103 object oriented programmingsmumbahelp
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm Kaya Ota
 
Basics of c# by sabir
Basics of c# by sabirBasics of c# by sabir
Basics of c# by sabirSabir Ali
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course IntroductionIntro C# Book
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in javasmumbahelp
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++ shammi mehra
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in javasmumbahelp
 
Jedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented conceptsJedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented conceptsMaryo Manjaruni
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Xtext: writing a grammar
Xtext: writing a grammarXtext: writing a grammar
Xtext: writing a grammarMikhail Barash
 
Bt0074 oop with java
Bt0074   oop with javaBt0074   oop with java
Bt0074 oop with javasmumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web designStudy Stuff
 
Framework Design Guidelines
Framework Design GuidelinesFramework Design Guidelines
Framework Design GuidelinesMohamed Meligy
 

Was ist angesagt? (20)

Mit103 object oriented programming
Mit103  object oriented programmingMit103  object oriented programming
Mit103 object oriented programming
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Oops in vb
Oops in vbOops in vb
Oops in vb
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm
 
Basics of c# by sabir
Basics of c# by sabirBasics of c# by sabir
Basics of c# by sabir
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course Introduction
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in java
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
 
Mca 4030 programming in java
Mca 4030   programming in javaMca 4030   programming in java
Mca 4030 programming in java
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
java token
java tokenjava token
java token
 
Overview of c#
Overview of c#Overview of c#
Overview of c#
 
Projectional editing
Projectional editingProjectional editing
Projectional editing
 
Jedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented conceptsJedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented concepts
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Xtext: writing a grammar
Xtext: writing a grammarXtext: writing a grammar
Xtext: writing a grammar
 
Bt0074 oop with java
Bt0074   oop with javaBt0074   oop with java
Bt0074 oop with java
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
 
Framework Design Guidelines
Framework Design GuidelinesFramework Design Guidelines
Framework Design Guidelines
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
 

Andere mochten auch

Mit4032 cloud computing
Mit4032   cloud computingMit4032   cloud computing
Mit4032 cloud computingsmumbahelp
 
801 iluminismo - 21.02.2013
801   iluminismo - 21.02.2013801   iluminismo - 21.02.2013
801 iluminismo - 21.02.2013Janaína Bindá
 
The Dangers of Cutting Weight & Dehydrating
The Dangers of Cutting Weight & DehydratingThe Dangers of Cutting Weight & Dehydrating
The Dangers of Cutting Weight & DehydratingChuck Horton
 
Grupo3 slideshared
Grupo3 slidesharedGrupo3 slideshared
Grupo3 slidesharedGrupo3UISRA
 
Ecuaciones lineales
Ecuaciones linealesEcuaciones lineales
Ecuaciones linealesKarla Tamayo
 
You Caught Me Monologuing: Effective Communications in Security
You Caught Me Monologuing: Effective Communications in SecurityYou Caught Me Monologuing: Effective Communications in Security
You Caught Me Monologuing: Effective Communications in SecurityPhilip Beyer
 
Advanced composition
Advanced composition Advanced composition
Advanced composition hannahressler
 
U3 a genealogy feb 2013
U3 a genealogy feb 2013U3 a genealogy feb 2013
U3 a genealogy feb 2013RodneyFox
 
Estado miranda
Estado mirandaEstado miranda
Estado mirandaYesica19
 
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan Laporta
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan LaportaPlan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan Laporta
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan LaportaAnna Ortega Martínez
 
Sowing Seeds for Healthy Kids - Garden-Based Nutrition Education
Sowing Seeds for Healthy Kids - Garden-Based Nutrition EducationSowing Seeds for Healthy Kids - Garden-Based Nutrition Education
Sowing Seeds for Healthy Kids - Garden-Based Nutrition EducationThe Campus Kitchens Project
 

Andere mochten auch (19)

Mit4032 cloud computing
Mit4032   cloud computingMit4032   cloud computing
Mit4032 cloud computing
 
801 iluminismo - 21.02.2013
801   iluminismo - 21.02.2013801   iluminismo - 21.02.2013
801 iluminismo - 21.02.2013
 
PC15PRINTER LR
PC15PRINTER LRPC15PRINTER LR
PC15PRINTER LR
 
Bakyaraj_Resume
Bakyaraj_ResumeBakyaraj_Resume
Bakyaraj_Resume
 
The Dangers of Cutting Weight & Dehydrating
The Dangers of Cutting Weight & DehydratingThe Dangers of Cutting Weight & Dehydrating
The Dangers of Cutting Weight & Dehydrating
 
15 isaías i
15 isaías i15 isaías i
15 isaías i
 
Grupo3 slideshared
Grupo3 slidesharedGrupo3 slideshared
Grupo3 slideshared
 
Ecuaciones lineales
Ecuaciones linealesEcuaciones lineales
Ecuaciones lineales
 
You Caught Me Monologuing: Effective Communications in Security
You Caught Me Monologuing: Effective Communications in SecurityYou Caught Me Monologuing: Effective Communications in Security
You Caught Me Monologuing: Effective Communications in Security
 
FacebookAPIWhitePaper
FacebookAPIWhitePaperFacebookAPIWhitePaper
FacebookAPIWhitePaper
 
Advanced composition
Advanced composition Advanced composition
Advanced composition
 
Pedagogías diferenciadas: inventario
Pedagogías diferenciadas: inventarioPedagogías diferenciadas: inventario
Pedagogías diferenciadas: inventario
 
U3 a genealogy feb 2013
U3 a genealogy feb 2013U3 a genealogy feb 2013
U3 a genealogy feb 2013
 
Estado miranda
Estado mirandaEstado miranda
Estado miranda
 
Estrategias 4p
Estrategias 4pEstrategias 4p
Estrategias 4p
 
Regimen de policia tema 2
Regimen de policia tema 2Regimen de policia tema 2
Regimen de policia tema 2
 
fecundacion
fecundacionfecundacion
fecundacion
 
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan Laporta
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan LaportaPlan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan Laporta
Plan de Medios. Elecciones presidenciales FC Barcelona - Candidato Joan Laporta
 
Sowing Seeds for Healthy Kids - Garden-Based Nutrition Education
Sowing Seeds for Healthy Kids - Garden-Based Nutrition EducationSowing Seeds for Healthy Kids - Garden-Based Nutrition Education
Sowing Seeds for Healthy Kids - Garden-Based Nutrition Education
 

Ähnlich wie Mit4021 c# and .net

Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programmingsmumbahelp
 
Mit4021–%20 c# and .net
Mit4021–%20 c# and .netMit4021–%20 c# and .net
Mit4021–%20 c# and .netsmumbahelp
 
C#_01_CLROverview.ppt
C#_01_CLROverview.pptC#_01_CLROverview.ppt
C#_01_CLROverview.pptMarcEdwards35
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligetiNaveen Kumar Veligeti
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)DrUjwala1
 
C# interview-questions
C# interview-questionsC# interview-questions
C# interview-questionsnicolbiden
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)Dilawar Khan
 
Differences between method overloading and method overriding
Differences between method overloading and method overridingDifferences between method overloading and method overriding
Differences between method overloading and method overridingPinky Anaya
 
Design patterns in_c_sharp
Design patterns in_c_sharpDesign patterns in_c_sharp
Design patterns in_c_sharpCao Tuan
 
Summer Training Project On C++
Summer Training Project On  C++Summer Training Project On  C++
Summer Training Project On C++KAUSHAL KUMAR JHA
 

Ähnlich wie Mit4021 c# and .net (20)

Bt8903, c# programming
Bt8903, c# programmingBt8903, c# programming
Bt8903, c# programming
 
Mit4021–%20 c# and .net
Mit4021–%20 c# and .netMit4021–%20 c# and .net
Mit4021–%20 c# and .net
 
C#_01_CLROverview.ppt
C#_01_CLROverview.pptC#_01_CLROverview.ppt
C#_01_CLROverview.ppt
 
Dot net
Dot netDot net
Dot net
 
Introduction to programming using c
Introduction to programming using cIntroduction to programming using c
Introduction to programming using c
 
csharp.docx
csharp.docxcsharp.docx
csharp.docx
 
Inheritance
InheritanceInheritance
Inheritance
 
Oops ppt
Oops pptOops ppt
Oops ppt
 
Asp.net main
Asp.net mainAsp.net main
Asp.net main
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
 
C# note
C# noteC# note
C# note
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
C# interview-questions
C# interview-questionsC# interview-questions
C# interview-questions
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)
 
C# Unit 1 notes
C# Unit 1 notesC# Unit 1 notes
C# Unit 1 notes
 
Differences between method overloading and method overriding
Differences between method overloading and method overridingDifferences between method overloading and method overriding
Differences between method overloading and method overriding
 
Design patterns in_c_sharp
Design patterns in_c_sharpDesign patterns in_c_sharp
Design patterns in_c_sharp
 
Summer Training Project On C++
Summer Training Project On  C++Summer Training Project On  C++
Summer Training Project On C++
 
General oop concept
General oop conceptGeneral oop concept
General oop concept
 
C++ programing lanuage
C++ programing lanuageC++ programing lanuage
C++ programing lanuage
 

Mit4021 c# and .net

  • 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