Examen basico desarrolladores .net

Solo disponible en BuenasTareas
  • Páginas : 4 (883 palabras )
  • Descarga(s) : 13
  • Publicado : 23 de junio de 2010
Leer documento completo
Vista previa del texto
.NET DEVELOPER EXAM

1) The C# keyword int maps to which .NET type?
a. System.Int16
b. System.Int32
c. System.Int64
d. System.Int128

2) Which of these statements correctlydeclares a two-dimensional array in C#?
a. int[,] myArray;
b. int[][] myArray;
c. int[2] myArray;
d. System.Array[2] myArray;

3) Which of these string definitions will prevent escaping onbackslashes in C#?
a. string s = “ Test string”;
b. string s = “\n Test string”;
c. string s = @”\n Test string”;
d. string s = “n Test string”;

4) What is a delegate?
a. Astrongly typed function pointer.
b. A light weight thread or process that can call a single method.
c. A reference to an object in a different process.
d. An inter-process message channel.5) If a method is marked as protected internal who can access it?
a. Classes that are both in the same assembly and derived from the declaring class.
b. Only methods that are in the sameclass as the method in question.
c. Internal methods can be only be called using reflection.
d. Classes within the same assembly and classes derived from the declaring class.

6) Which of thefollowing operations can you NOT perform on an ADO.NET DataSet?
a. A DataSet can be synchronised with the database.
b. A DataSet can be synchronised with a RecordSet.
c. A DataSet can beconverted to XML.
d. You can infer the schema from a DataSet.

7) In Object Oriented Programming, how would you describe encapsulation?
a. The conversion of one type of object to another.b. The runtime resolution of method calls.
c. The exposition of data.
d. The separation of interface and implementation.

8) Which design pattern is shown below?
public class A {
   private A instance;
    private A() {
    }
* public
static A Instance {
        get
        {
            if ( A == null )
                A = new A();
            return instance;
        }...
tracking img