BCA Semester 5 – DotNet Technology – Unit 2: The C# Language Basics (12Hrs)
Comprehensive questions and detailed answers for Unit 2: The C# Language Basics (12Hrs) . Perfect for exam preparation and concept clarity.
What do you mean by value type and reference type? Give an example for each.
List any five canonical keywords in "C#". Write a C# program to initialize and display array element with sum of each power.
What is string interpolation? How passing argument by value is differing from passing argument by reference? Explain with program.
What is optional parameter? Write a C# program which stores values in two enumerations, Department and College. It uses two functions to display the data contained in Department and College enumerations.
What is difference between value type and reference type in C#? Explain the concept of boxing and unboxing with suitable program.