exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 161 discussion

Actual exam question from Microsoft's 70-461
Question #: 161
Topic #: 1
[All 70-461 Questions]

You need to build a table structure for a stored procedure to support data entry from a website form. The website form must meet the following requirements:
✑ Users must validate their age as 18 or older to use the website.
✑ Users who leave the date of birth field blank, or who enter an invalid date, must receive an error message.
Which two actions should you perform? Each correct answer presents part of the solution.

  • A. Add the CHECK constraint to the table structure.
  • B. Add the DATEPART function to the stored procedure.
  • C. Add the DEFAULT constraint to the table structure.
  • D. Add the SYSDATETIMEOFFSET function to the stored procedure.
  • E. Add the ISDATE function to the stored procedure.
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️
SYSDATETIMEOFFSET returns a datetimeoffset(7) value that contains the date and time of the computer on which the instance of SQL Server is running.
ISDATE returns 1 if the expression is a valid date, time, or datetime value; otherwise, 0.
References:
https://msdn.microsoft.com/en-us/library/bb677334.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NIDHAL01
4 years, 11 months ago
THE ANSWER IS A AND E
upvoted 1 times
...
Dadi
5 years, 1 month ago
Isn't it A supposed to be one of the answers. Check constaint for age
upvoted 1 times
Sugar
5 years, 1 month ago
A and E is the answer
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...