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 4648
C# All processes have at least one thread of executions, which is called? 06-Jan-2016 6086
C# The CLR will not shutdown an application until all --------- threads has ended? 06-Jan-2016 4637
C# How many types of threads are defined by .NET Framework? 06-Jan-2016 4749
C# When you create a thread, it is by default which type of thread? 06-Jan-2016 4624
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 4861
C# What is the difference between Dispose() and Finalize() methods? 22-Dec-2015 5130
C# Why multiple inheritance is not possible in c#? 16-Dec-2015 3834
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 4022
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 4150
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 3865
C# What is marshaling and what is use of it? 16-Dec-2015 2276
C# What is the difference between throw and throw ex? 15-Dec-2015 4328
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 4181

Navigate to page: 1