Web programming MCQs for placement and interview - Set 2

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 Answer

ANSWER: b.) If




3.) 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 Answer

ANSWER: 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 Answer

ANSWER: d.) Splice




5.) 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 Answer

ANSWER: 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 Answer

ANSWER: c.) The World Wide Web Consortium




7.) Choose the correct HTML tag for the largest heading
a.) <h6>
b.) <heading>
c.) <head>
d.) <h1>
View Answer / Hide Answer

ANSWER: d.) <h1>




8.) What is the correct HTML tag for inserting a line break?
a.) <br />
b.) <break />
c.) <lb />
d.) <nbsp>
View Answer / Hide Answer

ANSWER: a.) <br />




9.) Can a data cell contain images?
a.) yes
b.)no
View Answer / Hide Answer

ANSWER: a.) yes




10.) How do I add scrolling text to my page?
a.) <scroll>
b.) <marquee>
c.) <ciruler>
d.) <tab>
View Answer / Hide Answer

ANSWER: b.) <marquee>



Post your comment