Software Engineer In Test Interview Questions

11,948 software engineer in test interview questions shared by candidates

There are 25 seats in a row at a bar. Customers come in one at a time, and each customer sits as far away as possible from all other customers. No customer will sit adjacent to any other. Where should you put the first customer for the maximum number of customers?
avatar

Software Test Engineer

Interviewed at Laserfiche

3
Mar 4, 2010

There are 25 seats in a row at a bar. Customers come in one at a time, and each customer sits as far away as possible from all other customers. No customer will sit adjacent to any other. Where should you put the first customer for the maximum number of customers?

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.
Jan 26, 2012

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.

Was interviewed by a Software engineer. It was basically a "highest sum in an array" question disguised in an Oscar health context. Given an array of insulin readings for any given period. Write a function that will return true if an insulin reading is below 10. Array = [90, 92, 93, 91, 104, 102, 102, 106] The input was: Console.log(insulinReadingFunction(Array, 10) == True);
avatar

Software Development Engineer In Test (SDET)

Interviewed at Oscar Health

3
Jul 24, 2022

Was interviewed by a Software engineer. It was basically a "highest sum in an array" question disguised in an Oscar health context. Given an array of insulin readings for any given period. Write a function that will return true if an insulin reading is below 10. Array = [90, 92, 93, 91, 104, 102, 102, 106] The input was: Console.log(insulinReadingFunction(Array, 10) == True);

Viewing 201 - 210 interview questions

Glassdoor has 11,948 interview questions and reports from Software engineer in test interviews. Prepare for your interview. Get hired. Love your job.