Time remaining
:
:
Test Status
CSHARPRANDOMTEST
Ques 1 :
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 2 :
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 3 :
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 4 :
Which of the following namespaces used in C#.NET?
(A) using System;
(B) using System.Collections.Generic;
(C) using System.Windows.Forms;
(D) All of the above are used
Ques 5 :
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 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 :
What property is used on the datatable to indicate conflicts after update method is called?
(A) HasCollision
(B) HasErrorConflict
(C) HasError
(D) HasDataError
Ques 8 :
Which property will you use to process different server paths in a page?
(A) Request
(B) Response
(C) Server
(D) Application
Ques 9 :
The company uses Visual Studio .NET as its application development platform. You are creating a strong named MyAssembly that will be used in several applications. The assembly will be rebuilt frequently during the development cycle. You must ensure that every time MyAssembly is rebuilt it works properly with all applications that use it. You are required to configure the computer on which you develop the assembly such that each application uses the latest build of MyAssembly. Which of the following actions will you take to accomplish the task?
(A) Add the following element to the configuration file of every application that uses the assembly
(B) Add the following element to the machine configuration file
(C) To point to the build output directory for the strong named assembly, create a DEVPATH environment variable.
(D) B and C
Ques 10 :
What is a delegate?
(A) A reference to an object in a different process.
(B) A strongly typed function pointer.
(C) An inter-process message channel.
(D) A light weight thread or process that can call a single method.
Ques 11 :
___________________ allow to encapsulate discrete units of functionality and provide a graphical representation of that functionality to the user
(A) object
(B) controls
(C) class
(D) graphics
Ques 12 :
Which of these is a valid path declaration?
(A) string strPath="c:\\abc.txt";
(B) string strPath=@"c:\abc.txt";
(C) string strPath="c:/abc.txt";
(D) All of these
Ques 13 :
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 14 :
Which file contains configuration data for each unique URl resource used in project?
(A) web.config
(B) global.asax
(C) webapplication.vsdisco
(D) assemblyinfo.cs
Ques 15 :
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 16 :
Which of the following is/are not types of arrays in C#?
(A) Single-Dimensional
(B) Multidimensional
(C) Jazzed arrays
(D) Jagged arrays
Ques 17 :
Managed methods will be marked as ------------ in MSIL code
(A) mscorjit
(B) cil
(C) dgclr
(D) None
Ques 18 :
In C#, the statement that is used to replace multiple if statements is called?
(A) The nestedif statement
(B) The #endif statement
(C) The switch case statement
(D) None of these
Ques 19 :
What is the Difference between Convert.ToInt32 and Int.Parse?
(A) Both are Same
(B) Convert.ToInt32 Can't Handle Null Values ,it will throws rgumentNullException error.
(C) Int.Parse Can't Handle Null values , It will throws ArgumentNullException Error.
(D) Both can Handle Null Values
Ques 20 :
What is the output of the code public class B : A { }
(A) It defines a class that inherits the public methods of A only.
(B) It defines a class that inherits all the methods of A but the private members cannot be accessed.
(C) Errors
(D) a and b
Submit Answer
Don't Refresh the Page !! ...