Ta Wallace Group

Leadership Style Assessment

Leadership Style Assessment

Leadership Style Quiz Leadership Style Quiz Discover whether your leadership style leans more towards Transactional or Transformational approaches. This quiz will help you understand your tendencies, strengths, and areas for growth. Start Quiz Question 1 of 10 Previous Next Submit Your Leadership Profile Retake Quiz // DOM elements const welcomeSection = document.getElementById(‘welcome-section’); const quizSection = document.getElementById(‘quiz-section’); const resultsSection = document.getElementById(‘results-section’); const startQuizButton = document.getElementById(‘start-quiz-button’); const questionText = document.getElementById(‘question-text’); const optionsContainer = document.getElementById(‘options-container’); const prevButton = document.getElementById(‘prev-button’); const nextButton = document.getElementById(‘next-button’); const submitButton = document.getElementById(‘submit-button’); const progressBar = document.getElementById(‘progress-bar’); const progressText = document.getElementById(‘progress-text’); const resultSummary = document.getElementById(‘result-summary’); const resultDetails = document.getElementById(‘result-details’); const retakeQuizButton = document.getElementById(‘retake-quiz-button’); // Quiz state variables let currentQuestionIndex = 0; // Stores the index of the selected option for each question let userSelections = new Array(questions.length).fill(null); // Stores the score for the selected option for each question let userScores = new Array(questions.length).fill(0); /** * Initializes the quiz by hiding the welcome section and showing the quiz section. * Renders the first question. */ function startQuiz() { welcomeSection.classList.add(‘hidden’); quizSection.classList.remove(‘hidden’); currentQuestionIndex = 0; userSelections.fill(null); // Reset selections userScores.fill(0); // Reset scores renderQuestion(); updateNavigationButtons(); updateProgressBar(); } /** * Renders the current question and its options to the DOM. * Clears previous options and creates new buttons for the current question. */ function renderQuestion() { const question = questions[currentQuestionIndex]; questionText.textContent = question.question; optionsContainer.innerHTML = ”; // Clear previous options question.options.forEach((option, index) => { const button = document.createElement(‘button’); button.classList.add(‘option-button’); button.textContent = option; button.dataset.index = index; // Store option index button.addEventListener(‘click’, () => selectOption(index)); // If this question was previously answered, mark the selected option if (userSelections[currentQuestionIndex] === index) { button.classList.add(‘selected’); } optionsContainer.appendChild(button); }); updateProgressBar(); updateNavigationButtons(); } /** * Handles the selection of an answer option. * Stores the user’s selection and score for the current question. * @param {number} selectedOptionIndex – The index of the option selected by the user. */ function selectOption(selectedOptionIndex) { // Remove ‘selected’ class from all options for the current question Array.from(optionsContainer.children).forEach(button => { button.classList.remove(‘selected’); }); // Add ‘selected’ class to the clicked button const selectedButton = optionsContainer.children[selectedOptionIndex]; if (selectedButton) { selectedButton.classList.add(‘selected’); } // Store the selection and score userSelections[currentQuestionIndex] = selectedOptionIndex; userScores[currentQuestionIndex] = questions[currentQuestionIndex].scores[selectedOptionIndex]; // Enable the next/submit button if an option is selected if (currentQuestionIndex 0) { currentQuestionIndex–; renderQuestion(); } updateNavigationButtons(); updateProgressBar(); } /** * Updates the state of the navigation buttons (Previous, Next, Submit) * based on the current question index and whether an option is selected. */ function updateNavigationButtons() { prevButton.disabled = currentQuestionIndex === 0; // Determine if Next or Submit button should be shown and enabled if (currentQuestionIndex === questions.length – 1) { nextButton.classList.add(‘hidden’); submitButton.classList.remove(‘hidden’); // Enable submit only if an option is selected for the last question submitButton.disabled = userSelections[currentQuestionIndex] === null; } else { nextButton.classList.remove(‘hidden’); submitButton.classList.add(‘hidden’); // Enable next only if an option is selected for the current question nextButton.disabled = userSelections[currentQuestionIndex] === null; } } /** * Updates the progress bar and text to reflect the current quiz progress. */ function updateProgressBar() { const progress = ((currentQuestionIndex + 1) / questions.length) * 100; progressBar.style.width = `${progress}%`; progressText.textContent = `Question ${currentQuestionIndex + 1} of ${questions.length}`; } /** * Calculates the total score and displays the results and personalized feedback. */ function submitQuiz() { // Ensure an option is selected for the last question before submitting if (userSelections[currentQuestionIndex] === null) { console.log(“Please select an option for the last question before submitting.”); return; } quizSection.classList.add(‘hidden’); resultsSection.classList.remove(‘hidden’); const totalScore = userScores.reduce((sum, score) => sum + score, 0); const maxPossibleScore = questions.length * 5; // Assuming max score per question is 5 const minPossibleScore = questions.length * 0; // Assuming min score per question is 0 (or lowest score in options) // Normalize score to a 0-100 scale for easier interpretation const normalizedScore = ((totalScore – minPossibleScore) / (maxPossibleScore – minPossibleScore)) * 100; let leadershipStyle = ”; let feedback = ”; let tips = ”; if (normalizedScore >= 75) { leadershipStyle = “Predominantly Transformational Leader”; feedback = ` You exhibit strong characteristics of a Transformational Leader. You are likely highly inspiring, visionary, and focused on empowering your team to achieve their full potential. You motivate through shared purpose and personal growth, rather than just rewards or punishments. Key Strengths: Inspiring and visionary Empowers and develops team members Fosters innovation and creativity Builds strong trust and rapport `; tips = ` Actionable Tips for Growth: Read: “Good to Great” by Jim Collins, “Start With Why” by Simon Sinek. Course: Look for advanced leadership development programs focusing on strategic thinking and organizational change. Exercise: Practice active listening and empathy daily. Seek out opportunities to mentor others and delegate more complex tasks to foster their growth. Balance: While inspiring, remember the importance of clear processes and accountability, especially in routine tasks. `; } else if (normalizedScore >= 40) { leadershipStyle = “Balanced Leader with Transformational Tendencies”; feedback = ` You demonstrate a balanced approach to leadership, often leveraging both transformational and transactional elements. You likely inspire your team while also ensuring clear expectations and accountability are met. This adaptability can be a significant strength. Key Strengths: Adaptable and flexible Combines vision with clear execution Effective in diverse situations Good communicator of both vision and tasks `; tips = ` Actionable Tips for Growth: Read: “The 7 Habits of Highly Effective People” by Stephen Covey, “Dare to Lead” by Brené Brown. Course: Explore courses on situational leadership or emotional intelligence to further refine your adaptable style. Exercise: Deliberately practice delegating more decision-making authority to your team. Regularly solicit feedback on your leadership style from your team. Enhance: Focus on strengthening your ability to articulate a compelling vision and inspire collective action. `; } else { leadershipStyle = “Predominantly Transactional Leader”; feedback = ` Your leadership style leans more towards Transactional Leadership. You are likely highly organized, focused on clear objectives, rules, and performance metrics. You excel at maintaining order and ensuring tasks are completed efficiently through systems of rewards and punishments. Key Strengths: Highly organized and efficient Clear expectations and accountability Effective in stable environments Ensures compliance and consistency