-
-
Stream object can not be initialized
A) TrueB) FalseExplanation: Stream is an abstract class ie it is the representation of bytes
-
In C# a technique used to stream the data is known as
A) WadingB) SerializationC) CrunchingD) Marshalling
-
Which of the following is not a subclass of reference type
A) EnumerationsB) DelegatesC) ArraysExplanation: Enumerations are of Value Type
-
Code written in C# can not used in which of the languages
A) J#B) Managed C++C) Vb.NetD) JavaExplanation: Java is not targeted to run under CLR
-
.NET interfaces are not derived from IUnknown & they do not have associated GUID’s
A) TrueB) FalseExplanation: Only COM interfaces are derived from Iunknown and they do have GUIDs
-
Intermediate Language also facilitates language interoperability
A) TrueB) FalseExplanation: AS the managed code is bound to CTS & CLS it is language interoperable
-
A single line comments are implemented by
A) ‘B) //C) /*D) !—
-
Instantiating a reference object requires the use of
A) New keywordB) = OperatorC) Set keyword
-
Which of the following keyword is used along with Main function in C#
A) VirtualB) StaticC) InheritsExplanation: Main functions are always static as it runs with out any instance
-
Which is .NET s answer to Memory Management
A) ReflectionB) Common Type SystemC) GarbageCollection
-
Array declaration in C# is done with
A) [ ]B) {}C) ( )
-
For Each statement implicitly implements which interface
A) IEnumerableB) IcomparerC) NoneExplanation: All iterators implements Ienumerable
-
Which of the escape sequence is used for Backspace
A) oB) aC) b
-
How do you check whether an Object is compatible with Specific Type
A) Is OperatorB) Like OperatorC) Compare operator
-
Which of these operator has the Highest Precedence
A) ( )B) &&C) | |
-
What is the implicit name of the parameter that gets passed into the class set method?
Value, and its datatype depends on whatever variable we are changing.
-
Does C# support parameterized properties?
No. C# does, however, support the concept of an indexer from language spec. An indexer is a member that enables an object to be indexed in the same way as an array. Whereas properties enable field-like access, indexers enable array-like access. As an example, consider the Stack class presented earlier. The designer of this class may want to expose array-like access so that it is possible to inspect...
-
Is there any sample C# code for simple threading?
Some sample code follows: using System;using System.Threading;class ThreadTest {public void runme() {Console.WriteLine("Runme Called");} public static void Main(String[] args) {ThreadTest b = new ThreadTest();Thread t = new Thread(new ThreadStart(b.runme));t.Start();}}
-
C# Interview Questions
Ans