-
What is the data provider name to connect to Access database?
Microsoft.Access.
-
Why do I get a "CS5001: does not have an entry point defined" error when compiling?
The most common problem is that you used a lowercase 'm' when defining the Main method. The correct way to implement the entry point is as follows: class test {static void Main(string[] args) {}}
-
When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.
-
-
Bool data type in C# is
Skill/Topic: BeginnerA) a value typeB) a reference type
-
An int in C# is
Skill/Topic: BeginnerA) 16 bit unsigned integerB) 32 bit signed integerC) 64 bit integer
-
A struct is a
Skill/Topic: BeginnerA) value typeB) a reference type
-
Which tool is used to browse the classes, structs, interfaces etc. in the BCL?
Skill/Topic: IntermediateA) csc.exeB) bcl.exeC) WinCV
-
From command line, a C# program can be compiled using
Skill/Topic: BeginnerA) csc.exeB) csharp.exeC) compilescs.exe
-
The methods which can be called without instantiating an object first are called
Skill/Topic: IntermediateA) staticB) dynamicC) primary
-
What is an assembly?
Skill/Topic: IntermediateA) A logical unit containing complited codeB) A collection of C# compilersC) .NET debugger
-
To start a Thread, you call the following method
Skill/Topic: IntermediateA) Start()B) Begin()C) Jump()
-
System is a
Skill/Topic: IntermediateA) ClassB) NamespaceC) Program
-
The following type of class can’t be instantiated
Skill/Topic: IntermediateA) absoluteB) abstractC) superD) none of the above
-
'Reflection' is used to
Skill/Topic: AdvancedA) Get assembly metadata using codeB) Debug C# programsC) Compile C# programs
-
A virtual method can’t be over ridden
Skill/Topic: IntermediateA) TrueB) False
-
Manifest is an area where:
Skill/Topic: AdvancedA) the assembly code is compiledB) Debug information is a storedC) Assembly metadata is stored
-
You can derive your own classes from the base class Library
Skill/Topic: IntermediateA) TrueB) False
-
Does C# support multiple inheritance?
No, use interfaces instead.
-
We can call COM objects in C# using :
Skill/Topic: AdvancedA) DLLImportB) UsingDLLC) DLLCall
C# Interview Questions
Ans