Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW 1D0-735 Exam - 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:

0/2000 characters
Quinn
4 months ago
How does Option D even remove non-digits?
upvoted 0 times
...
Christiane
4 months ago
Totally agree with B, it's straightforward.
upvoted 0 times
...
Lorriane
4 months ago
Wait, are we sure Option A even works?
upvoted 0 times
...
Ardella
4 months ago
I think Option C is the best choice.
upvoted 0 times
...
Dannette
5 months ago
Option B looks solid for regex!
upvoted 0 times
...
Harris
5 months ago
I’m a bit confused about the syntax in these options. I hope I remember the right regex for digits when I see it!
upvoted 0 times
...
Rebbecca
5 months ago
I feel like Option C looks familiar, but I can't recall if it correctly captures all non-digit characters.
upvoted 0 times
...
Georgene
5 months ago
I remember practicing a similar question where we had to filter out characters. I think it was about using `.replace()` with a regex.
upvoted 0 times
...
Chara
5 months ago
I think we need to use a regex pattern that matches non-digit characters, but I'm not sure which method to use for removal.
upvoted 0 times
...
Nickolas
5 months ago
I think Option C is the way to go here. The regular expression looks clear and easy to understand, and the replace() method should do the job nicely. I'm confident I can implement this solution correctly.
upvoted 0 times
...
Matt
5 months ago
Option D seems like the most verbose solution, so I'm going to rule that one out. I'm leaning towards Option B or C, but I'll need to double-check the documentation to make sure I'm using the right method to remove the non-digit characters.
upvoted 0 times
...
Huey
5 months ago
Hmm, I'm a bit unsure about this one. I'll need to carefully review the regular expression syntax to make sure I understand how it works. Maybe I'll try a few test cases to see which option works best.
upvoted 0 times
...
Joaquin
5 months ago
This looks like a straightforward regular expression problem. I think I'll go with Option B - it looks like the most concise and efficient way to remove the non-digit characters.
upvoted 0 times
...
Kristel
6 months ago
Hmm, I'm a bit confused. Is this a unique value map with multiple fields, or is it a proportional symbol map? I'll have to think this through carefully.
upvoted 0 times
...
Blair
6 months ago
I practiced a question similar to this where we used the docker service update command. It really seems like we should choose parallel upgrades or rolling updates, but I'm leaning towards C for sure.
upvoted 0 times
...
Marguerita
6 months ago
Okay, I think I've got it. The security policy only allows controller web management traffic from the IT subnet, so the issue must be that the guest wireless traffic is being blocked. I'll go with option D.
upvoted 0 times
...
Jacob
6 months ago
I'm a bit confused by the wording of the question. Are informal controls and procedural controls the same thing? I'll have to re-read the question a few times to make sure I understand it correctly.
upvoted 0 times
...
Avery
2 years 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
2 years ago
That's a good point, Option C does seem more efficient in removing non-digit characters.
upvoted 0 times
...
Amos
2 years 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
2 years ago
I think Jaime should use option A because it has the regular expression to search for non-digit characters.
upvoted 0 times
...
Bev
2 years ago
I'm leaning towards Option D because it seems more straightforward to me.
upvoted 0 times
...
Rozella
2 years ago
I also like Option C. It seems like a good choice for this task.
upvoted 0 times
...
Elden
2 years ago
I prefer Option C for the code. It looks like it would do the job efficiently.
upvoted 0 times
...
Bev
2 years ago
I agree, regular expressions are the best way to filter out non-digit characters.
upvoted 0 times
...
Rozella
2 years ago
I think Jaime should use regular expression to remove non-digit characters.
upvoted 0 times
...

Save Cancel