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
(Prefer mailing. Call in emergency )
ASSIGNMENT
PROGRAM BSc
SEMESTER V
SUBJECT CODE & NAME C# Programming
CREDIT 4
BK ID BT8903
MAX.MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately
of 400 words. Each questionis followedbyevaluationscheme.
Q.1 Describe the components of .Net framework with the help of a diagram. Also explain the Common
Language Runtime (CLR) in .Net.
Answer:- The Common Language Runtime (CLR) is an Execution Environment . It works as a layer
between Operating Systems and the applications written in .Net languages that conforms to the
Common Language Specification (CLS). The main function of Common Language Runtime (CLR) is to
convertthe Managed Code intonative code and
Q.2 Describe the C# program structure withthe helpof a diagram.
Answer: - C# programscan consistof one or more
2. Q.3 Write the followingprograms in C#:
1. Write a program in C# to reverse a stringusing for loop.
2. Write a program in C# that concatenateslist ofstrings.
Answer:-
Q.4 Explainthe followinginC#:
1. Pass by value
2. Pass by reference
3. Output parameters
4. Variable argument list
Answer:- Pass By Value:-
Q.5 Give the similaritiesanddifferencesbetweenstructure andclasses.
Answer:-
The difference between a class and a structure is that, by default, all of the members of a class
are private and,bydefault,all of the membersof astructure are public.
Structure are value type where asclassare reference type.
Structure are default public where as class are default private.'this' pointer will work only in
class.
Structure:Initially(inC) astructure was
6 Explain the concept of inheritance with the help of an example. Also explain containment
inheritance.
Answer: - In object-oriented programming (OOP), inheritance is when an object or class is based on
another object or class, using the same implementation (inheriting from a class) or specifying
3. implementation to mantain the same behavior (realizing an interface; inheriting behavior). It is a
mechanismforcode reuse andto allowindependent
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 )