Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW Exam 1D0-735 Topic 10 Question 54 Discussion

Actual exam question for CIW's 1D0-735 exam
Question #: 54
Topic #: 10
[All 1D0-735 Questions]

Jaime needs to write a script to remove all the non-digit characters from a phone number so that all that remains are the numbers She knows that she will need to use a regular expression to search for non-digit characters and can use a method to remove all the non-digit characters. Which code should she use?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Avery
6 months ago
I personally prefer option B as it is simpler and easier to understand for someone who might not be as familiar with regular expressions.
upvoted 0 times
...
Peggy
6 months ago
That's a good point, Option C does seem more efficient in removing non-digit characters.
upvoted 0 times
...
Amos
6 months ago
I disagree, I believe option C is better as it not only has the regular expression but also a method to remove non-digit characters.
upvoted 0 times
...
Peggy
6 months ago
I think Jaime should use option A because it has the regular expression to search for non-digit characters.
upvoted 0 times
...
Bev
6 months ago
I'm leaning towards Option D because it seems more straightforward to me.
upvoted 0 times
...
Rozella
6 months ago
I also like Option C. It seems like a good choice for this task.
upvoted 0 times
...
Elden
7 months ago
I prefer Option C for the code. It looks like it would do the job efficiently.
upvoted 0 times
...
Bev
7 months ago
I agree, regular expressions are the best way to filter out non-digit characters.
upvoted 0 times
...
Rozella
7 months ago
I think Jaime should use regular expression to remove non-digit characters.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77