exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 44 discussion

Actual exam question from Microsoft's 70-483
Question #: 44
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: C 🗳️
Regex.IsMatch Method (String, String)
Indicates whether the specified regular expression finds a match in the specified input string.
Syntax:
public static bool IsMatch(
string input,
string pattern
)

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
IF_Elias
Highly Voted 5 years, 10 months ago
C. B matches negative prices too.
upvoted 22 times
...
veni
Highly Voted 5 years, 4 months ago
C matches the syntax
upvoted 9 times
...
noussa
Most Recent 4 years, 5 months ago
C is the answer
upvoted 2 times
...
hseagraves
4 years, 5 months ago
Just tested it. B returns True if the price is negative and you can't have negative prices. Correct answer is C.
upvoted 3 times
...
JorgeGris
4 years, 6 months ago
Option C is correct, test: https://dotnetfiddle.net/ZY41yM
upvoted 4 times
...
BurgSharp
4 years, 12 months ago
B is wrong, it matches negative prices. Correct is C.
upvoted 7 times
...
Sujay
5 years, 1 month ago
B is the correct answer
upvoted 2 times
thiemamd
4 years, 11 months ago
Nop. C is correct. http://regexstorm.net/tester
upvoted 5 times
...
...
supersunny
5 years, 11 months ago
B matches the syntax.
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 ...