0% found this document useful (0 votes)
6 views4 pages

Science Sample Paper

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Science Sample Paper

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

HSC Information Technology (Science)

Question Paper

Total Marks: 80
Time: 2.5 Hours

Q.1. Fill in the Blanks: (10 × 1 = 10 Marks)

a) The ____________ attribute is used to uniquely identify an HTML element.


b) ____________ is a client-side scripting language used to create interactive web pages.
c) In CSS, the ____________ property is used to change the font size of an element.
d) The ____________ tag is used to create a table in HTML.
e) ____________ is the default method used for sending form data in HTML.
f) The ____________ attribute in the <input> tag is used to specify the type of data the user
can enter.
g) The ____________ method in JavaScript is used to select an element by its ID.
h) The ____________ property in CSS is used to control the space outside an element.
i) ____________ is the protocol used for secure communication over a computer network.
j) The ____________ property in CSS is used to make an element visible or hidden.

Q.2. True or False: (10 × 1 = 10 Marks)

a) The <form> tag is used to create a hyperlink in HTML.


b) The document.getElementById() method is used to select an HTML element by its class
name.
c) The position: absolute; property positions an element relative to its parent element.
d) The float property in CSS can be used to align images to the left or right.
e) JavaScript is a server-side scripting language.
f) The <ul> tag is used to create an unordered list in HTML.
g) The padding property in CSS adds space inside the border of an element.
h) The onclick event in JavaScript is used to detect when a user clicks on an element.
i) The <audio> tag in HTML5 is used to embed audio files in a webpage.
j) The visibility: hidden; property in CSS removes the element from the document flow.

Q.3. Multiple Choice Questions (One Correct Alternative): (10 × 1 = 10 Marks)

a) Which tag is used to create a dropdown list in HTML?


i) <input>
ii) <select>
iii) <textarea>
iv) <option>
b) Which CSS property is used to set the background color of an element?
i) background-color
ii) bg-color
iii) color
iv) background

c) The default value of the position property in CSS is:


i) absolute
ii) fixed
iii) relative
iv) static

d) To link an external CSS file in HTML, which tag is used?


i) <style>
ii) <script>
iii) <link>
iv) <meta>

e) Which HTML element is used to define a clickable button?


i) <input>
ii) <button>
iii) <click>
iv) <submit>

f) Which of the following is a valid JavaScript variable declaration?


i) var 1name;
ii) var name1;
iii) var name-1;
iv) var name one;

g) The <video> tag in HTML5 supports which format?


i) MP4
ii) AVI
iii) FLV
iv) MOV

h) The text-align: center; property in CSS is used to:


i) Align text to the left
ii) Align text to the right
iii) Align text to the center
iv) Justify text

i) To create a multi-line text input in HTML, use:


i) <input type="text">
ii) <textarea>
iii) <input type="textarea">
iv) <text>
j) The JavaScript function alert() is used to:
i) Display a dialog box with a message
ii) Create an alert on the server
iii) Redirect to a new webpage
iv) Change the background color

Q.4. Multiple Choice Questions (Two Correct Alternatives): (5 × 2 = 10 Marks)

a) Which of the following tags are used to define a table in HTML?


i) <table>
ii) <tr>
iii) <td>
iv) <th>

b) Which of the following are valid JavaScript events?


i) onclick
ii) onmouseover
iii) onchange
iv) onload

c) Which attributes are associated with the <input> tag in HTML?


i) type
ii) name
iii) value
iv) src

d) Which CSS properties can be used to control the layout of elements?


i) display
ii) float
iii) position
iv) clear

e) Which HTML elements can be used to create forms?


i) <form>
ii) <input>
iii) <textarea>
iv) <button>

Q.5. Multiple Choice Questions (Three Correct Alternatives): (2 × 3 = 6 Marks)

a) Which of the following are valid CSS display values?


i) inline
ii) block
iii) none
iv) visible
b) Which of the following are HTML5 elements?
i) <header>
ii) <footer>
iii) <nav>
iv) <title>

Q.6. Match the Following: (4 × 1 = 4 Marks)

a) <img> tag i) Embedding images


b) class selector ii) Multiple elements
c) position: fixed; iii) Positioned relative to the viewport
d) <script> tag iv) Embedding JavaScript

Q.7. Answer the Following: (2 × 5 = 10 Marks)

a) Explain the different data types available in JavaScript. Provide examples.


b) Describe the various methods for selecting HTML elements using JavaScript.

Q.8. Write a Program: (10 Marks)

Write the HTML, CSS, and JavaScript code to create a simple webpage that includes a form
with validation. The form should include fields for name, email, and password. Use
JavaScript to validate that all fields are filled in before submission.

Instructions:

 All questions are compulsory.


 Answer all parts of each question.
 Assume suitable examples wherever necessary.

You might also like