WorksheetsC# Quiz 3
Total questions: 10
Worksheet time: 5mins
The only difference between a normal 'exit' and a call to FailFast is:
FailFast writes to the System log, exit does not
Exit writes to the System log, FailFast does not
There are no fundamental differences between the two
I've never heard of 'FailFast'
While C++ provides a way to catch every exception, C# does not have that capability
True
False
What does 'rethrow' do regarding Exceptions?
'rethrow' is not a C# key word
It causes C# to rethrow the current Exception
'rethrow' functions identically in C# as it does in C++
What is the purpose of a General Catch Block?
It catches Exceptions that otherwise would not be caught
It catches multiple uncaught Exceptions
It catches all System Exceptions
What is the purpose of generic in C#?
Allows multiple overloads of methods
Provides a shortcut for multiple implementations
Provides a way to integrate interfaces and classes in inheritance structures
Generics make use of parameterized types
True
False
Types don't have parameters
Generics promote type safety
True
False
Generics have nothing to do with type safety
Generics improve performance/efficiency
With regard to compile-time type checking
With regard to boxing and unboxing
With regard to code bloat
With regard to reducing unnecessary casting
With regard to memory consumption
Generics can be used with all three: classes, structs, interfaces
True
False
Only with classes and structs, but not interfaces
Generic methods can only be defined within generic classes
True
False
