Time remaining
:
:
Test Status
CSHARPTEST4
Ques 1 :
Which of these statements correctly declares a two-dimensional array in C#?
(A) int[][] myArray;
(B) int[,] myArray;
(C) System.Array[2] myArray;
(D) int[2] myArray;
Ques 2 :
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 3 :
Which of following is correct
(A) enum Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
(B) Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
(C) enumeration Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
(D) Day enum{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
Ques 4 :
Which of the following is/are not true about the class?
(A) Classes can have both contractors and destructors
(B) Classes are reference type
(C) Classes does not support Inheritance
(D) All of the above are true
Ques 5 :
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
Ques 6 :
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 7 :
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 8 :
In C#, by default structs are passed how?
(A) By reference.
(B) By value.
(C) By address.
(D) By memory.
Ques 9 :
Polymorphism?
(A) Polymorphism means multiple forms and different name
(B) Polymorphism means multiple forms but one name
(C) Polymorphism means single forms and single name
(D) All of the above are true
Ques 10 :
The RangeValidator control supports the following data types
(A) Integer only
(B) Date, Integer and String
(C) only string
(D) Date and Integer
Ques 11 :
What is boxing?
(A) Encapsulating a value type in an object.
(B) Encapsulating an object in a value type.
(C) Encapsulating a copy of a value type in an object.
(D) Encapsulating a copy of an object in a value type.
Ques 12 :
Which of the following benefits do we get on running managed code under CLR?
1. Type safety of the code running under CLR is assured.
2. It is ensured that an application would not access the memory that it is not
authorized to access.
3. It launches separate process for every application running under it.
4. The resources are Garbage collected.
(A) Only 1, 2 and 4
(B) Only 2, 3 and 4
(C) Only 1 and 2
(D) All of the above
Ques 13 :
Which of the following characters ends every C# statement?
(A) Period (.)
(B) Colon (:)
(C) Semicolon (;)
(D) Comma (,)
Ques 14 :
How to kill a user session explicitly?
(A) Session.Discard()
(B) Session.Close()
(C) Session.Abandon()
(D) Session.kill()
Ques 15 :
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 16 :
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
Ques 17 :
You need to identify a type that meets the following criteria: Is always a number Is not greater than 65,535 Which type should you choose?
(A) System.UInt16
(B) System.IntPtr
(C) Int
(D) System.String
Ques 18 :
Convert vs. Parse methods
(A) Convert converts the value, Parse is for parsing
(B) Convert allows null values, Parse cannot
(C) Both are same
(D) None of these
Ques 19 :
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 20 :
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
Submit Answer
Don't Refresh the Page !! ...