You are on page 1of 4
Bahir Dar University Bahir Dar Institute of Technology Faculty of Computing Time allowed 2:00 Max Weight; 40% Name Id Section In the Exam Hall You are not allowed to leave the exam rooms in the first thirty minutes. Remember that talking is not allowed at any time in the exam hall and room. © Make sure your mobile phone is switched off © Do not tum over exam papers until told to do so. Stop writing immediately when the invigilator says itis the end of the exam. Remember to take all your belongings with you and leave the exam hall quickly and qi ide which HTML element do we put the JavaScript? nr CL ssn B. D. ee 2, What is the correct HTML for referring to an external style sheet? A. “Stylesheet>mystyle.css @ “link rel="stylesheet" type="text/css" href"mystyle.css"> th ‘shref reF"stylesheet" type= Yext/script” ink nystyle.css"> D. 3. Which one of the following is the correct syntax of FOR loop? A. for(initializing;increament;test ) EP br(test;nitializing;test) B. for(initializing test;increament) D. Jor(initializing;test;increament) a 4. Which is the correct CSS syntax? A. {hl:color=black;} aA chy {color: black;} B. hl {colorblack;} D. {h;colorblack;} a You work on JavaScript project. Which one of the following is correctly describe relationship between “JavaScript” and “object”? A. JavaScript is object-oriented C. JavaScript is object. B. JavaScript is object-based D. JavaScript has no relationship between oe @ All are answers except D F. All i : a (6, Mow do you prompt users with message and at the same time requesting users input in JavaScript? A.) prompt) C. confirm) Bowe D. popup) 5. What is the correct syntax for referring to an external script called " A. - sre="extemal js"> A. document.getElementByName("final") B. document. getElementByTagName("final") (GC Aocument, getilementByld("final") . document, getElementByld("p") = PF. None 9. Suppose your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation? : A. To validate user input _ B, To reduce network traffic load C. To work within server D. All A&B 10. How do you add a background color for all elements? A. hl.all {background-color:blue;} B. C21 {background-color:blue;} D. None allhl {background-color:blue; Il. Discussions in Internet programming (2pts). 11. What is the importance of DOM in JavaScript? CONC ae 12. List and explain JavaScript built-in methods of doing simple user oo 13. Explain CSS syntax and show basic rule sets with example. 4 sewey See > =< 14. What is the benefits of CSS in web development? 15, What is the relationship between HTML, CSS and JavaScript?

You might also like