Time remaining
:
:
Test Status
CSHARPTEST3
Ques 1 :
Which of the following statements correctly define .NET Framework?
(A) It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.
(B) It is an environment for developing, building, deploying and executing Distributed Applications.
(C) It is an environment for development and execution of Windows applications.
(D) It is an environment for developing, building, deploying and executing only Web Applications.
Ques 2 :
A class that cannot be inherited is what type of class?
(A) Sealed
(B) Gather
(C) Static
(D) Constru
Ques 3 :
How can we sort the elements of the array in descending order?
(A) By calling Sortdescending() method
(B) By calling Sort() method
(C) By calling Sort() and then Reverse() methods
(D) By calling Sortreverse() method
Ques 4 :
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 5 :
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 6 :
Which of the following constitutes the .NET Framework?
1. ASP.NET Applications
2. CLR
3. Framework Class Library
4. WinForm Applications
5. Windows Services
(A) 2, 5
(B) 2, 1
(C) 2, 3
(D) 3, 4
Ques 7 :
Managed methods will be marked as ------------ in MSIL code
(A) mscorjit
(B) cil
(C) dgclr
(D) None
Ques 8 :
Which of the following in not service model (three-tier application) in c sharp?
(A) Presentation (UI)
(B) Business (logic and underlying code)
(C) Database (for storing the data)
(D) Data (from storage or other sources)
Ques 9 :
An Event has _____ as default return type
(A) No return type for events
(B) String
(C) Double
(D) Integer
Ques 10 :
What does a strong name contain?
(A) publiuc key
(B) assembly name
(C) assembly version
(D) All of the above
Ques 11 :
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 12 :
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 13 :
Can we override private virtual methods?
(A) Yes
(B) No
Ques 14 :
int keyword targets to which .Net type?
(A) System.Int8
(B) System.Int16
(C) System.Int32
(D) System.Int64
Ques 15 :
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 16 :
Which of these string definitions will prevent escaping on backslashes in C#?
(A) string s = #.n Test string.;
(B) string s = @.n Test string.;
(C) string s = ..n Test string.;
(D) string s = .n Test string.;
Ques 17 :
Code that targets the Common Language Runtime is known as
(A) Legacy
(B) Managed Code
(C) Unmanaged
(D) Native Code
Ques 18 :
Which method do you invoke on the SQLDataAdapter object to load your dataset with data?
(A) Update
(B) Fill
(C) Gather
(D) Load
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 :
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
Submit Answer
Don't Refresh the Page !! ...