Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
Automatic paging is possible in
(A) datareader
(B) dataset
(C) datatabel
(D) all
Ques 2 :
int keyword targets to which .Net type?
(A) System.Int8
(B) System.Int16
(C) System.Int32
(D) System.Int64
Ques 3 :
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 4 :
Which of the following ways to create an object of the Sample class given below will work correctly?
class Sample
{
int i;
Single j;
double k;
public Sample (int ii, Single jj, double kk)
{
i = ii;
j = jj;
k = kk;
}
}
(A) Sample s3 = new Sample(10, 1.2f, 2.4);
(B) Sample s2 = new Sample(10, 1.2f);
(C) Sample s1 = new Sample(, , 2.5);
(D) Sample s1 = new Sample(10);
Ques 5 :
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 6 :
Your company uses Visual Studio.NET 2005 as its application development platform. You are developing an application using the .NET Framework 2.0. You are required to use a datatype that will store only numbers ranging from -32,768 to 32,767. Which of the following datatypes will you use to accomplish the task?
(A) short
(B) System.Int16
(C) string
(D) a and b
Ques 7 :
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 8 :
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 9 :
Can an Interface be instantiated directly?
(A) Yes
(B) No
Ques 10 :
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 11 :
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 12 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 13 :
In C#, by default structs are passed how?
(A) By reference.
(B) By value.
(C) By address.
(D) By memory.
Ques 14 :
When doing an Update, which method of the SqlCommand is best to use?
(A) ExecuteQuery
(B) ExecuteUpdate
(C) ExecuteNonQuery
(D) ExecuteCommand
Ques 15 :
Which of the following statements are correct about the C#.NET code snippet given below?
class Sample
{
static int i;
int j;
public void proc1()
{
i = 11;
j = 22;
}
public static void proc2()
{
i = 1;
j = 2;
}
static Sample()
{
i = 0;
j = 0;
}
}
(A) j can be initialized in proc2().
(B) i cannot be initialized in proc1().
(C) proc1() can initialize i as well as j.
(D) proc2() can initialize i as well as j.
Ques 16 :
Which of the following characters ends every C# statement?
(A) Period (.)
(B) Colon (:)
(C) Semicolon (;)
(D) Comma (,)
Ques 17 :
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 18 :
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 19 :
If a class is using an interface, it must
(A) contain the same methods as the interface
(B) inherit the properties of the interface
(C) create an interface object
(D) all of the above
Ques 20 :
Two methods with the same name but with different parameters.
(A) Overloading
(B) Multiplexing
(C) Duplexing
(D) Loading
Submit Answer
Don't Refresh the Page !! ...