Which LINQ method forces immediate execution of a query?
Correct answer D. ToList
Subject / 929 questions
Page 22 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 22 of 47
Correct answer D. ToList
Correct answer C. It suspends the method until the awaited task completes, without blocking the thread
Correct answer A. int
Correct answer B. Callers cannot await them or catch their exceptions
Correct answer B. Task.WhenAll
Correct answer D. To attach declarative metadata to code elements that tools or reflection can read
Correct answer B. [Validated] or [ValidatedAttribute]
Correct answer C. It places every type in the file into that namespace without an extra pair of braces
Correct answer C. All parts must use the partial keyword and be in the same assembly and namespace
Correct answer D. base
Correct answer C. B
Correct answer B. A
Correct answer A. It cannot be instantiated directly and may contain abstract members without bodies
Correct answer A. It prevents other classes from inheriting from it
Correct answer B. A default implementation used when the implementing class does not provide one
Correct answer B. private
Correct answer D. Anywhere in the same assembly, or in derived classes in any assembly
Correct answer C. private protected
Correct answer D. The property can be set only during object initialisation, then becomes read-only
Correct answer A. this