Question 291
You are adding a public method named UpdateGrade to a public class named ReportCard.
The code region that updates the grade field must meet the following requirements:
* It must be accessed by only one thread at a time.
* It must not be vulnerable to a deadlock situation.
You need to implement the UpdateGrade() method.
What should you do?
Question 292
You are developing an application that uses several objects. The application includes the following code segment. (Line numbers are included for reference only.)
You need to evaluate whether an object is null.
Which code segment should you insert at line 03?
Question 293
You are developing an application that includes a class named Order. The application will store a collection of Order objects.
The collection must meet the following requirements:
* Use strongly typed members.
* Process Order objects in first-in-first-out order.
* Store values for each Order object.
* Use zero-based indices.
You need to use a collection type that meets the requirements.
Which collection type should you use?
Question 294
You are developing a method named GetHash that will return a hash value for a file. The method includes the following code. (Line numbers are included for reference only.)
You need to return the cryptographic hash of the bytes contained in the fileBytes variable.
Which code segment should you insert at line 05?
Question 295
HOTSPOT
A developer designs an interface that contains the following code:
For each of the following statements, select Yes if the statement is true. Otherwise, select
No.

