Questions d'entretiens - Senior software development engineer in test
286
Questions d'entretien pour Senior Software Development Engineer In Test partagées par les candidatsPrincipales questions d'entretien

Given a string, konylabsinterview write a program to return bool if a given pattern matches.pattern example - kon*lab*terview*
5 réponses↳
public class Test{ public static void main(String args[]){ String Str = new String("konylabsinterview"); System.out.print("Return Value :" ); System.out.println(Str.matches("kon(.*)lab(.*)terview(.*)")); } } Moins
↳
Use KMP
↳
Hi, Please see if you can provide the details of the question posed in the context of binary search tree. Thanks. Moins

Write a program to remove vowels from a given string
2 réponses↳
class Vowels{ public static void main(String args[]){ String input = "abcdefgh"; String vowels = "aeiou"; String output = ""; for(int i=0;i Moins
↳
write a program to define whether an array is sorted or not

How do you check whether String contains any duplicate characters?
2 réponses↳
I answered him by saying Get a byte array and Get each character of String, Convert it to ASCII number and mark the position of byte array as that of ASCII number Moins
↳
var inputValue = "aabcdefgghi" ; var result = OnlyOnceCheck(inputValue); Console.WriteLine(result.ToString()); public static bool OnlyOnceCheck(string input) { return input.GroupBy(x => x).Any(g => g.Count() > 1); } Moins

General questions on based on your experience. Coding challenge about sorting, string processing.
2 réponses↳
I was able to answer pretty much all.
↳
In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the Shape Security Senior/Staff/Principal Software Development Engineer In Test experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews Moins

finad all plaindromes ina string.
2 réponses↳
vector findAllPalindrome ( string str) { vector stack; vector result; string buff = ""; int len = str.length(); if (len == 0) return result; stack.push_back(str[0]); for (int i = 1; i Moins
↳
i couldn't really come up with decent code for this, and i think this was the turning point in the interview which otherwise was going alright. Moins

String manipulation related questions were asked
2 réponses↳
You can solve leet code medium level questions
↳
What IDE is used for coding ? or is it whiteboard kind?

How would you test a coke can?
1 réponses↳
4) How would you test a Coke Can? a) Is this US can? Different countries might have different sized or types of Can. Let’s assume US. b) What kind of Coke is it – regular, Diet, Coke Zero or some new thing that Coca cola is coming out with? Assume – Diet. a. Test the opening of the can. i. Does opening the can too fast or applying above avg pressure snap & break the open-lever (for lack of a better term)? ii. How much pressure is acceptable before it snaps. Can we measure & hence test that? iii. Shake the can a little bit & open – does the gas make the liquid jump out? If not that is bad because it means it didn’t have enough gas? iv. Open it normally & make sure it doesn’t rise out too fast. b. Taste i. Does the drink taste crisp & as expected – when its expiration has not passed. ii. How does it taste when the can is expired? Should taste at least slightly different and worse than the regular can that’s not expired, otherwise expiration doesn’t mean much. iii. What does it mean to have the can expired? Are there health consequences? If so are they listed on the can in a way that grabs consumer attention? iv. What happens if the Can was opened a few days ago & left unfinished in the fridge? Outside? Obviously it’d taste not so crisp, but health consequences? v. What happens if the Can was in the trunk of a car in extreme winter conditions – minus 10 deg weather? What happens subsequently on trying to open the can? Drink frozen completely? vi. Test case for extreme hot weather … Health consequences? vii. Since this is diet coke, make sure that this tastes different from other kinds – regular & Zero & especially compared to regular viii. Compare test with diet varieties of competitors & offer any suggestions for improvements ix. Try & mix the drink with different types of alcohols & see what type does it taste great with. x. c. Misc i. What happens if the Can falls from your hands & on your toes for eg. Is there a risk of serious injury? ii. How easy is it to Pour the drink from the Can in a glass for eg. d. Branding / Can Design i. Is the design visually appealing in a way that when displayed with other competitors, it’s attractive for a consumer to buy this as the can looks very attractive (tourist scenario for eg.). ii. Does the Text make it clear & advertise the fact that it is Diet & No calories – effectively for people who are weight conscious? iii. Does the Text appeal to weight conscious people, by marketing the fact that it tastes equally good as the regular variety or something along the lines? iv. Are there ingredients, risks & other things required by law – listed effectively? Moins

The problem statement for the other coding interview was interesting since there was some level of detail but still had some ambiguity.
1 réponses↳
Wrote code on white board. I ended up asking lots of questions to clarify inputs and outputs with examples, and we collectively brainstormed how the solution would work out. Moins