Tuesday, 24 February 2015

Assignment WAD



Government Engineering College, Patan
Sem: - 6                                   Subject: - WAD                  Sub Code:-160705

Assignment
1.      Write down HTML/CSS code to create table with 2rows and 3 columns. Even no. of rows display in green color and odd no. of rows display in yellow color.
Position Name City
Position Name City
Position Name City
Sales

Manager
I.                    Hawthorn Shield
II.                 Green Shield
A. UK

B. Netherland
2.      Explain following terms: URI, Web browser, HTTP.
3.      Write the HTML snippet to show each letter of a word with new color, giving a rainbow effect
4.      Write the points those should be considered while planning a web site.
5.      How can you do following with cascading style sheet? a. Text Decoration b. Text Indentation.
6.      Explain the following with example (i) Unordered lists
(ii) Ordered lists (iii) Nested lists (iv) Definition lists.
7.      What is Metadata? Where it is included in HTML and XHTML? Explain with example how Metadata is included in a document? Also show how can following be achieved with the help of Metadata?
(i) Stop the page from being listed.
(ii) Set an expiration date
(iii) Stop the browser from caching a page.
(iv) Give a context for date so that it can take format MM-DD-YYYY and DD-MM-YYYY
8.      Explain the concept of irregularly shaped tables. Write the HTML snippet to get the following output and properly defined headers.

Exam Time Table
Green Park
Oxford Circus
EUSTON
12/3/2015
WAD
TOC
CG
         14/3/2015
SE
WAD
TOC
9.      How can a style sheet be linked to a web page or how a cascaded style sheet be embedded within a document? With the help of cascaded style sheet change background color. What changes are to be done to set an image as a background? Manipulate a background image so it can be repeated over an area.
10.  What is the role of Mail User Agent(MUA) and mail transfer agent(MTA)?
11.  What are the problems with FTP(file transfer protocol)?
12.  What is the meaning of the following  a. <meta name=”robots” content=”noindex,nofollow”/> b. <meta http-equiv=”pragma”, content=”no-cache”/>
13.  Choose subject of book he wants to buy, Dropdown to choose favorite author, comments for the last book he read. What is the use of <fieldset>?
14.  Show the use of inline frame in XHTML document.
15.  Differentiate between HTML and XHTML.
16.  Define CSS. Enlist and explain methods of using CSS in web page. Specify the CSS to provide; link: after visited blue color and before visited red color, table with odd rows white and even rows blue color.
17.  Explain the architecture of the browser.
18.  Write the following styles in separate CSS file and also show how to link this CSS file in HTML file and show use of styles.(i) The headings should have normal font style and font’s size should be 120%(ii) Define a class arial for paragraph which defines font family arial and font style bold.(iii) Apply a background color yellow and apply a background image “browntile.jpg”
19.  What is the difference between class and id? How can a style rule be defined with an id redheading that gives red color to heading h1 with text of heading right aligned? What would be the output ofthe following code in relation to style defined in this problem.<h2 id=”redheading”> This is red heading</h2>   <p id=”redheading”> This is red heading</p><h1 id=”redheading”> This is red heading</h1>
20.  Explain the following HTML tags  a. <dl> </dl> b. <input type=”file”/>
21.  Explain CSS with all types. Explain BOX MODEL
22.  What are differences between client side and server side scripting language? Write down java script code to check mobile number ( mobilenumber should start with 9 or 8) and mail id(check @ and .).What’s the correct syntax for referring to an external script called “abs.js”?1) <script href=”abc.js”>2) <script src=”abc.js”>3) <script target=”abc.js”>
23.  What is difference between Java script and JAVA?
24.  Write a JavaScript that uses function to calculate how many days are left in your birthday?
25.  Write a JavaScript, that uses a loop, that searches a word in sentence held in an array, returning the index of the word.
26.  Write an HTML file with Javascript that finds position of first occurrence of vowel “a”, last occurrence of vowel “a” in a given word and returns the string between them. For example, ajanta- then script would return first occurrence of “a”-that is position 1 and last occurrence-6 and string between them is “jant”.
27.  What is the role of cache and cookies in the browser?
28.  How an inline frame be embedded on a page with graphics and text?
29.  Write a form to collect details of a user such as name, address, radio button to choose subject of book he wants to buy, Dropdown to choose favorite author, comments for the last book he read. What is the use of <fieldset>?
30.  Write a JavaScript that handles following mouse events. Add necessary elements. (i) If the mouse is over the heading heading should turn yellow and if the mouse goes out of the heading it should turn black.(ii) If findtime button is clicked show time and date information.(iii) If button named “red” is clicked, background should change to red and If button named “green” is clicked, background should change to green.
31.  What are the advantages and disadvantages of client side scripting? How user defined objects can be created in JavaScript? Describe the way in which property values can be added to the object.
32.  Write a JavaScript that handles following mouse events. Add necessary elements.(i) JavaScript gives the key code for the key pressed.(ii) If the key pressed is “a”,”e”,”i”,”o”,”u”, the script should announce thatvowel is pressed.(iii) When the key is released background should change to blue
33.  Explain the document structure of XHTML document.Write a JAVAScript to print characters of a string at odd positions.(for example for the string India, I, d and a should get printed).
34.  Write a JAVAScript to take 2 digit number and then separate these 2 digits, then multiply first digit by itself for second digit times.( for example, 23 should be separated as 2 and 3. 2 should multiply with itself 3
35.  Explain document object in JavaScript How user defined objects are created in JAVAScript? How a constructor can be used to populate data in the object? How Divide and Pound symbol can be put on HTML document?


No comments:

Post a Comment