Professional Documents
Culture Documents
Question Bank
Short answers questions
Q27. Write a script to create XML file named “Item.xml”. Link “Item. Xml” file to the CSS style
sheet and get-well formatted output. file should contain following information with at
least 5 records with values.
Item
ItemName, ItemPrice, Quantity.
Q28. Write a script to create XML file 'breakfast .xmls'. The element details of breakfast .xml
are as follows :
<breakfast menu>
<food>
Description, calories —> Color : Blue; Font-fumily : Bodoni MT; font-size : 12 pt;
Q29. Explain the JavaScript confirm dialog box with suitable example.
Q30. Discuss three kinds of popup boxes in JavaScript.
Q31. Explain with example Alert box of JavaScript.
Q32. Explain which functions used to identify the browser.
Q33. Explain the different methods of including JavaScript in HTML. Write suitable example.
Q34. Write a JavaScript to accept a sentence from user and convert it to an array of words.
Also display array element.
Q35. Explain alert dialog box in JavaScript with the help of suitable example.
Q36. Write a JavaScript code to open a new window which will have some content on it and
then close this window.
Q37. Write a JavaScript function to validate user name and password against hardcoded
values.
Q38. Write a Javascript that accept a string from user. Pass this string as parameter to a
function `Check-Vowel' on button click event and return the count of the number of
vowels within the string.
Q39. Write a HTML form to accept student name, age and mobile no. from user. Using
Javascript validate the following:
i. Student name should not be empty
ii. Age must be in between 16 to 21.