List of interview questions posted by Rajeshatkiit- Page 1


14 records found.
 


Category Interview Questions Title
C# What will be output of below code? public class MyClass { private MyClass() { } } class Program:MyClass { static void Main(string[] args) { Console.WriteLine("Hello"); Console.ReadLine(); } } 09-Jan-2016 3459
C# All processes have at least one thread of executions, which is called? 06-Jan-2016 4977
C# The CLR will not shutdown an application until all --------- threads has ended? 06-Jan-2016 3371
C# How many types of threads are defined by .NET Framework? 06-Jan-2016 3541
C# When you create a thread, it is by default which type of thread? 06-Jan-2016 3450
C# 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 22-Dec-2015 3668
C# What is the difference between Dispose() and Finalize() methods? 22-Dec-2015 3952
C# Why multiple inheritance is not possible in c#? 16-Dec-2015 2651
C# What will be output of following program? interface IInterface1 { void Show(); } interface IInterface2 { void Show(); } class A : IInterface1, IInterface2 { public void Show() { throw new NotImplementedException(); } } 16-Dec-2015 2888
C# What will be output of following program? public class Base { public Base() { Console.WriteLine("Base"); } public Base(string name) { Console.WriteLine("Base: " + name); } } public class Derived : Base { public Derived() { Console.WriteLine("Derived"); } public Derived(string s) { Console.WriteLine("Derived: " + s); } } class Program { static void Main(string[] args) { Derived d = new Derived("rajesh"); Console.ReadLine(); } } 16-Dec-2015 2919
C# What will be output of following program? public class Base { public Base() { Console.WriteLine("Base"); } } public class Derived : Base { public Derived() { Console.WriteLine("Derived"); } } Public Class Main { static void Main(string[] args) { Derived obj=new Derived() } } 16-Dec-2015 2706
C# What is marshaling and what is use of it? 16-Dec-2015 1220
C# What is the difference between throw and throw ex? 15-Dec-2015 3206
C# What will be output of below code? public class MyClass { public void Test() { try { Console.WriteLine("Test"); } catch (Exception ex) { Console.WriteLine("Caught General Exception"); } catch (IndexOutOfRangeException ex) { Console.WriteLine("Caught IO Exception"); } } } Will this code compile? 15-Dec-2015 3082

Navigate to page: 1