C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
.NET Interview Questions
Recently Posted
Job Title
All
Senior Management
Project Manager
Project Lead
Tech Lead
Team Lead
Architect
Sr. Developer
Sr. Programmer
Programmer
Developer
DBA
Network/System Admin
Test Lead
Tester
Fresher
CEO
CTO
Web Designer
Graphic Designer
Architect
No data found
6
Answers
Which of the following can be declared in an interface?Properties Methods Enumerations Events Structures A. 1, 3 B. 1, 2, 4 C. 3, 5 D. 4, 5
Rajesh Singh
10y
Reply
11
Answers
A class consists of two interfaces with each interface consisting of three methods.The class had no instance data. Which of the following indicates the correct size of object created from this class? a) 12 bytes b) 16 bytes c) 0 bytes d) 24 bytes
Rajesh Singh
10y
Reply
6
Answers
Which of the following can be used to declare an interface correctly? a) Properties b) Methods c) Structures d) Events
Rajesh Singh
10y
Reply
2
Answers
If a class inheriting an abstract class does not define all of its functions then it is known as? a) abstract b) A simple class c) Static class d) None of the mentioned
Rajesh Singh
10y
Reply
4
Answers
What we do For avoiding Sql injection attack?
Sandeep Kumar
10y
Reply
2
Answers
The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is? a) Sealed b) Static c) New d) abstract
Rajesh Singh
10y
Reply
2
Answers
What is the need of .Net framework ?
Kumar Bhimsen
10y
Reply
2
Answers
How to get only schema of a table in ADO.NET? a. DataAdapter.Fill(Dataset); b. DataAdapter.Schema(Dataset,“TableName”); c. DataAdapter.FillSchema(Dataset); d. DataAdapter.GetSchema(Dataset,”TableName”);
Rajesh Singh
10y
Reply
1
Answer
You have recently developed a Class named “ShopList”. The class is having Public properties Name, ID, Discount. You need to enable the users of the class to iterate through the ShopList collections. Which of the following code snippet will you use? a. public class ShopList : IEnumerator, IEnumerable { // Class implementation } b. public class ShopList : IBindingList { // Class implementation } c. public class ShopList : IDictionary { // Class implementation } d. public class ShopList : ICollection { // Class implementation }
Rajesh Singh
10y
Reply
3
Answers
If a Class is inheriting an interface then a. Inherit the properties of the interface. b. Contain the same methods from the interface. c. Create an interface object. d. All
Rajesh Singh
10y
Reply
4
Answers
How do you prevent a class from being inherited? a. By making the class as Private. b. By making the class as private and using sealed keyword. c. By making the class as protected and using sealed keyword. d. By making the class as Sealed.
Rajesh Singh
10y
Reply
2
Answers
What is the difference between Dispose() and Finalize() methods? a. Dispose() method will remove the resources to a class and Finalize() will release the memory for a class. b. Dispose() method is used for a class and Finalize() method is for a class method. c. Dispose() will be called by programmer explicitly and Finalize() method is called by Garbage Collector implicitly. d. All.
Rajesh Singh
10y
Reply
6
Answers
2. How many default Constructors can a class have? a. 1 b. 2 c. None d. Many
Rajesh Singh
10y
Reply
5
Answers
1. What is default Access Modifier of a Class? a. Public b. Private c. Protected d. Internal
Rajesh Singh
10y
Reply
2
Answers
How many method is there to remove unreachable object from memory?
Sandeep Kumar
10y
Reply
50
51
52
53
54
766
-
780
of
1364
View More
Do you know the answer for the question? Post below
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
*