Sunteți pe pagina 1din 3

HTML, CSS, JAVASCRIPT, JQuery

Marks: 20 marks
Duration: 30 minutes

1) Which type of web storage stores data without expiry


a) Local Storage
b) Session Storage
c) Cookies

2) When does <input type=”email”> validates if data entered is as per email


format or not?
a) When focus is lost for the control
b) When clicking on Submit button
c) We require Javascript to do validation
d) We require RegularExpressionValidator

3) Which is valid syntax for <audio> control


a) <audio>
b) <audio controls>
c) <audio type=”controls”>
d) <audio id=”Controls”>

4) How to refer external CSS file.


a) <link rel="stylesheet" type="text/css" href="style1.css">
b) <link type="text/css" href="style1.css">
c) <link rel="stylesheet" href="style1.css">
d) <link rel="css" type="text/css" href="style1.css">

5) Which of the following is the correct way of designing arrays in JavaScript?


a) var []arr={23, 33, 43, 53, 63};
b) var arr=[“44, 55, 66, 77, 88”];
c) var arr=[77, 66, 7, 7.8, 90, 9.8];

6) Which Javascript member reads data from HTML UI Control


<input type=”Text” Name=”txt” ID=”txtname”>
a) document.getElementByID(“txtname”).Text;
b) document.getElementByID(“txtname”);
c) document.getElementByID(“txtname”).value;
d) document.getElementByID.valueOf(“txtname”);

7) Consider the following code snippet


foreach(var k in arr )
{ Console.Write(k); }
The above code is equivalent to which code?
a) for (var i = 0; i < a.length; i++)
document.write (a[i]);
b) for (int i = 0; i < a.length; i++)
document.write (a[i]);
c) for (var i = 0; i <= a.length; i++)
document.write (a[i]);
d) for (var i = 1; i < a.length; i++)
document.write (a[i]);
8) JavaScript is a __________________________ language
a. Server Side language
b. Connects DB and sends data
c. Browser Side Validation Language
d. All of these

9) A webpage displays a picture. What tag was used to display that picture?
a. picture
b. image
c. img
d. src

10) <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dark>
c. <black>
d. <emp>

11) How can you make a Roman numbered list?


a) <dl>
b) <ul>
c) <ol>
d) <list>

12) What is the correct HTML for making a hyperlink?


a) <a href=”http:// mcqsets.com”> Quiz</a>
b) <a name=”http://mcqsets.com”>Quiz</a>
c) <a>http://mcqsets.com</a>
d) <hyperlink href= http:// mcqsets.com”>Quiz</hyperlink>

13) In HTML document the tags


a. should be written in upper case
b. should be written in lower case
c. should be written in proper case
d. can be written in both uppercase and lowercase

14) When should you use path along with file name of picture in IMG tag?
a. path is optional and not necessary
b. when the location of image file and html file are different
c. when image file and html file both are on same location
d. path is always necessary when inserting image

15) Which of the following is not a pair tag?


a) <p>
b) <u>
c) <i>
d) <img>

16) Which of the following ways below is correct to write a CSS?


a) p {color:red; text-align:center};
b) p {color:red; text-align:center}
c) p {color:red; text-align:center;}
d) p (color:red;text-align:center;).
17) Which of the below is the correct way to set a background image?
a) body {background-image:url(paper.gif);}
b) body {background-image:url(„paper.gif‟)};
c) body {background-image:url(„paper.gif‟)}
d) body {background-image:url(„paper.gif‟);}

18) Which of the following is triggered when the page is loaded?


a) $(document).load(function())
b) #(document).function()
c) $(document).ready(function())
d) $(document).$ready(function())

19) Which is not a Popup Box in JavaScript?


a) Prompt
b) Alert
c) MessageBox
d) Confirm

20) Which of the following statement is correct?


a) $(“#d1”).css({“color:red”},{“font-size:15px”});
b) $(“#d1”).css({“color:red},{font-size:15px”});
c) $(“#d1”).css({color:red},{font-size:15px});
d) $(“#d1”).css({“color”:”red”},{“font-size”:”15px”});

S-ar putea să vă placă și