double d = 0.524;Console.WriteLine(“{0:#.00}”, d);
Is this statement correct?
/// <myowntag>This is my own tag;</myowntag>public void WorkerFunction(String param1) { }
Preprocessor directives affect aspects of the compilation process. Preprocessor directives can be used to prevent the compiler from compiling code a particular piece of code. Preprocessor commands never actually get translated to any commands in the executable code.
#define PROFESSIONAL#define W2K
#if ENTERPRISE Console.WriteLine("Windows Server Enterprize Edition"); #if W2K Console.WriteLine("Windows 2000"); #endif#elif PROFESSIONAL #if W2K Console.WriteLine("Windows 2000"); #else Console.WriteLine("C# Professional 2.0"); #endif#else Console.WriteLine("Dot Net Frame Work");#endif
#define CSHARPQUESTION#if CSHARPQUESTION && (ENTERPRISESERVER==false)Console.WriteLine("SAMPLE C# QUESTIONS");#elseConsole.WriteLine("C# EXAMS"); #endif
Also check these C# test papers, these are one of most attempted test paper in this category.