18.1 Subjective Question Bank

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 24

11.

Subjective& Objective Question Bank


18.1 Subjective Question Bank
Unit-1

1) What is HTTP? How do browser and server communicate using HTTP request and response?
Explain with example.

2) What is HTML table? Explain table element with necessary attributes.

3) What do you mean by meta tags? What are their purposes? Explain the different meta tags.

4) What do you mean by “class” and “id” in CSS? Show the use of external CSS with example.

5) What is frame set? Explain the use of frame set in web site design with proper example.

6) Write a JavaScript program to print first N odd numbers divisible by 7.

7) Answer the following questions with respect to JavaScript.

1. Give the different purpose for which JavaScripts are used.

2. Writing user defined objects in JavaScript.

8) Write an HTML form accepting an integer having 4-digits. Provide necessary validations using
JavaScript. Input should not accept characters.

9) What do you mean by meta tags? What is its use? Describe with example.

10) Explain the use of HTML table element for designing the web page layouts with appropriate
examples.

11) How can you perform validation using JavaScript? Show the validation using JavaScript with
simple form having name, phone number and email field.

12) Show the use of window object for controlling your browser.

13) What is cascading style sheet? Write short note on

(i) Inline style sheet

(ii) External style sheet.

14) Describe the structure of a HTML document. What is the difference between tag and attribute?
Explain with an example.

15) How many types of list are supported by HTML? Explain each one in brief.

16) Write a program using Java Script, which sorts elements of an array in descending order using
bubble sort.

17) Create a HTML page with Java Script, which takes one integer number as input and tells whether
the number is even or odd.

18) Create a HTML page using Java Script, which gives functionality of calculator like addition,
multiplication, division and subtraction.

19) What is style sheet? Explain various ways to write style rules in CSS with example.

20) Explain following HTML tags with their important attributes.


i. <form>

ii. <frameset> and <frame>

iii. <img>

21) Why java script is called Client side scripting? Explain advantages of javascript.

22) Explain following java script functions.

1. alert() 2. prompt() 3. confirm()

23) Create HTML form with one button having label “Click Me”. Also write java script to show “You
Clicked Me” message when a user clicks on button.

24) Explain various loop structures in java script with example.

25) Explain any seven HTML Tag with example.

26) Write a java script to print prime number up to n. value of n is given by user in HTML Page.

27) Explain following HTML tags with example and important attributes.

1. <meta>

2. <a>

3. <form>

4. <img>

28) What is javascript? What are its uses? Write a javascript code which reads the number from
textbox and prints list of numbers starting from 1 on web page.

29) What do you mean by “class” and “id” in CSS? Show the use of external CSS with example.

30) Explain Following tags in HTML: Frame, Frameset, Table, Form

31) Explain following html tags with proper example. (Any Three)

<input> 2. <span> 3. <ul> 4. <frameset>

32) Explain pop-up boxes in javascript with example. Write an XSL file to print list products which
has price < 300 Rs. for item.xml file in tabular structure.

Unit-2

33) Q.1.what is DHTML?what is its used?

34) Q.2.what is image object?how to you used image object for animation purpose?

35) Q.3what is javascript event?show the uses of event with examples?

36) Q.4.what is window object?explain the uses of window object with its property?

37) What do you mean by event in JavaScript? Give at least two examples of events with their
handling.
38) How can you write DTD?.

39) What is XML? Give its elements and explain its use with example.

40) Explain the key components of the XML with suitable examples.

41) What is Document Object Model? Explain the various objects in Document Object Model.

42) What are objects in Java Script? Explain properties, methods and event of window object of Java
Script.

43) What is XML? What are rules of elements in XML? Write the disadvantages of attributes of XML.

44) Define the following with reference to XSL

(i) value-of (ii) if (iii) for-each (iv) XSL:choose (v) sort (vi) XSL : fo (vii) xpath

45) What is a DTD? What are its applications? What are its advantages and disadvantages?

46) Write and explain rules for well formed XML document.

47) Develop XML File for book record and also write a DTD and XSL for it.

48) Write a Javascript to check mobile number (mobile no. should start with 9 or 8).

49) Write a JavaScript program to print first N odd numbers divisible by 7.

50) What is javascript? What are its uses? Write a javascript code which reads the number from
textbox and prints list of numbers starting from 1 on web page.

51) Design a web page which contains list buttons (car names) and one image element/tag. When
particular car name is clicked then image element display chosen car into image tag. Write HTML
and javascript for the same

52) Design HTML page with one textbox and image tag. When focus moves from textbox then all
characters should be converted to uppercase and when mouse over/out on image then image should
be changed. Write JavaScript code for the same.

53) Define the following with reference to XSL

1. value-of 2. if 3.for-each 4. XSL:choose

3. sort 6. XSL:FO 7. xpath

54) Explain the Document Object Model. Explain any two document object with example.

55) What is client side scripting? Write an HTML and JavaScript program which accepts N as input
and print first N odd numbers.

56) What is XML Schema and DTD? Explain CDATA and PCDATA with example.

57) What is XML? Write an XML file to store information of books.

58) What is Event in DHTML? Show the use of events to change background color with DHTML. If
mouse button is pressed, background color should be blue. If mouse button is released up,
background color should be green.

59) Design a form using html and JavaScript to collect the details from the user such as name, gender
(Radio Button), address, state, city. Create a dynamic drop down list for state and based on state
another drop down list contains list of cities for that state.
Unit-3

60) Explain the following.

1. Web feeds

2. Associate arrays in PHP

61) Write a PHP program to make the sum of first 100 odd numbers.

62) What is an HTML form? How can you access the form data in php page?

Explain with suitable example.

63) Write a PHP program that receives the value of N using HTML form and displays the first N
Fibonacci numbers as HTML list.

64) Explain the PHP arrays with example.

65) What is session? How do php manage the sessions? Give an example to store

and retrieve, your age as session variable

66) Explain the PHP session and PHP cookie with an example.

67) Explain various types of arrays in PHP with examples.

68) Create HTML form with one textbox to get user’s name. Also write PHP code to show length of
entered name when, the HTML form is submitted.

69) Give differences between following.

i. GET versus POST ii. Cookie versus Session variable

70) Create HTML form to enter one number. Write PHP code to display the message about number is
odd or even.

71) Explain and demonstrate with suitable example Session and Cookie using PHP

72) Write a Java Script to validate email address. Explain substr(), explode in PHP.

73) What are cookies in PHP? Explain it with example.

74) What is an associate array in PHP? Explain built in associate arrays inPHP.

75) What is Session in PHP? How shopping cart can be maintained with Session concept sample PHP
code.

76) Explain PHP and WAMP server in detail.

77) Differentiate between Client Side Scripting and Server Side Scripting.

78) Write a PHP script that validate email address using Regular Expression when user click on
VALIDATE button.

79) Write php code to create database state, create table city(cityname,

area,population) and insert data from table.


80) How to read directory in PHP? Write sample code for the same and explain it.

81) Explain date() function in PHP.

82) Differentiate session and cookies in PHP.

83) What PHP can do with header() command?

84) Write a PHP script to print first N Fibonacci numbers.

85) What are the different types of arrays in PHP? Explain with example to process the arrays in PHP.

86) Write a PHP program that receives the value of N using HTML form and displays the first N

Fibonacci numbers as HTML list.

Unit-4

87) Write PHP Program to store user registration with My Sql Database. .

88) Write a PHP script to upload a text file.

89) Develop web service to print ‘Hello World’ using PHP programming.

91) Write PHP and HTML code to upload file from client to server.

92) Explain file and directory related functions in PHP with example.

93) Write a PHP program to store user registration (user-name, address, Date of Birth, age, pan
card, gender) with mysql database.

94) Write a code to design single PHP page with following requirement.

1. It accept username and password

2. When user click on submit button then authenticate user id and password.

3. Also perform validation (using JavaScript) like any of input field should not be blank.

95) Write php code to upload simple text file on webserver.

96) Write a web application code using PHP, HTML and MySql for Employees that stores employee’s
id, name, department, designation, etc. in database. Create proper GUI including buttons that run
separate .php file for each database operation like insert, update, delete etc.

97) Write php code to read from a file and display it in browser

98) Write HTML and PHP program to read and store student information such as enrollment no, name,
semester and percentage from database table. Output the data to a webpage in tabular format.

99) Write a PHP program to store user registration information( like user-name, address, Date of

Birth, age, pan card, gender) with mysql database and display that details on view screen in tabular
manner

100) Explain select with phpmyadmin.

101) Explain insert with phpmyadmin.

102) Explain update with phpmyadmin


103) Explain delete with phpmyadmin

104) Explain diff server which will be used to do php scripting.

11.2 Objective Question Bank

1) A webpage displays a picture. What tag was used to display that picture?
a. picture
b. image
c. img
d. src
2) <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
3) Tags and test that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>
4) Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction="horizontal">
d. <tr>
5) What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
6) Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
7) How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
8) How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
9) Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction="horizontal">
d. <tr>
10) What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
11) Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
12) How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
13) How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
14) How can you make an e-mail link?
a. <a href="xxx@yyy">
b. <mail href="xxx@yyy">
c. <mail>xxx@yyy</mail>
d. <a href="mailto:xxx@yyy">
15) To create a combo box (drop down box) which tag will you use?
a. <select>
b. <list>
c. <input type="dropdown">
d. all of above
16) Which of the following is not a pair tag?
a. <p>
b. < u >
c. <i>
d. <img>
17) What is the full form of HTML?
a. Hyper text markup language
b. Hyphenation text markup language
c. Hyphenation test marking language
d. Hyper text marking language
18) What is the full form of HTTP?
a. Hyper text transfer protocol
b. Hyper text transfer package
c. Hyphenation text test program
d. none of the above
19) What is a search engine?
a. a program that searches engines
b. a web site that searches anything
c. a hardware component
d. a machinery engine that search data
20) What is the full form of TCP/IP?
a. transmission control protocol / internet protocol
b. telephone call protocol / international protocol
c. transport control protocol / internet protocol
d. none of the above
21) How to define the link should open in new page in HTML?
a. <a href = "http://www.mcqsets.com/" target = "blank">Click Here</a>
b. <a href = "http://www.mcqsets.com/" target = "_blank"> Click Here </a>
c. <a href = "http://www.mcqsets.com/" target = "#blank"> Click Here </a>
d. <a href = "http://www.mcqsets.com/" target = "@blank"> Click Here </a>
22) In HTML, Uniform Resource Identifier (URI) is used to
a. To create a frame document .
b. To create a image map in the webpage.
c. To customize the image in the webpage.
d. To identify a name or a resource on the internet.
23) CSS is an acronym for
a. Cascading Style Sheet
b. Costume Style Sheet
c. Cascading System Style
d. None of the Above
24) Which of the following protocol is not used in the Internet
a. Telnet
b. WIRL
c. HTTP
d. Gopher
25) What does HTML stand for?
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
26) Who is making the Web standards?
d) Mozilla
e) Microsoft
f) The World Wide Web Consortium
27) What does CSS stand for?
g) Creative Style Sheets
h) Colorful Style Sheets
i) Computer Style Sheets
j) Cascading Style Sheets
28) Which is the correct CSS syntax?
1. body:color=black
2. {body;color:black}
3. {body:color=black(body}
4. body {color: black}
29) How do you insert a comment in a CSS file?
1. this is a comment
2. /* this is a comment */
3. // this is a comment
4. // this is a comment //
30) What is the correct HTML for inserting an image?
1. <img alt="MyImage" image.gif /img>
2. <image src="image.gif" alt="MyImage">
3. <img src="image.gif" alt="MyImage">
4. <img href="image.gif" alt="MyImage">
31) How can you make a list that lists the items with numbers?
a)ol

b)dl

c)ul

d)list

32) How can you open a link in a new browser window?


1. <a href="url" target="_blank">
2. <a href="url" target="_self">
3. <a href="url" target="_new">
4. <a href="url" target="_window">
33) Choose the correct HTML tag for the largest heading.
a)head

b) h1

c)h6

d)header

34) What is the correct HTML for creating a hyperlink?


1. <a url="http://www.w3schools.com">W3Schools.com</a>
2. <a href="http://www.w3schools.com">W3Schools</a>
3. <a>http://www.w3schools.com</a>
4. <a name="http://www.w3schools.com">W3Schools.com</a>
35) How do you display hyperlinks without an underline?
1. a {text-decoration:none}
2. a {text-decoration:no underline}
3. a {decoration:no underline}
4. a {underline:none}
36) How do you make a list that lists its items with squares?
1. type: square
2. list-type: square
3. type: 2
4. list-style-type: square
37) In what form are style rules presented?
1. selector { property: value }
2. selector { property= value }
3. selector ( property: value )
4. selector ( property= value )
38) Which property applies a color to text?
1. text-color
2. foreground-color
3. background-color
4. color
39) What does the ID selector do?
1. Apply the style to a specific element
2. Apply the style to all the elements
3. Apply the style to a group of elements
4. Apply the style to elements of the same type
40) What selector should you use when applying a style to multiple elements?
1. ID
2. Class
3. Type
4. Any of the above
41) Which of the following attributes of the <img> tag displays alternate text for the image?
1. caption
2. text
3. alt
4. identify
42) Where in the HTML document is the correct place to refer to an external style sheet?
1. In the <body> section
2. At the top of the document
3. In the <head> section
4. At the end of the document
43) Which HTML tag is used to define an internal style sheet?
1. <css>
2. <style>
3. <script>
44) Which HTML attribute is used to define inline styles?
1. class
2. style
3. styles
4. font
45) Which method is ideal for applying the same style to an entire website?
1. Internal CSS
2. Inline CSS
3. External CSS
46) “a:hover” and “a:active” are both examples of what?
1. pseudo-classes
2. attribute selectors
3. ids
4. selectors
47) Which of the following statements is not correct?
1. classes are identified a number sign (#)
2. classes are identified with a dot (.)
3. ids are identified with a number sign (#)
48) 24.Each element can have only one ID and Each page can have only one element with that ID.
i. True
ii. False
49) 25.You can use the same class on multiple elements.
i. True
ii. False
50) 26. What is the difference between margins and padding?
i. margins add whitespace inside the border and padding adds whitespace outside
ii. padding adds whitespace and margins increase the border size
iii. there is no difference
iv. margins add whitespace and padding increases the border size
v. padding adds whitespace inside the border and margins add whitespace outside
51) 27. From the inside out, which of the following portrays the correct order of a box model?
i. margin, border, padding, content
ii. content, margin, border, padding
iii. border, margin, content, padding
iv. content, padding, border, margin
v. padding, content, margin, border
52) XML stands for ………………….
a. Extensible Markup Language
b. Eccessive Markup Language
c. Executive Markup Language
d. Extensible Managing Language
53) The XML format has a simpler set of …………………… than HTML.
a. loader rule
b. parsing rules
c. generator rule
d. logical rule

54) All information in XML is …………………


a. Unicode text
b. multi code
c. multi text
d. simple text
55) An entity in XML is a …………………………..
a. class
b. logical information
c. simple information
d. flexible information storage unit

56) A tool for reading XML documents is popularly called a …………………


a. XML delimiters
b. XML processor
c. XML parser
d. Both b and c

57) XSL stands for


a. Extensible Style sheet Language
b. Extensible Style Language
c. Exclusive Stylesheet Language
d. Exclusive Style Language

58) XML tabs are ………………………..


a. case sensitive
b. case insnesitive
c. easy
d. deficult

59) In XML the attribute value must always be quoted with ……………..
a. double quotes
b. single quotes
c. both a and b
d. name of attributes

60) Elements from the HTML namespace are displayed as they would in …………………..
a. DHTML
b. XML
c. HTML
d. DXML

61) An ……………….. block can be to embed a CSS style sheet within an XML document.
a. <bk:Book>
b. <Element Type>
c. <HTML:STYLE>
d. <XML:STYLE>
62) ………… are not triggered directly by user activity, but by network or browser activity, and
indicate some kind of lifecycle.
a. Device dependent input events

b. Device independent input events

c. User interface events

d. State change events


63) ………… include the focus event, the change event when the user changes the value and the
submit event when the user clicks a submit button.
a. Device dependent input events

b. Device independent input events

c. User interface events

d. State change events

64) ……….. allows the same event handler function to be registered more than once. When an event
of the specified type occurs, the registered function will be invoked as many times as it was
registered.
a. addEvent()

b. addMultipltEvent()

c. attachEvent()

d. reattachEvent()

65) Which of the following statements about the arguments of addEventListener() is/are True.

i. The first argument to addEventListener() is the event type for which the handler is
being registered.

ii. The second argument to addEventListener() is the function that should be invoked
when the specified type of event occurs.

iii. The third argument to addEventListener() is a numerical value.

a. i and ii only

b. i and iii only

c. ii and iii only


d. All i, ii and iii

66) When an event occurs on an object, all of the handlers registered for that type of event are invoked,
in the order in which they were ………

a. occurred

b. registered

c. invoked

d. initialized

67) Invoking ………. more than once on the same object with the same arguments has no effect, the
handler function remains registered only once, and repeated invocation does not alter the order in
which handlers are invoked.
a. addEvent()

b. addMultipltEvent()

c. attachEvent()

d. addEventListener()

68) State which of the following statements are True or False about the rules of invocation order for
event handler in JavaScript.

i) Handlers registered by setting an object property of HTML attribute, if any are


always invoked first.

ii) Handlers registered with addEventListner() are invoked in the order in which
they were registered.
iii) Handlers registered with attachEvent() may be invoked in any order and the
code should not depend on sequential invocation.

a. i-True, ii-True, iii-False

b. i-True, ii-False, iii-False

c. i-True, ii-True, iii-True

d. i-False, ii-False, iii-True

69) ………. is universally supported also it works in all browsers including IE, and works for all
handlers, regardless of how they are registered.

a. Event bubbling

b. Event handling

c. Event capturing

d. Event registering

70) …………, only works with event handlers registered with addEventListner() when the third
argument is True.

a. Event bubbling

b. Event handling

c. Event capturing

d. Event registering
71) In browsers that support addEventListner(), we can also cancel the default action for an event by
invoking the ……….. method of the event object.

a. preventBrowsers()

b. preventDefault()

c. preventPropagation()

d. preventEvent()

72) The ………….. event is fired when the document has been loaded and parsed and any deferred
scripts have been executed.

a. DOMContent()

b. DOMContentLoad()

c. DOMLoaded()

d. DOMContentLoaded()

73) ………. is a user interface for transferring data between a “drag source” and “drop target” that
may be in the same application or in different applications.

a. Drag-and-drop

b. User-drag-and-drop

c. Drag source-and-drop target

d. Source-drag-and-drop-target
74) Which of the following statements are True about the APIs for Implementing Drag-and-drop.

i) They have to tie into the underlying OS so that they can work between
unrelated applications.

ii) They must provide a way for a drag source to specify the icon or image to be
dragged.

iii) They must provide event-based notification to both the drag source and drop
target of the progress of the Drag-and-drop interaction.

a. i and ii only

b. i and iii only

c. ii and iii only

d. All i, ii and iii

75) ……… objects have altKey, ctrlKey, metaKey and shiftKey properties, which are set to True if the
corresponding modifier key is held down when the event occurs.

a. Key down

b. Key event

c. Key up

d. Key press
76) PHP Stands for
A. Php Hypertext Processor
B. Php Hypertext Preprocessor
C. Php Hypermarkup Preprocessor
D. Php Hypermarkup Processor
77) PHP is _______ scripting language.
A. Server-side
B. Clint-side
C. Middle-side
D. Out-side
78) PHP scripts are executed on _________
1. ISP Computer
2. Client Computer
3. Server Computer
4. It depends on PHP scripts
79) PHP Scripts starts with ________
1. <php> … </php>
2. <?php …. ?>
3. ?php … ?php
4. <p> … </p>
80) Which of the following statements prints in PHP?
A. Out
B. Write
C. Echo
D. Display
81) In PHP, each statement must be end with ______
A. . (dot)
B. ; (semicolon)
C. / (slash)
D. : (colon)
82) In PHP Language variables name starts with _____
A. ! (Exclamation)
B. & (Ampersand)
C. * (Asterisk)
D. $ (Dollar)
83) In PHP Language variables are case sensitive
A. True
B. False
C. Depends on website
D. Depends on server
84) In PHP a variable needs to be declare before assign
A. True
B. False
C. Depends on website
D. Depends on server
85) Which of the following is not the scope of Variable in PHP?
A. Local
B. Global
C. Static
D. Extern
86) What is the use of strlen( ) function in PHP?
1. It returns the type of a string
2. It returns the value of a string
3. It returns the length of a string
4. It returns the subset value of a string
87) Which of the following is the Concatenation Operator in PHP?
1. + (Plus)
2. . (dot)
3. & (Ampersand)
4. % (Percentage)
88) Which of the following is not PHP Loops?
1. while
2. do while
3. for
4. do for
89) What is the use of strpos( ) function in PHP?
1. Search for a number within a string
2. Search for a Spaces within a string
3. Search for a character/text within a string
4. Search for a Capitalized string/text with in a string
90) Where setcookie( ) function must appear in PHP?
1. Before tag
2. After tag
3. In tag
4. Anywhere
91) What does the hash (#) sign mean in PHP?
1. It indicates lines that are commented out.
2. It indicates variable declaration.
3. It indicates function declaration.
4. No uses in PHP.
92) How to define a variable in PHP?
1. $variable_name = value
2. $variable_name = value;
3. $variable_name == value;
4. $variable_name as value;
93) The uses of strcmp( ) function in PHP?
1. It compare strings including case
2. It compare strings excluding case
3. It compare strings only Uppercase
4. It compare strings only lowercase
94) What will be the result of combining a string with another data type in PHP?
1. int
2. float
3. string
4. double
95) Data for a cookie stored in _________ in PHP?
1. In ISP Computer
2. In User’s Computer
3. In Server Computer
4. It depends on PHP Coding
96) PHP is a ______ typed language.
1. User
2. Loosely
3. Server
4. System
97) What does fopen() function do in PHP?
1. It used to open files in PHP
2. It used to open Remote Server
3. It used to open folders in PHP
4. It used to open Remote Computer
98) Where session_start() function must appear in PHP?
1. Anywhere
2. With <html> tag
3. After <html>tag
4. Before <html> tag
99) What does the PHP Interpreter do?
1. It translates User Language to System Language
2. It creates connection between ISP & Server
3. It processes the HTML and PHP files
4. All of these
100) Which of the following is used to add comments in PHP?
1. //
2. /* … */
3. & … &
4. Only A & B
101) What does sprintf() function do in PHP?
1. it sends output to a variable
2. it prints the output of program
3. it sends output to a variable converting into string
4. it prints the output of program converting into string
102) Variables are case-sensitive in PHP?
1. True
2. False
103) Which function displays the information about PHP?
1. info()
2. sysinfo()
3. phpinfo()
4. php_info()
104) What does isset() function do in PHP?
1. There is no such function in PHP
2. It checks whether variable is set or not
3. It checks whether variable is free or not
4. It checks whether variable is string or integer
105) How PHP files can be accessed?
1. Through Web Browser
2. Through HTML files
3. Through Web Server
4. All of Above

12.University Question Paper

Q.1

(a) Explain the HTML5 new features? 04

(b) What is one main difference between JavaScript variable and JavaScript object ?Write a 04
JavaScript program to define an object “Rectangle” with property length and breadth .Define
necessary constructor and method to compute its area .Design program such that it accepts
length and breadth from user and displays the area of the rectangle.

(c) What is DHTML? What is Event in DHTML? Show the use of events to change 04
background color with DHTML. If mouse button is pressed, background color should be
blue. If mouse button is released up, background color should be green.

Q-2 (a) 05

Write a external style sheet for the following rules:


(1)To make all the header with red color

(2)To display all the paragraphs in Arial font with bold


style.

(3)To make the background color yellow

Show the use of above CSS with HTML file by linking it.

OR

Q-2 (a) What is DOM? Explain WINDOW object and its property with example? 05

Q-2 (b) Write a XML file marksheet.xml representing your mark sheet . Make the element Marksheet ,a 05
root element having the sub elements Exam_name , Exam_no,Semester,Branch,Subject(Subject
has also its sub elements Sub_name , Mark_ obtain) and also write a DTD file for this
marksheet.xml file.

OR

Q-2 (b) Write a XML Schema for the above XML file (marksheet.xml). 05

Q-3 (a) What is client side scripting? Give its advantages and Explain various types of pop up boxes. 04

Q-3 (b) Explain the following XSL (XML stylesheet elements) with Example. 04
(i) value-of
(ii) for-each
(iii) sort
OR

Q-3 (b) What is namespace in XML? Explain the use of namespace with Example. 04
Assignment / Tutorials

1. What is cascading style sheet? Write short note on

(i) Inline style sheet

(ii) External style sheet.

2.Describe the structure of a HTML document. What is the difference between tag and attribute? Explain
with an example.

3. Give the full name of the following acronyms.

(i) HTTP (ii) FTP (iii) PHP (iv) HTML (v) XML (vi) XSLT (vii) TCP (viii) UDP (ix) URI (x) URL (xi)
DOM (xii) DTD (xiii) WML (xiv) WAP

4.How many types of list are supported by HTML? Explain each one.

5.What is Document Object Model? Explain the various objects in Document Object Model.

6.Write a program using Java Script, which sorts elements of an array in descending order using bubble
sort.

7. What are objects in Java Script? Explain properties, methods and event of window object of Java Script.

8. Create a HTML page with Java Script, which takes one integer number as input and tells whether the
number is even or odd.

9. What is XML? What are rules of elements in XML? Write the disadvantages of attributes of XML.

10Create a HTML page using Java Script, which gives functionality of calculator like addition,
multiplication, division and subtraction.

11 Define the following with reference to XSL

(i) value-of (ii) if (iii) for-each (iv) XSL:choose (v) sort (vi) XSL : fo (vii) xpath

12What is a DTD? What are its applications? What are its advantages and disadvantages?

13.Explain the PHP session and PHP cookie with an example.

You might also like