Microsoft Technology Guru Contest – Question 10


In the Below XAML code, [code] <TextBlock x:Name="ExpiryDateTextBlock“ Text="{Binding ExpiryDate, StringFormat=’MM-dd-yyyy’, TargetNullValue=’NA’}" > </TextBlock> [/code] Which of the following is correct?

1. ‘NA’ will be displayed if the ExpiryDate is null.
2. ‘NA’ will be displayed if the ExpiryDate is less than current date.
3. ExpiryDate value is displayed in the ‘MM-dd-yyyy’ format
4. Throws a compile-time error.
5. Both 1 and 3

 

How to participate:

  • Answer the above question and providing your email address along.
  • Only the answer provided with email address will be marked.
  • Only the first correct answer will be considered.
  • For further details kindly refer to the Competition Rules and Guidelines.

Comments (12)

  1. Correct answer: 5. Both 1 and 3

    email: alihaider59@live.com

  2. Muhammad Irfan says:

    5. Both 1 and 3

    Email : ib_22_dik@yahoo.com

  3. Sajjad Ali says:

    2. 'NA' will be displayed if the ExpiryDate is less than current date.

    Email : mrsajjadmemon@hotmail.com

  4. Hassaan Masood says:

    Option 5, Both 1 and 2

    hassaanmasood@live.com

  5. Omair Hassan says:

    Option 5. Both 1 and 3

    mary_khan87@hotmail.com

  6. Both 1 and 3.  syed.sheheryar@live.com

  7. Kashif Jamil says:

    Correct answer is option number 5 (Both 1 and 3)

    email: kjamilpk@hotmail.com

  8. hello sajjad says:

    Answer is :5

    Email: sajjadaslam3@hotmail.com