Quality Assurance Internship Interview Questions | Glassdoor

Quality Assurance Internship Interview Questions

6

Quality assurance internship interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular Date

If we have a string of 7 characters and we can put from 'a' to 'z' in any of these places, write a program which its output is from 'aaaaaaa' to 'zzzzzzz'.

1 Answer

Using recursion. Maybe the first thought in our mind is for loop but after second thought I believe is most suitable for this question. Following is my program using C++. void Str(int str_size, int index, char *str) { if(str_size == index) { str[index] = '\0'; cout<<str<<endl; return; } for(char c = 'a'; c <= 'z'; ++c) { str[index] = c; Str(str_size, index + 1, str); } }

What is your definition of a great leader? What vegetable would you be and why?

16 of 6 Interview Questions