GIAC
GSSP-NET · Question #442
GSSP-NET Question #442: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #442. The question stem and answer options stay visible for context.
Question
You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are developing an application that will manage rental properties for a property management agency. When a property is rented, a lease agreement is created. At that time a new lease is entered into the application, the starting date of the lease may not yet be known. You need to write code that stores the lease start date entered by a user in a variable. The variable that stores the lease start date should contain no value, by default. If no lease start date is entered, the variable should have no value assigned to it. Which code segment should you choose?
Options
- ADateTime? leaseStartDate = null;
- BDateTime leaseStartDate = null;
- CDateTime? leaseStartDate = new DateTime();
- DDateTime leaseStartDate = new DateTime();
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.