Vous êtes sur la page 1sur 2

Assignment 1

Give the difference between internet and intranet


Explain TCP/IP internet layering model. Also explain various protocols of each layer in brief.
Using XHTML tags, create following XHTML documents: where all the three frames can not be resized by the user.

Basic XHTML Introduction
(frame 1)

Various hyperlinked XHTML tags (frame 2)

Explanation of the selected XHTML tag
in frame 2 with all its attributes.(frame 3)
Link for the example of the explained
tag.
In the same frame example link must be
opened with the back link, which directs
the user to the tag explanation document.

Make the use of cascaded style sheets with box model to format about application.
How to convert numbers between different based in javascript?
Fill in the blanks for each of the following:
o All programs can be written in terms of three types of control structures: ., ..,
o An m-by-n array contains .. rows and ...columns and .. elements.
o The name of the element in row 3 and column 5 of array d is ..
o String method formats a String as a hyperlink.
o The three ways to return a control from a called function to a caller are .., and .
o Methods .. and .. of the .. object write XHTML text in to an XHTML document.
1. State whether each of the following is true or false. If false, explain why?
o The remainder operator (%) can be used only with numeric operands.
o The default case is required in the switch selection statement.
o Method parseFloat converts float to String.
o An array can store many different types of values.
o To refer to a particular location or element within an array, we specify the name of the array and the value of the element.
o A javascript program that initializes the elements of a 15-element array to zero must contain at least one for statement.
1. Write a JavaScript that shows the demonstration of Math object methods.
2. Write a javascript to find the sum of digits of a given no. (eg. For the 123 answer is (1+2+3=6))
3. Find the difference between the two dates in terms of day, month and year using JavaScript.
4. Write a script that simulates coin tossing. Let the program toss the coin each time the user clicks the Toss button. Count the number of times each side
of the coin appears. Display the results. The program should call a separate function flip that takes no arguments and returns false for tails and true for
heads.
5. Write a javascript to display following pattern using two dimensional array.
*
* *
* * *
* * * *
* * * * *
1. Write a script that reads a series of string and outputs in an XHTML textarea only those strings beginning with the character b.
2. Write a javascript that creates simple calculator for the user.

Vous aimerez peut-être aussi