Tag Archives: Interview - Page 2

Java Singleton Cache Example

Problem Given the Java cache interface below, write a singleton class that implements the interface so that no warnings are generated without using @SuppressWarnings annotations //Generic Cache Interface public interface Cache<K, V> { public void put(K key, V value); public V get(K …

Read more »

Python Unittest Example

Some time ago, I applied for a software QA position and was given this assignment: Problem Given 2 input files with rows in the format: <account ID><billing ID><Sign-up Date in MM-DD-YYYY format> Write a python script to print: All accounts …

Read more »

How to Test a Vending Machine Interview Question

Question How do you test a vending machine Answer One time I was asked this question over the phone. In a site interview I was asked how to test a calculator.  In another site interview I was also asked how …

Read more »

Database Relationships Explained

Question I was asked this question in an interview. How do you implement one-to-one, one-to-many, and many-to-many relationships while designing tables Answer one-one relationship is most likely forced by business rules but it does not flow naturally from the data. …

Read more »

Feature Based Testing

Question I was asked this question during an interview. Say that your product has 10 features but you only have time to test 5 of them. How do you decide which ones to test. Answer There is no single correct …

Read more »

Test Plan Example

Question I was asked this question during an interview: I want you to prepare for testing a project. How do you do that. Answer There is no single correct answer for this question. This is a general question, my answer …

Read more »

Good Source Code

Question I was asked this question in an interview: How would you define good or excellent code? Answer Here is what I came with. I guess everyone can answer it using his own words. Excellent code is working code. I …

Read more »

Page 2 of 3123