Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
A class that cannot be inherited is what type of class?
(A) Sealed
(B) Gather
(C) Static
(D) Constru
Ques 2 :
Is it possible to invoke Garbage Collector explicitly?
(A) Yes
(B) No
Ques 3 :
What is the difference between Convert.ToString(str) and str.ToString() method?
(A) Convert.ToString(str) function handles NULL while str.ToString() does not. It will throw a NULL reference exception.
(B) str.ToString() function handles NULL while Convert.ToString(str) does not. It will throw a NULL reference exception.
(C) Both can handle NULL
(D) None can Handle NULL
Ques 4 :
Which is true about Interface and abstract methods?
(A) We can write only one abstract method inside interface.
(B) No method is abstract inside interface
(C) All the methods inside Interface in an abstract method.
(D) None of the above
Ques 5 :
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 6 :
Which of the following assemblies can be stored in Global Assembly Cache?
(A) Private Assemblies
(B) Shared Assemblies
(C) Protected Assemblies
(D) Friend Assemblies
Ques 7 :
C# doesnot support:
(A) abstraction
(B) polymorphism
(C) multiple inheritance
(D) inheritance
Ques 8 :
What does a strong name contain?
(A) publiuc key
(B) assembly name
(C) assembly version
(D) All of the above
Ques 9 :
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 10 :
Is it possible to store multiple data types in System.Array?
(A) Yes
(B) No
Ques 11 :
An assembly is
(A) declarative syntax of Java
(B) properties of c#
(C) events Of c#
(D) A collection of files that appear to the programmer to be a single DLL or EXE.
Ques 12 :
Which of the following is/are true about the structure?
(A) Structures do not support Inheritance
(B) Structures are value type
(C) Structures can not have contractor
(D) All of the above are true
Ques 13 :
What is the wild card character in the SQL "like" statement?
(A) * (Asterisk)
(B) # (Pound)
(C) % (Percent)
(D) $ (Dollar)
Ques 14 :
How many web.config files that can be there an ASP.NET application?
(A) only one
(B) more than one
(C) only two
(D) upto 10
Ques 15 :
A variable which is declared inside a method is called a________variable
(A) Local
(B) Private
(C) Static
(D) Serial
Ques 16 :
Which of the following is the root of the .NET type hierarchy?
(A) System.Object
(B) System.Base
(C) System.Root
(D) System.Parent
Ques 17 :
What compiler switch creates an xml file from the xml comments in the files in an assembly?
(A) /text
(B) /xml
(C) /doc
(D) /help
Ques 18 :
What is a satellite Assembly?
(A) A peripheral assembly designed to monitor permissions requests from an application.
(B) An assembly containing localized resources for another assembly.
(C) An assembly designed to alter the appearance or .skin. of an application.
(D) Any DLL file used by an EXE file.
Ques 19 :
How to kill a user session explicitly?
(A) Session.Discard()
(B) Session.Close()
(C) Session.Abandon()
(D) Session.kill()
Ques 20 :
Which of the following security features can .NET applications avail?
1. PIN Security
2. Code Access Security
3. Role Based Security
4. Authentication Security
5. Biorhythm Security
(A) 2, 5
(B) 2, 3
(C) 1, 4, 5
(D) 3, 4
Submit Answer
Don't Refresh the Page !! ...