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 :
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 3 :
Identify which is true
(A) DataView ia subset of row and not columns
(B) find can be done only on sorted columns
(C) Sorting can be done on multiple columns
(D) None of these
Ques 4 :
What does Dispose method do with connection object?
(A) Close the connection
(B) Temporary dispose the connection
(C) Deletes it from the memory
(D) All of the above
Ques 5 :
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 6 :
Features of Read only variables
(A) Declaration and initialization is separated
(B) It is allocated at compile time
(C) It is allocated at runtime
(D) all of the above
Ques 7 :
What is the wild card character in the SQL "like" statement?
(A) * (Asterisk)
(B) # (Pound)
(C) % (Percent)
(D) $ (Dollar)
Ques 8 :
A variable which is declared inside a method is called a________variable
(A) Local
(B) Private
(C) Static
(D) Serial
Ques 9 :
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 10 :
Which of the following jobs are done by Common Language Runtime?
1. It provides core services such as memory management, thread management, and remoting.
2. It enforces strict type safety.
3. It provides Code Access Security.
4. It provides Garbage Collection Services.
(A) Only 1 and 2
(B) Only 3, 4
(C) Only 2, 3 and 4
(D) All of the above
Ques 11 :
Is it possible to invoke Garbage Collector explicitly?
(A) Yes
(B) No
Ques 12 :
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 13 :
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 14 :
Which of the following statements is correct about Managed Code?
(A) Managed code is the code that runs on top of Windows.
(B) Managed code is the code that is written to target the services of the CLR.
(C) Managed code is the code where resources are Garbage Collected.
(D) Managed code is the code that is compiled by the JIT compilers.
Ques 15 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 16 :
Feature of a local variable
(A) It must be declared within a method
(B) It represent a class object
(C) It can be used anywhere in the program
(D) It must accept a class
Ques 17 :
Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
(A) Update
(B) Fill
(C) Gather
(D) Load
Ques 18 :
If a method is marked as protected internal who can access it?
(A) Classes within the same assembly, and classes derived from the declaring class.
(B) Internal methods can be only be called using reflection.
(C) Only methods that are in the same class as the method in question.
(D) Classes that are both in the same assembly and derived from the declaring class.
Ques 19 :
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 20 :
Boxing in .Net allows the user to convert
(A) a double type to interger
(B) a interger type to double
(C) a value type to a reference type
(D) a reference type to a value type
Submit Answer
Don't Refresh the Page !! ...