GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

.NET

Aidos Baktaev 10 Fragen

Quiz starten

Fragen in diesem Quiz (10)

  1. 1Which of the following are value types? (Choose 3)
    1. ADecimal
    2. BString
    3. CSystem.Drawing.Point
    4. DInteger
  2. 2Which is the correct declaration for a nullable integer?
    1. ANullable(int) i = null;
    2. BNullable<int> i = null;
    3. Cint i = null;
    4. Dint<Nullable> i = null;
  3. 3Which of the following are reference types? (Choose 2)
    1. ATypes declared Nullable
    2. BString
    3. CException
    4. DAll types derived from System.Object
  4. 4What is the correct order for catch clauses when handling different exception types?
    1. AMost general to most specific
    2. BMost likely to occur to least likely to occur
    3. CMost specific to most general
    4. DLeast likely to occur to most likely to occur
  5. 5The following scenarios, which would be a good reason to use the String- Builder class instead of the String class?
    1. AWhen building a string from shorter strings
    2. BWhen working with text data longer than 256 bytes
    3. CWhen you want to search and replace the contents of a string
    4. DWhen a string is a value type
  6. 6Why should you close and dispose of resources in a finally block instead of a catch block?
    1. AIt keeps you from having to repeat the operation in each catch.
    2. BA finally block runs whether or not an exception occurs.
    3. CThe compiler throws an error if resources are not disposed of in the finally block.
    4. DYou cannot dispose of resources in a catch block.
  7. 7You 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?
    1. AMessage
    2. BStackTrace
    3. CSource
    4. DData
  8. 8You 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?
    1. AThe variable was not initialized before it was passed in.
    2. BPassing a value type into a procedure creates a copy of the data.
    3. CThe variable was redeclared within the procedure level.
    4. DThe procedure handled the variable as a reference.
  9. 9Which of the following statements are true? (Choose 2)
    1. AInheritance defines a contract between types.
    2. BInterfaces define a contract between types.
    3. CInheritance derives a type from a base type.
    4. DInterfaces derive a type from a base type.
  10. 10Which of the following are examples of built-in generic types? (Choose 2)
    1. ANullable
    2. BBoolean
    3. CEventHandler
    4. DSystem.Drawing.Point

Informationen

Beschreibung
Quiz am .NET, erstellt von Aidos Baktaev am 15/05/2018.
Sprache
English
Aufrufe
98
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck