MCQS ON CONCEPT OF OPEN SOURCE TECHNOLOGIES
1. What is open source software?
2. Which operating system is open source and widely used on servers?
3. What can developers do with open source software’s source code?
4. Which open source programming language is often used for web development?
5. What does “forking” mean in open source projects?
6. Which open source programming language is often used for web development?
7. Which open source browser is developed by the Mozilla Foundation?
8. Which open source tool is used for version control in projects?
9. What does an open source license allow you to do with software?
10. Which open source database is known for its scalability and performance?
11. What’s a benefit of open source software for users?
12. Which open source tool helps in creating virtual machines on a computer?
13. Which open source language is used for automating tasks and scripts?
14. Which license type lets you use, modify, and distribute open source software?
15. Which open source office suite includes Writer, Calc, and Impress?
16. Which open source technology is used for building and managing websites?
17. What can developers collaborate on in open source projects?
18. What is the purpose of version control in open source development?
19. Which open source protocol is used for secure shell access?
20. Which open source browser extension can block ads and improve privacy?
const correctAnswers = { question1: 'c', question2: 'c', question3: 'b', question4: 'c', question5: 'b', question6: 'c', question7: 'd', question8: 'd', question9: 'b', question10: 'b', question11: 'c', question12: 'b', question13: 'b', question14: 'b', question15: 'b', question16: 'b', question17: 'b', question18: 'c', question19: 'c', question20: 'a', };
function checkAnswer(option) { const options = document.querySelectorAll('.option'); options.forEach(opt => { if (opt === option) { opt.classList.add('selected'); if (opt.getAttribute('data-answer') === correctAnswers[option.parentElement.id]) { opt.classList.remove('wrong-answer'); opt.classList.add('correct-answer'); opt.innerHTML += ' ✔'; } else { opt.classList.remove('correct-answer'); opt.classList.add('wrong-answer'); opt.innerHTML += ' ✘'; } } else { opt.classList.remove('selected'); opt.classList.remove('correct-answer'); opt.classList.remove('wrong-answer'); opt.innerHTML = opt.textContent; } }); selectedOption = option; }
function showAnswer(questionId) { const correctOption = document.querySelector(`#${questionId} .option[data-answer="${correctAnswers[questionId]}"]`); markCorrectAnswer(correctOption); }
function markCorrectAnswer(option) { option.classList.remove('wrong-answer'); option.classList.add('correct-answer'); option.innerHTML += ' ✔'; }
function markWrongAnswer(option) { option.classList.remove('correct-answer'); option.classList.add('wrong-answer'); option.innerHTML += ' ✘'; }
function showExplanation(questionId) { const questionNumber = questionId.match(/d+$/)[0]; // Extract the numeric part of the questionId const explanation = document.getElementById(`explanation${questionNumber}`); explanation.style.display = 'block'; }