History Quiz
Test Exams
Question of
Good Try!
You Got out of answers correct!
That’s
const options=document.querySelector(".options").children; const answerTrackerContainer=document.querySelector(".answers-tracker"); const questionNumberSpan=document.querySelector(".question-num-value"); const totalQuestionSpan=document.querySelector(".total-question"); const correctAnswerSpan=document.querySelector(".correct-answers"); const totalQuestionSpan2=document.querySelector(".total-question2"); const percentage=document.querySelector(".percentage"); const question=document.querySelector(".question"); const op1=document.querySelector(".option1"); const op2=document.querySelector(".option2"); const op3=document.querySelector(".option3"); const op4=document.querySelector(".option4"); let questionIndex; let index=0; let myArray=[]; let myArr=[]; let score=0;
// questions and options and answers
const questions=[ { q:'Who is the father of Computers?', options:['A. James Gosling','B.Charles Babbage ','C.Bjarne Stroustrup ','D.Dennis Ritchie '], answer:2 }, { q:'What is the full form of CPU?', options:['A. Computer Principle Unit','B. Control Processing Unit','C.Central Processing Unit ','D.Control Processing Unit '], answer:3 }, { q:'Which of the following language does the computer understand?', options:['A.Computer understands only BASIC ','B.Computer understands only Assembly Language ','C. Computer understands only C Language','D. Computer understands only Binary Language'], answer:4 }, { q:'Which of the following is the brain of the computer?', options:['A.Central Processing Unit ','B.Arithmetic and Logic unit ','C.Control unit ','D. Memory'], answer:1 }, { q:'Which of the following is not a characteristic of a computer?', options:['A. Diligence','B.Versatility ','C.I.Q ','D.Accuracy '], answer:3 }, { q:'Which of the following is the smallest unit of data in a computer?', options:['A.Byte ','B.Bit ','C.Kb ','D.Nibble '], answer:2 }, { q:'Which of the following devices provides the communication between a computer and the outer world?', options:['A.Compact ','B.Drivers ','C.I/O ','D.storage'], answer:3 }, { q:'Which of the following is the device used for converting maps, pictures, and drawings into digital form for storage in computers?', options:['A. Scanner','B. MICR','C.Digitizer ','D.Image scanner '], answer:3 }, { q:'The term ‘Computer’ is derived from__________?', options:['A.Latin ','B. Greek','C.French ','D.Italic '], answer:1 }, { q:'Who is the father of Internet ?', options:['A.Vint Cerf ','B.Martin cooper ','C.Denis Riche ','D. Chares Babbage'], answer:1 }, { q:'1 Gigabyte is equal to ____________?', options:['A.1000 MB ','B.1024 MB ','C.1000 Kb ','D.1024kb '], answer:2 }, { q:'VGA is____________?', options:['A. Volatile Graphics Array','B.Video Graphics Adapter ','C.Visual Graphics Array ','D.Video Graphics Array '], answer:4 }, { q:'WAN stands for_____________?', options:['A.Wireless Area Network ','B.Wide Array Net ','C.Wide Area Network ','D.Wap area network '], answer:3 }, { q:'UNIVAC is___________?', options:['A. Universal Array Computer','B. Unique Automatic Computer','C.Universal Automatic Computer ','D.Unvalued Automatic Computer '], answer:3 }, { q:'What is embedded system?', options:['A.The computer which is the part of a larger system or machine ','B.The computer and software system that control the machine ','C.The programme which arrives by being wrapped in box. ','D.The programme which is the permanent part of the computer '], answer:1 }, { q:'The word DMA stands for', options:['A. Direct Memory Allocation','B. Direct Module Access','C. Direct Memory Access','D.Distinct Memory Access '], answer:3 }, { q:'ASCII stands for__________?', options:['A. American Standard Case for Institutional Interchange','B.American Stable Code for International Interchange ','C.American Standard Code for Interchange Information ','D.American Standard Code for Information Interchange '], answer:1 }, { q:'IBM 1401 is_________?', options:['A.First Generation Computer ','B. second Generation Computer','C. Third Generation Computer','D.Fourth Generation Computer '], answer:2 }, { q:'Chief component of first generation computer was__________?', options:['A. Integrated Circuits','B. Vaccum Tube','C.Transistors ','D. Artificial intelligence'], answer:2 }, { q:'A self replicating program, similar to a virus is__________?', options:['A.Bug ','B. vice','C.lice ','D. worm'], answer:4 }, { q:'BIOS stands for__________?', options:['A.basic input off system ','B.basic input output system ','C.binary input output system ','D.Bais Input output system '], answer:2 }, { q:'Father of “C‘ programming language?', options:['A. Bill Gates ','B.Thomas Kurtz ','C. Dennis Ritchie','D.Prof John Keenly '], answer:3 }, { q:'What is the other name for programmed chip?', options:['A.RAM ','B.ROM ','C.PROM ','D. DRAM'], answer:2 }, { q:'___________Store data or information temporarily and pass it on as directed by the control unit?', options:['A.Address ','B. Number','C.Register ','D. Memory'], answer:3 }, { q:'A modem is connected to_____________?', options:['A.Printer ','B. Telephone line','C.Monitor ','D. keyboard'], answer:2 }
]
// set questions and options and question number totalQuestionSpan.innerHTML=questions.length; function load(){ questionNumberSpan.innerHTML=index+1; question.innerHTML=questions[questionIndex].q; op1.innerHTML=questions[questionIndex].options[0]; op2.innerHTML=questions[questionIndex].options[1]; op3.innerHTML=questions[questionIndex].options[2]; op4.innerHTML=questions[questionIndex].options[3]; index++; }
function check(element){ if(element.id==questions[questionIndex].answer){ element.classList.add("correct"); updateAnswerTracker("correct") score++; console.log("score:"+score) } else{ element.classList.add("wrong"); updateAnswerTracker("wrong")
} disabledOptions() }
function disabledOptions(){
for(let i=0; i