Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
Are private class-level variables can inherited?
(A) Yes, and we can access them
(B) No, and we can not access them
(C) Yes, but we can not access them
(D) All of the above are wrong
Ques 2 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 3 :
The uniqueId that gets generated at the start of the Session is stored in
(A) Client computer as a cookie
(B) Server machine
(C) Passed to and fro on each and every request and response
(D) Both a and b are correct
Ques 4 :
int keyword targets to which .Net type?
(A) System.Int8
(B) System.Int16
(C) System.Int32
(D) System.Int64
Ques 5 :
Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?
(A) .NET class libraries
(B) Common Language Infrastructure
(C) Common Language Runtime
(D) Common Type System
Ques 6 :
Which of the following statements are correct about static functions?
1. Static functions can access only static data.
2. Static functions cannot call instance functions.
3. It is necessary to initialize static data.
4. Instance functions can call static functions and access static data.
5. This reference is passed to static functions.
(A) 1, 2, 3
(B) 1, 2, 5
(C) 1, 2, 4
(D) 2, 3, 5
Ques 7 :
How does assembly versioning in .NET prevent DLL Hell?
(A) The runtime checks to see that only one version of an assembly is on the machine at any one time.
(B) The compiler offers compile time checking for backward compatibility.
(C) .NET allows assemblies to specify the name AND the version of any assemblies they need to run.
(D) It doesn.t.
Ques 8 :
Difference between Convert.ToString() and ToString()
(A) Convert.ToString() handle null values but ToString() don't
(B) Convert.ToString() only handle null values
(C) ToString() handle null values but Convert.ToString() don't
(D) ToString() output as per format supplied
Ques 9 :
Which of the following statements is correct?
(A) A constructor can be used to set default values and limit instantiation.
(B) Destructors are used with classes as well as structures.
(C) A class can have more than one destructor.
(D) C# provides a copy constructor.
Ques 10 :
Automatic paging is possible in
(A) datareader
(B) dataset
(C) datatabel
(D) all
Ques 11 :
Sealed Classes cannot be a base class.
(A) True
(B) False
Ques 12 :
Two methods with the same name but with different parameters.
(A) Overloading
(B) Multiplexing
(C) Duplexing
(D) Loading
Ques 13 :
Your company uses Visual Studio .NET as its application development platform. You have recently finished development of a class named ShopList using the .NET Framework. The class will include ShopItem objects that have the public properties exhibit below:
1. Name
2. ID
3. DiscountCode
You need to enable users of the class to iterate through the ShopList collection, and to list each product's name and ID using the foreach statement. Which of the following code segments will you use to accomplish this task?
(A) public class ShopList : IEnumerator, IEnumerable { // Class implementation }
(B) public class ShopList : IBindingList { // Class implementation }
(C) public class ShopList : ICollection { // Class implementation }
(D) public class ShopList : IDictionary { // Class implementation }
Ques 14 :
Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
(A) gacutil
(B) ngen
(C) sn
(D) ildasm
Ques 15 :
Managed methods will be marked as ------------ in MSIL code
(A) mscorjit
(B) cil
(C) dgclr
(D) None
Ques 16 :
Can we override private virtual methods?
(A) Yes
(B) No
Ques 17 :
Which of the following statements is correct about the .NET Framework?
(A) .NET Framework uses COM+ services while creating Distributed Applications.
(B) .NET Framework uses DCOM for creating unmanaged applications.
(C) .NET Framework uses DCOM for making transition between managed and unmanaged code.
(D) .NET Framework uses DCOM for achieving language interoperability
Ques 18 :
Which of the following statements are TRUE about the .NET CLR?
1. It provides a language-neutral development & execution environment.
2.It ensures that an application would not be able to access memory that it is not authorized to access.
3.It provides services to run "managed" applications.
4.The resources are garbage collected.
5.It provides services to run "unmanaged" applications.
(A) Only 1 and 2
(B) Only 1, 2 and 4
(C) 1, 2, 3, 4
(D) Only 4 and 5
Ques 19 :
Which file contains configuration data for each unique URl resource used in project?
(A) web.config
(B) global.asax
(C) webapplication.vsdisco
(D) assemblyinfo.cs
Ques 20 :
Is it possible to store multiple data types in System.Array?
(A) Yes
(B) No
Submit Answer
Don't Refresh the Page !! ...