Writen Test For job preparation by infinite ilm | Test no 6

Islamic Studies (Islamiyat) MCQ Test
1. How many pillars of Islam are there?
2. Which Surah is called the “Heart of the Quran”?
3. How many times a day are Muslims required to pray?
4. Which angel is responsible for delivering revelations to prophets?
5. In which month is fasting obligatory for Muslims?
6. What is the first month of the Islamic calendar?
7. Which prophet is called “Khalilullah” (Friend of Allah)?
8. What is the meaning of “Tawheed”?
9. Which prayer is offered at the time of Eid?
10. What is the Islamic term for the annual pilgrimage to Makkah?
11. Which Surah begins with “Alhamdulillah”?
12. What is the minimum amount for Zakat in terms of gold?
13. How many times is the name of Prophet Muhammad (PBUH) mentioned in the Quran?
14. Which companion of the Prophet (PBUH) was known as “As-Siddiq”?
15. What is the meaning of “Sunnah”?
16. Which battle is known as the “Battle of the Trench”?
17. What is the name of the angel who will blow the trumpet on Judgment Day?
18. How many Rakat are there in the Fajr prayer?
19. Which prophet is known for his patience (Sabr)?
20. What is the first revelation of the Quran?
Your Score: 0/20
.islamiyat-quiz {
max-width: 750px;
margin: 0 auto;
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;
padding: 25px;
background: #fff;
border-radius: 10px;
box-shadow: 0 0 25px rgba(0,0,0,0.1);
}
.islamiyat-quiz h2 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
padding-bottom: 15px;
border-bottom: 2px solid #27ae60;
}
.quiz-question {
margin-bottom: 25px;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #27ae60;
transition: all 0.3s ease;
}
.quiz-question:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}
.quiz-question p {
font-weight: 600;
margin-bottom: 15px;
color: #2c3e50;
font-size: 16px;
}
.quiz-question label {
display: block;
padding: 12px 15px;
margin: 8px 0;
background: #fff;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid #ddd;
font-size: 15px;
}
.quiz-question label:hover {
background: #e8f8f0;
border-color: #27ae60;
}
.quiz-question input[type=”radio”] {
margin-right: 12px;
transform: scale(1.1);
}
.quiz-actions {
text-align: center;
margin: 35px 0;
}
.check-answers {
background: #27ae60;
color: white;
border: none;
padding: 14px 35px;
font-size: 17px;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}
.check-answers:hover {
background: #219653;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(39, 174, 96, 0.5);
}
.check-answers:active {
transform: translateY(0);
}
.quiz-results {
display: none;
margin-top: 35px;
padding: 25px;
background: #f8f9fa;
border-radius: 8px;
border-top: 4px solid #e74c3c;
}
.quiz-results h3 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 20px;
}
.quiz-results .score {
color: #e74c3c;
font-size: 28px;
}
.answer-key {
background: #fff;
padding: 20px;
border-radius: 6px;
border: 1px solid #eee;
}
.answer-key h4 {
color: #2c3e50;
margin-top: 0;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.answer-key p {
padding: 10px 0;
margin: 0;
border-bottom: 1px dashed #eee;
font-size: 15px;
}
.answer-key p:last-child {
border-bottom: none;
}
/* Answer feedback colors */
.correct-answer {
color: #27ae60;
font-weight: bold;
background-color: #e8f8f0;
}
.wrong-answer {
color: #e74c3c;
background-color: #fdedec;
}
.show-answer {
color: #3498db;
font-weight: bold;
background-color: #ebf5fb;
}
@media (max-width: 600px) {
.islamiyat-quiz {
padding: 15px;
}
.quiz-question {
padding: 15px;
}
}
document.addEventListener(‘DOMContentLoaded’, function() {
const correctAnswers = {
q1: {value: “b”, text: “5”},
q2: {value: “b”, text: “Surah Yaseen”},
q3: {value: “c”, text: “5”},
q4: {value: “c”, text: “Angel Jibreel”},
q5: {value: “d”, text: “Ramadan”},
q6: {value: “c”, text: “Muharram”},
q7: {value: “b”, text: “Prophet Ibrahim (AS)”},
q8: {value: “b”, text: “Oneness of Allah”},
q9: {value: “c”, text: “Salat-ul-Eid”},
q10: {value: “b”, text: “Hajj”},
q11: {value: “b”, text: “Surah Al-Fatiha”},
q12: {value: “c”, text: “87.48 grams”},
q13: {value: “b”, text: “4”},
q14: {value: “b”, text: “Abu Bakr”},
q15: {value: “b”, text: “Teachings and practices of Prophet Muhammad (PBUH)”},
q16: {value: “c”, text: “Battle of Khandaq”},
q17: {value: “c”, text: “Israfil (AS)”},
q18: {value: “a”, text: “2”},
q19: {value: “a”, text: “Prophet Ayub (AS)”},
q20: {value: “c”, text: “Surah Al-Alaq (verses 1-5)”}
};
document.querySelector(‘.check-answers’).addEventListener(‘click’, function() {
let score = 0;
let answerKeyHTML = ‘
Answer Key:
‘;
for(let i = 1; i {
label.classList.remove(‘correct-answer’, ‘wrong-answer’, ‘show-answer’);
});
if(selectedOption) {
const userAnswer = selectedOption.value;
const correctAnswer = correctAnswers[questionName].value;
if(userAnswer === correctAnswer) {
score++;
selectedOption.parentElement.classList.add(‘correct-answer’);
} else {
selectedOption.parentElement.classList.add(‘wrong-answer’);
}
}
// Highlight correct answer
const correctOption = questionElement.querySelector(`input[value=”${correctAnswers[questionName].value}”]`);
correctOption.parentElement.classList.add(‘show-answer’);
// Add to answer key
answerKeyHTML += `
Q${i}:
(${correctAnswers[questionName].value}) ${correctAnswers[questionName].text}
`;
}
// Show results
document.querySelector(‘.score’).textContent = score;
document.querySelector(‘.answer-key’).innerHTML = answerKeyHTML;
document.querySelector(‘.quiz-results’).style.display = ‘block’;
// Scroll to results
document.querySelector(‘.quiz-results’).scrollIntoView({ behavior: ‘smooth’ });
});
});
