Skills101
← All practice quizzes

Quiz: Test Design Techniques

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Choose test cases like a professional instead of guessing. Use decision tables for business rules, state transition testing for flows like PIN entry, and pairwise testing to cut 18 browser combinations to 9, with runnable Java.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    A rule depends on 3 independent yes/no conditions. How many rules does a full decision table have?

  2. Question 2

    When is a decision table the best technique?

  3. Question 3

    What does this print?

    public class Main {
        static int discount(boolean student, boolean coupon) {
            if (student) return 20;
            if (student && coupon) return 30;
            if (coupon) return 10;
            return 0;
        }
        public static void main(String[] args) {
            System.out.println(discount(true, true) + " " + discount(false, true));
        }
    }
    
  4. Question 4

    In state transition testing, what is an invalid transition test?

  5. Question 5

    What does this print?

    public class Main {
        public static void main(String[] args) {
            int wrong = 0;
            boolean locked = false;
            boolean[] pins = {false, true, false, false, false};
            for (boolean ok : pins) {
                if (locked) continue;
                if (ok) { wrong = 0; } else if (++wrong == 3) { locked = true; }
            }
            System.out.println(wrong + " " + locked);
        }
    }
    
🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →