Skip to the content.

Java Premier League Quiz

import java.util.Scanner;
public class PremierLeagueQuiz {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int score = 0;
        System.out.println("Welcome to the Premier League Quiz!");
        System.out.println("Test your knowledge of Premier League football!");
        // Question 1
        System.out.println("\nQuestion 1: Which club has won the most Premier League titles?");
        System.out.println("1. Manchester City\n2. Liverpool\n3. Manchester United\n4. Chelsea");
        int answer1 = input.nextInt();
        if (answer1 == 3) {
            score++;
            System.out.println("Correct! Manchester United has won the most Premier League titles.");
        } else {
            System.out.println("Wrong. The correct answer is Manchester United.");
        }
        // Question 2
        System.out.println("\nQuestion 2: Who holds the record for the most goals scored in a single Premier League season?");
        System.out.println("1. Mohamed Salah\n2. Erling Haaland\n3. Thierry Henry\n4. Harry Kane");
        int answer2 = input.nextInt();
        if (answer2 == 2) {
            score++;
            System.out.println("Correct! Erling Haaland holds the record.");
        } else {
            System.out.println("Wrong. The correct answer is Erling Haaland.");
        }
        // Question 3
        System.out.println("\nQuestion 3: Which manager has won the most Premier League Manager of the Month awards?");
        System.out.println("1. Arsène Wenger\n2. José Mourinho\n3. Pep Guardiola\n4. Sir Alex Ferguson");
        int answer3 = input.nextInt();
        if (answer3 == 4) {
            score++;
            System.out.println("Correct! Sir Alex Ferguson has won the most Manager of the Month awards.");
        } else {
            System.out.println("Wrong. The correct answer is Sir Alex Ferguson.");
        }
        // Question 4
        System.out.println("\nQuestion 4: Which team went unbeaten in the 2003-04 Premier League season?");
        System.out.println("1. Manchester United\n2. Arsenal\n3. Chelsea\n4. Liverpool");
        int answer4 = input.nextInt();
        if (answer4 == 2) {
            score++;
            System.out.println("Correct! Arsenal went unbeaten and were called 'The Invincibles'.");
        } else {
            System.out.println("Wrong. The correct answer is Arsenal.");
        }
        // Final Score
        System.out.println("\nYou scored " + score + " out of 4.");
        if (score == 4) {
            System.out.println("Excellent! You're a true Premier League expert!");
        } else if (score >= 2) {
            System.out.println("Good job! You know your Premier League football.");
        } else {
            System.out.println("Better luck next time. Keep watching the Premier League!");
        }
        input.close();
    }
}
PremierLeagueQuiz.main(null);
Welcome to the Premier League Quiz!
Test your knowledge of Premier League football!

Question 1: Which club has won the most Premier League titles?
1. Manchester City
2. Liverpool
3. Manchester United
4. Chelsea
Correct! Manchester United has won the most Premier League titles.

Question 2: Who holds the record for the most goals scored in a single Premier League season?
1. Mohamed Salah
2. Erling Haaland
3. Thierry Henry
4. Harry Kane
Correct! Erling Haaland holds the record.

Question 3: Which manager has won the most Premier League Manager of the Month awards?
1. Arsène Wenger
2. José Mourinho
3. Pep Guardiola
4. Sir Alex Ferguson
Correct! Sir Alex Ferguson has won the most Manager of the Month awards.

Question 4: Which team went unbeaten in the 2003-04 Premier League season?
1. Manchester United
2. Arsenal
3. Chelsea
4. Liverpool
Correct! Arsenal went unbeaten and were called 'The Invincibles'.

You scored 4 out of 4.
Excellent! You're a true Premier League expert!