Web programming MCQs for placement and interview - Set 2
1.) Using _______ statement is how you test for a specific condition.a.) Select
b.) If
c.) Switch
d.) For
View Answer / Hide Answer3.) How to create a Date object in JavaScript?a.) dateObjectName = new Date([parameters])
b.) dateObjectName.new Date([parameters])
c.) dateObjectName := new Date([parameters])
d.) dateObjectName Date([parameters])
View Answer / Hide AnswerANSWER: a.) dateObjectName = new Date([parameters])
4.) The _______ method of an Array object adds and/or removes elements from an array.a.) Reverse
b.) Shift
c.) Slice
d.) Splice
View Answer / Hide Answer5.) To set up the window to capture all Click events, we use which of the following statement?a.) window.captureEvents(Event.CLICK);
b.) window.handleEvents (Event.CLICK);
c.) window.routeEvents(Event.CLICK );
d.) window.raiseEvents(Event.CLICK );
View Answer / Hide AnswerANSWER: a.) window.captureEvents(Event.CLICK);
6.) Who is making the Web standards?a.) Mozilla
b.) Microsoft
c.) The World Wide Web Consortium
d.) NVDIA
View Answer / Hide AnswerANSWER: c.) The World Wide Web Consortium
7.) Choose the correct HTML tag for the largest headinga.) <h6>
b.) <heading>
c.) <head>
d.) <h1>
View Answer / Hide Answer8.) What is the correct HTML tag for inserting a line break?a.) <br />
b.) <break />
c.) <lb />
d.) <nbsp>
View Answer / Hide Answer9.) Can a data cell contain images?a.) yes
b.)no
View Answer / Hide Answer10.) How do I add scrolling text to my page?a.) <scroll>
b.) <marquee>
c.) <ciruler>
d.) <tab>
View Answer / Hide Answer