| 4. | | Answer the following questions based on ASP: | |
| | a) | Mention any two features of ASP. | 2 |
| | b) | What is the purpose of the HOUR( ) function? Explain with the help of an example. | 2 |
| | c) | Explain with examples the difference between implicit and explicit declaration of variables. | 2 |
| | d) | Write a command to remove the leading and trailing spaces from a character variable NAME, where NAME = “##Smriti# Malhotra###” (where # denotes a blank space). | 1 |
| | e) | Give the output for the following : - Response.Write(LTRIM(LEFT("####Congratulations", 7)) (where # denotes a blank space)
- Response.Write((3 *5 > 4 + 5) AND (2 ^ 3 + 9 2))
- Response.Write(ABS(3 – 11 * 4))
| |
| | | | |
| 5. | | Answer the following questions based on ASP: | |
| | a) | Name and specify the usage of any two ASP components. | 1 |
| | b) | Differentiate between Properties and Methods with the help of an example. | 2 |
| | c) | Underline the errors in the following code and write the corrected script. <% dim fname fname=Request.Query("fname") If fname<>"" Then Response.Output("Hello " fname "!<br />") Response.Output("How are you today?") End %> | 2 |
| | d) | Give the output for the following code segment: <% Arr=Array(25,14,20,45,25,4,1,31) max=ubound(Arr) For i=max to 1 step -2 Arr[i]= 10*Arr[i] Response.write (Arr(i) & "<BR>") next %> | 2 |
| | e) | Green Environment Club is a company, which aims at creating an awareness among the people about the ill-effects of pollution. The company wishes to create a web site, which provides information about all their activities. Write the ASP coding for the home page with the following specifications: - To display links to other pages. The links Reuse Recycle, Activities, Join Us link to the files Reuse.ASP, Activity.ASP and Join.ASP respectively.
- To display the number of times the page has been visited.
The suggested format of the page is shown below: | 3 |
| | | Environment Club Welcome to the green world. Click the links below to know more about us. Reuse Recycle Activities Join Us This page has been viewed 2163 times | |
| 6. | | Answer the following questions based on VBScript: | |
| | a) | Differentiate between IF…THEN..ELSE and SELECT…CASE statements with the help of an example. | 2 |
| | b) | Write the equivalent script for the following code using DO..WHILE without effecting the output: <SCRIPT LANGUAGE="VBScript"> DIM arr(5) counter=1 DO UNTIL counter > 5 arr(counter) = counter *counter counter =counter + 1 loop </SCRIPT> | 2 |
| | c) | Give the output for the following script: <Script Language="VBScript"> B=10 For A=1 to 12 step 3 C=A+B Document.Write(C) B=B-1 Document.Write(“<BR>”) Next </Script> | 2 |
| | d) | Write an HTML code for creating a form, which accepts the birth date from the user in a textbox and displays the day of the week in a message box on the click of a button. | 4 |
| | | | |
| 7. | | Answer the following questions based on Communication and network concepts: | |
| | a) | Name any two units to measure data transfer rate. | 1 |
| | b) | Write one difference between a Hub and a Gateway. | 2 |
| | c) | Explain the following terms: - Telnet
- CDMA
- Hackers
| 3 |
| | d) | The Cyber Mind Organisation has set up its new Branch at Mizoram for its office and web based activities. It has 4 Wings of buildings as shown in the diagram: X Y Z U Center to center distance between various blocks | Wing X to Wing Z | 40m | | Wing Z to Wing Y | 60m | | Wing Y to Wing X | 135m | | Wing Y to Wing U | 70m | | Wing X to Wing U | 165m | | Wing Z to Wing U | 130m | Number of computers | Wing X | 50 | | Wing Z | 130 | | Wing Y | 40 | | Wing U | 15 | | 4 |
| | (i) | Suggest a most suitable cable layout of connections between the Wings and topology. | |
| | (ii) | Suggest the most suitable place (i.e, Wing) to house the server of this organization with a suitable reason with justification. | |
| | (iii) | Suggest the placement of the following devices with justification: | |
| | (iv) | The organization is planning to link its head office situated in Delhi with offices at Mizoram. Suggest an economic way to connect it; company is ready to compromise on the speed of connectivity. Justify your answer. | |