Aidos Baktaev
Test por , creado hace más de 1 año

Test sobre .NET, creado por Aidos Baktaev el 15/05/2018.

76
0
0
Sin etiquetas
Aidos Baktaev
Creado por Aidos Baktaev hace alrededor de 6 años
Cerrar

.NET

Pregunta 1 de 10

1

Which of the following are value types? (Choose 3)

Selecciona una o más de las siguientes respuestas posibles:

  • Decimal

  • String

  • System.Drawing.Point

  • Integer

Explicación

Pregunta 2 de 10

1

Which is the correct declaration for a nullable integer?

Selecciona una de las siguientes respuestas posibles:

  • Nullable(int) i = null;

  • Nullable<int> i = null;

  • int i = null;

  • int<Nullable> i = null;

Explicación

Pregunta 3 de 10

1

Which of the following are reference types? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • Types declared Nullable

  • String

  • Exception

  • All types derived from System.Object

Explicación

Pregunta 4 de 10

1

What is the correct order for catch clauses when handling different exception types?

Selecciona una de las siguientes respuestas posibles:

  • Most general to most specific

  • Most likely to occur to least likely to occur

  • Most specific to most general

  • Least likely to occur to most likely to occur

Explicación

Pregunta 5 de 10

1

The following scenarios, which would be a good reason to use the String- Builder class instead of the String class?

Selecciona una de las siguientes respuestas posibles:

  • When building a string from shorter strings

  • When working with text data longer than 256 bytes

  • When you want to search and replace the contents of a string

  • When a string is a value type

Explicación

Pregunta 6 de 10

1

Why should you close and dispose of resources in a finally block instead of a catch block?

Selecciona una de las siguientes respuestas posibles:

  • It keeps you from having to repeat the operation in each catch.

  • A finally block runs whether or not an exception occurs.

  • The compiler throws an error if resources are not disposed of in the finally block.

  • You cannot dispose of resources in a catch block.

Explicación

Pregunta 7 de 10

1

You create an application with built-in exception handling. For some types of exceptions, you want to add an event to the Event Log that specifies the line of code that initiated the exception. Which Exception property should you use?

Selecciona una de las siguientes respuestas posibles:

  • Message

  • StackTrace

  • Source

  • Data

Explicación

Pregunta 8 de 10

1

You pass a value-type variable into a procedure as an argument. The procedure changes the variable; however, when the procedure returns, the variable has not changed. What happened?

Selecciona una de las siguientes respuestas posibles:

  • The variable was not initialized before it was passed in.

  • Passing a value type into a procedure creates a copy of the data.

  • The variable was redeclared within the procedure level.

  • The procedure handled the variable as a reference.

Explicación

Pregunta 9 de 10

1

Which of the following statements are true? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • Inheritance defines a contract between types.

  • Interfaces define a contract between types.

  • Inheritance derives a type from a base type.

  • Interfaces derive a type from a base type.

Explicación

Pregunta 10 de 10

1

Which of the following are examples of built-in generic types? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • Nullable

  • Boolean

  • EventHandler

  • System.Drawing.Point

Explicación