diff --git a/Aptitute Test Extension/icon.png b/Aptitute Test Extension/icon.png new file mode 100644 index 00000000..a1d3b470 Binary files /dev/null and b/Aptitute Test Extension/icon.png differ diff --git a/Aptitute Test Extension/index.html b/Aptitute Test Extension/index.html new file mode 100644 index 00000000..e1962e09 --- /dev/null +++ b/Aptitute Test Extension/index.html @@ -0,0 +1,90 @@ + + + + + + Apptitute Test + + + +
+

Aptitute Test

+
+
+

1. What is the next number in the series: 2, 6, 12, 20, 30?

+
+
+
+
+
+
+

2. If the sum of three consecutive integers is 51, what is the middle number?

+
+
+
+
+
+
+

3. A man walks 5 km north, then turns east and walks 3 km, then turns north and walks 2 km. How far is he from the starting point?

+
+
+
+
+
+
+

4. If a train travels 60 km in 1 hour, how long will it take to travel 150 km at the same speed?

+
+
+
+
+
+
+

5. A rectangle has a length of 10 cm and a width of 5 cm. What is its area?

+
+
+
+
+
+
+

6. What is the average of the first five prime numbers?

+
+
+
+
+
+
+

7. A shopkeeper buys an article for $50 and sells it for $70. What is the profit percentage?

+
+
+
+
+
+
+

8. If the ratio of boys to girls in a class is 3:2 and there are 30 students, how many girls are there?

+
+
+
+
+
+
+

9. A car travels 150 km in 3 hours. What is its average speed?

+
+
+
+
+
+
+

10. What is the least common multiple (LCM) of 12 and 15?

+
+
+
+
+
+ + +
+
+
+ + + diff --git a/Aptitute Test Extension/manifest.json b/Aptitute Test Extension/manifest.json new file mode 100644 index 00000000..6e4621df --- /dev/null +++ b/Aptitute Test Extension/manifest.json @@ -0,0 +1,16 @@ +{ + "manifest_version": 3, + "name": "Aptitute Test", + "version": "1.0", + "description": "A simple aptitute test extension", + "action": { + "default_popup": "index.html", + "default_icon": "icon.png" + }, + "icons": { + "16": "icon.png", + "48": "icon.png", + "128": "icon.png" + }, + "permissions": [] +} diff --git a/Aptitute Test Extension/script.js b/Aptitute Test Extension/script.js new file mode 100644 index 00000000..aa6391d5 --- /dev/null +++ b/Aptitute Test Extension/script.js @@ -0,0 +1,21 @@ +// Function to handle quiz submission and scoring +function submitQuiz() { + const quizForm = document.getElementById('quiz-form'); // Get the quiz form element + const resultDiv = document.getElementById('result'); // Get the result display element + const correctAnswers = ['c', 'b', 'b', 'c', 'c', 'b', 'd', 'c', 'c', 'c']; // Array of correct answers + let score = 0; // Initialize score + + // Loop through each question + for (let i = 0; i < correctAnswers.length; i++) { + const question = `q${i + 1}`; // Construct the name of each question input + const selectedAnswer = quizForm[question].value; // Get the selected answer + + // Check if the selected answer matches the correct answer + if (selectedAnswer === correctAnswers[i]) { + score++; // Increment score if answer is correct + } + } + + // Display the final score + resultDiv.textContent = `You scored ${score} out of ${correctAnswers.length}!`; +} diff --git a/Aptitute Test Extension/style.css b/Aptitute Test Extension/style.css new file mode 100644 index 00000000..f0ad3440 --- /dev/null +++ b/Aptitute Test Extension/style.css @@ -0,0 +1,88 @@ +/* Global styles */ +body { + font-family: Arial, sans-serif; + background-color: #282c34; + color: #ffffff; + margin: 0; + padding: 0; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; +} + +.quiz-container { + background-color: #3c4043; + padding: 20px; + border-radius: 12px; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); + width: 100%; + max-width: 600px; + height: 80vh; + overflow-y: auto; + box-sizing: border-box; +} + +h1 { + text-align: center; + margin-bottom: 20px; + font-size: 24px; + color: #61dafb; +} + +.question { + margin-bottom: 20px; +} + +.question p { + margin: 0 0 10px; + font-size: 18px; + color: #61dafb; +} + +label { + display: flex; + align-items: center; + margin-bottom: 10px; + padding: 10px; + border: 1px solid #888; + border-radius: 8px; + cursor: pointer; + background-color: #444; + transition: background-color 0.3s, transform 0.3s; +} + +label:hover { + background-color: #555; + transform: scale(1.02); +} + +input[type="radio"] { + margin-right: 10px; +} + +button { + display: block; + width: 100%; + padding: 12px; + background-color: #61dafb; + color: #282c34; + border: none; + border-radius: 8px; + cursor: pointer; + font-size: 16px; + margin-top: 20px; + transition: background-color 0.3s, transform 0.3s; +} + +button:hover { + background-color: #21a1f1; + transform: scale(1.05); +} + +#result { + margin-top: 20px; + font-size: 20px; + text-align: center; + color: #61dafb; +}