QA interview questions and answers are completely based on the QA interview I and my friends attended during last years of working experience as Quality Assurance Testers.

Python QA interview question for testers!

Every QA Tester noticed that QA Interview questions become more arduous and toilsome in the last few years. Who would imagine that QA Engineer should know how to program in order to get ahead? Look at most recent job ads for QA Testers and you would observe that more than eighty percents of the ads requested programming skills. Obviously the tester who is solemn about a career in testing would do well to pick up at least one programming language. Therefore, let's return to QA interview questions for one of today’s most popular programming language - Python. I have already covered a tad of Python interview questions, but it was mainly related to presenting Python skills in QA Tester resume. Now the time has come for the coding interview questions and the most simplest query - swap values of two variables! Quite likely the answer would be something like
  • temp = foo
  • foo = bar
  • bar = temp
and this in not a Python way. In this case you could help the interviewee and suggest to swap the values without using a third variable. Most advanced tester could provide the correct answer below, but it is still not a Python way to solve the problem.
  • foo = foo + bar
  • bar = foo - bar
  • foo = foo - bar
The exact answer I am obviously trying to get is
  • (foo, bar) = (bar, foo)
and this would be a great confirmation that QA Tester has the basic understanding of Python, but of course the interview is not over yet. More Python interview question coming in the next few weeks.

No comments:

Common QA engineer interview questions