C Sharp Quiz Paper 1
Written By:-
Isha Malhotra
C# Interview Question
C# Video Tutorial
C# Tutorial
MVC Training in Noida
C# Quiz Paper 2
→
C# Quiz
what is the default access modifier of C# class?
A) Public
B) Protected
C) Private
D) Internal
{{Que1}}
can we initialize non-static variable inside static constructor?
A) Yes
B) No
{{Que2}}
can we overload static constructor in C#?
A) Yes
B) No
{{Que3}}
can we pass parameter to static constructor in C#?
A) Yes
B) No
{{Que4}}
what is the default access specifier of member of class?
A) Public
B) Protected
C) Private
D) Internal
{{Que5}}
If a class don't have any constructor then which constructor called automatically?
A) Default
B) Parameterized
{{Que6}}
Can we initilize static variable from non-static constructor?
A) Yes
B) No
{{Que7}}
Do Constructor have any return type?
A) Yes
B) No
{{Que8}}
Can we call static variable with object?
A) Yes
B) No
{{Que9}}
Can We perform constructor chaining on static constructor?
A) Yes
B) No
{{Que10}}