Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Csharp

Csharp

Ratings: (0)|Views: 67|Likes:
Published by aravinddasa715

More info:

Published by: aravinddasa715 on Oct 27, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

07/06/2010

pdf

text

original

 
1)
Does C# support multiple-inheritance?
 a) yes b) No c)both
2)
What’s the top .NET class that everything is derived from?
a) System b) System. Object c) Both D) none
3) What is boxing?
a) Encapsulating an object in a value type. b) Encapsulating a copy of an object in a value type.c) Encapsulating a value type in an object.d) Encapsulating a copy of a value type in an object
4) What is a delegate?
1.A strongly typed function pointer 
.
 2.A light weight thread or process that can call a single method.3.A reference to an object in a different process.4.An inter-process message channel.
5) How does assembly versioning in .NET prevent DLL Hell?
1.The runtime checks to see that only one version of an assembly is on the machineat any one time.2..NET allows assemblies to specify the name AND the version of any assembliesthey need to run.3.The compiler offers compile time checking for backward compatibility.4.It doesnt.
6) In Object Oriented Programming, how would you describe encapsulation?
1.The conversion of one type of object to another.2.The runtime resolution of method calls.3.The exposition of data.4.The separation of interface and implementation7
) Find the wrong statement about structure
1, it’s a user defined value type2, it can’t hold null value3, it is similar to class and it can be extendable.4, it is placed on stack memory area
 
8)
Which is not a component of C L R?
1. Common type system2. Common language specification3. Base class libraries4. Garbage collector 9)
Match the following?
 1. Thread start a. system. Reflection2. Method info b. system. Attribute3. Attribute usage c. system.Io4. Stream write d. system. Threading1. 1-a, 2-b, 3-c, 4-d 2.1-c, 2-a, 3-b, 4-d2. 1-d, 2-a, 3-b, 4-c 4.1-d, 2-c, 3-a, 4-b10)
Match the following
 1.Virtual a. method contains definition only2.abstract b. used to create an instance dynamically3. new c. used to give new functionality for a method in derived class4.Override d. method can have functionality and can be extended1. 1-a, 2-b, 3-c, 4-d 2.1-c, 2-a, 3-b, 4-d2. 1-d, 2-a, 3-b, 4-c 4.1-d, 2-c, 3-a, 4-b
11)find the correct statement about value type
1.value types can hold null values2.value types are placed on stack memory area3.value types can be extendable4.value type variables can be garbage collected
12)what is extension of strong name key file name
 1. .dll 2. .snk 3. .exe 4. .cs13) Find
the wrong statement about operator overloading
 1.the method should be static2. the method should use operator keyword3. the method can return void4.For binary operator we must pass two arguments. 
 
14)
find the wrong statement about shared assemblies
1.it must have unique id before placing it on to gac2.unique id must be registered to the assemblyinfo.cs file3.it must placed on gac using gacutil.exe4.it must be registered to OS in order to consume it from another application.15)
match the following
1.method overloading a. method that cant be extended2.method overriding b. methods having same name with different signature3.new method c. methods having same name and signature4.sealed method d. hides the base class method1. 1-a, 2-b, 3-c, 4-d 2.1-b, 2-c, 3-d, 4-a2. 1-c, 2-b, 3-a, 4-d 4.1-d, 2-c, 3-a, 4-b 16) After compiling int will be converted to 1. System.int16 2.system.int32 3.system.int64 4.system.int128 17) By using Reflection concept we can read metadata (YES / NO) : 18) Attributes add metadata to an assembly (YES / NO): 19) To create user defined exception we need to extended either 1. System. Exception 2. system.applicatonexception3. Both 4 none20) which of the following option about implementing polymorphism is NOT truea)you can implement polymorphism by implementing an interfaceb) you can implement polymorphism by encapsulationc) you can implement polymorphism by using abstract classesd) you can also achieve polymorphism by inheritance.21) consider the following statementsStatement A: in dynamic polymorphism appropriate methods of a program can beinvoked.Statement B : in early binding , function calls are bound at run time.a.statement A is true and statement B is false. b.statement A is false and statement B is true.c.Both statements are true.d.Both statements are false

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->