exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 163 discussion

Actual exam question from Microsoft's 70-483
Question #: 163
Topic #: 2
[All 70-483 Questions]

You are creating a console application named App1.
App1 will validate user input for order entries.
You are developing the following code segment (line numbers are included for reference only):

You need to complete the code segment.
The solution must ensure that prices are positive and have two decimal places.
Which code should you insert at line 03?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Regex.IsMatch Method (String, String)
Indicates whether the specified regular expression finds a match in the specified input string.

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
rdasan
Highly Voted 4 years, 10 months ago
Answer is D Check this out : https://dotnetfiddle.net/tMFqiJ
upvoted 12 times
...
M62
Most Recent 4 years, 3 months ago
Its D indeed
upvoted 1 times
...
Sujay
5 years ago
B is the correct answer because it consider the negative values
upvoted 1 times
MrAnderson
4 years, 10 months ago
Question says that it must be positive value. So it can not be B. D is correct.
upvoted 15 times
noussa
4 years, 3 months ago
I agree so the only correct answer is D
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago