C# Interview Questions with Answers Pdf - 5
Question: 21
What is the difference between struct and class in C#?
Structs cannot be inherited.
Structs are passed by value, not by reference.
Struct is stored on the stack, not the heap.
Question: 22
Can you create enumerated data types in C#?
Yes
Question: 23
Is gotostatement supported in C#?
Gotos are supported in C# to the fullest. In Java goto is a reserved keyword that provides absolutely no functionality.
Question: 24
What is the difference between the value-type variables and reference- type variables in terms of garbage collection?
The value-type variables are not garbage-collected, they just fall off the stack when they fall out of scope, the reference-type objects are picked up by GC when their references go null.
Related Questions
- C# Interview Questions and Answers for Freshers
- C# Interview Questions for Experienced Professionals
- C# Interview Questions and Answers for Experienced
- C# Interview Questions with Answers Pdf
- C Sharp Interview Questions and Answers
- C Sharp Interview Questions and Answers for Freshers Pdf
- Top 200+ Advanced C# Interview Questions 2019-2020
- C# Programming Online Test Questions and Answers
- C# Algorithm Interview Questions and Answers
Recent Articles
GATE Analog Electronics MCQ Questions and Answers More
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
Dairy Technology MCQ Questions and Answers More
Agricultural Engineering MCQ Questions & Answers Pdf More
May-03-2024
| Meritnotes
Analog Electronics Questions Pdf Download with Answers More
May-02-2024
| Meritnotes
Engineering Materials Science MCQ Questions & Answers More
May-01-2024
| Meritnotes
Material Science MCQ Questions Pdf Download More
April-30-2024
| Meritnotes
Dairy Technology MCQ Questions and Answers More
April-29-2024
| Meritnotes
Agricultural Engineering MCQ Questions & Answers Pdf More
April-28-2024
| Meritnotes
Trending Posts
MS Excel Questions & Answers for Bank Exams 2020-2021 More
1000+ TNPSC Maths Aptitude Previous Year Questions More
Top 50+ Advanced Java Interview Questions 2020-2021 More
1000+ U.S.Bancorp Aptitude Questions and Answers Pdf More
Cell Cycle NEET Questions More
TRB Chemistry Question Bank More
November-27-2019
| Meritnotes
1000+ TNPSC Maths Aptitude Previous Year Questions More
January-28-2023
| Meritnotes
Top 50+ Advanced Java Interview Questions 2020-2021 More
February-19-2020
| Meritnotes
1000+ U.S.Bancorp Aptitude Questions and Answers Pdf More
February-10-2023
| Meritnotes
Cell Cycle NEET Questions More
March-13-2024
| Meritnotes
TRB Chemistry Question Bank More
August-28-2019
| Meritnotes