1. Please write a method to normalize a string which represents a file path. For the purposes of this question, normalizing means: • all single dot components of the path must be removed. For example, "foo/./bar" should be normalized to "foo/bar". • all double dots components of the path must be removed, along with their parent directory. For example, "foo/bar/../baz" should be normalized to "foo/baz". That's it. Normally, a path normalization algorithm would do a lot of other stuff, but for this question, don't try any other kind of normalization or transformation of the path. As an example, "foo//bar" should be normalized to "foo//bar" (i.e. a no-op). Use any language you feel comfortable in, we prefer Java, but it’s not required. The method should take in a string (or whatever passes for a string in the language of your choice) and return a string representing the normalized path. Please write code that you feel proud of and would check in to source control in a professional environment. 2. Once you have completed the exercise, please create ten (or more!) test cases you would you use to test the method.
Quality Associate Interview Questions
65,664 quality associate interview questions shared by candidates
Can developers do integration testing
Why did I want to leave the last place I worked at ?
Recruiter descibed breiefly about what team requires. Followed by few questions. What do you do in your current position ? How much automation experience/Framework do you have? What is your salary range and your expectation? What do you think of the commute since they are located in saratoga.
How would you test the latest iPhone's new antenna system?
Can you start at 6 p.m. tomorrow then.
Tell me about yourself
Methods for pop-ups.
What is your experience in this field.
What was detailed in the resume
Viewing 511 - 520 interview questions
See Interview Questions for Similar Jobs
Quality AssistantQuality AssuranceQuality TestingQuality Assurance CoordinatorQuality TechPharmaceutical Quality AssuranceQuality Assurance AuditorQcQaQuality ControlQuality Assurance ManagementQuality Assurance SupervisorQuality CoordinatorQuality Control Quality Assurance ManagerQuality Assurance AssociateQuality Control AnalystQuality Control AssociateQuality Assurance Representative