C# Interview Questions and Answers for Freshers - 1
Question: 1
What are the access-specifiers available in C#?
Private,
Protected,
Public,
Internal,
Protected Internal.
Question: 2
What is C#?
C# is a programming language designed by Microsoft. It is loosely based on C/C++, and bears a striking similarity to Java in many ways. Microsoft describes C# as follows.
C# is a simple, modern, object oriented and type safe programming language derived from C and C++. C#(pronounced C sharp) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.
Question: 3
Differentiate between value types with reference types?
Value Type
These data types store their data directly as values in memory.
Includes
Numeric Types (int 32, short, single).
Structures (Custom data types based on System.ValueType).
Enumerations(Custom types that represent a defined set of Values).
Boolean, char can be accessed directly.
Reference Types:
These data types store reference to another memory location that contains the data.
Object
String
Arrays
Can be accessed through the members of the class.
Question: 4
Is C# is object oriented?
Yes, C# is an OO language in the tradition of Java and C++.
Question: 5
What is the difference between const and static readonly?
The difference is that static read only can be modified by the containing class, but const can never be modified and must e initialized to a compile time constant.
To expand on the static read only case a bit, the containing class can only modify it:
in the variable declaration ( through a variable initialize)
in the static constructor (instance constructor if it’s not static)
- 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
Cloze Test Questions and Answers Pdf More
Cloze Test Questions for Competitive Exams 2026-2027 More
Cloze Test Questions for SBI PO Exam 2026-2027 Pdf More
Computer Fundamentals Tutorials 2026-2027 Pdf More
Verbal Ability Questions and Answers Pdf 2026-2027 More
Delhi Sultanate Online Test Questions for UPSC, SSC CGL More
1000+ Fluid Mechanics Quiz Questions and Answers Pdf More
Oracle 11g DBA Interview Questions and Answers More
Top 100+ Computer Abbreviations Quiz More
1000+ Sentence Rearrangement Exercises with Answers Pdf More