Professional Documents
Culture Documents
C#.net Exam Questions
C#.net Exam Questions
NET
>All of above
2 . What is the .NET collection class that allows an element to be accessed using a unique key?
>HashTable
ArrayList
SortedList
allows references to members of a namespace without using the fully qualified name
both a and b
a)10 min
>b)20min
c)30min
d)40min
a)0
b)1
c)null
d)a null reference exception thrown
9. How can you sort the elements of the array in descending order?
a) By Calling ReverseSort(),
b) By Calling SortReverse(),
c) By Calling Descend(),
>d) By Calling Sort () and then Reverse()
ans:synonym
12. what does the keyword virtual declare for methods or a property?
The method or a property can have a duplicate name with in the same assembly
The method or a property doesnot exist in the context of the object at design time
>The method or a property canbe overriden
none of the above
>Init()
Seal()
>Load()
14. Which one of the following is the type of assembly that contains localized resources?
Satellite
Shared
Hub
localized
15. __________________ method(s) are used with Application object to ensure only one process
accesses a variable at a time.
Synchronize
ThreadLock
Sychronize()
bit
boolean
int
object
string
Correct : Boolean
A: <!---comment---->
B: <!--comment -->
C: <%-- comment--%>
D: <%--comment-->
(C) => User and Custom controls are displayed correctly in the Visual Studio .NET Designer
(A) => Returns the physical file path that corresponds to virtual specified path
Answer =>> Returns the physical file path that corresponds to virtual specified path
a) Yes …......
b) No, because the interface name does not start wi
c) No, because MyProp is not declared as public
d) No, because interfaces can't contain property
22. Which of the following type conversions will be performed automatically by the compiler without
requiring an explicit cast?
string s1 = "foo";
System.Text.StringBuilder sb = new System.Text.StringBuilder("foo");
string s2 = sb.ToString();
OpTest<string>(s1, s2);
Console.ReadLine();
A) FALSE, …....
B) TRUE,
C) Run time error,
D) Compile-time error