Questions:-List of Programs For Practical File:: Vbscript

You might also like

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

QUESTIONS:List of programs for practical

file:
1. Write the HTML code to generate a Web Page in the
format given below : Consider the following while writing
the HTML code :
Title of the page should be CA
Background colour of the page should be purple.
Text style of the main heading should be Arial bold and
colour should be blue.
Image used is calogo.jpg.
Table should have a 2 pixel thick border of colour green
and the space between cell content and border is 15
pixels.
The bottom image (sd.jpg) and the text opensource
software are links to page dobhri.html

VBSCRIPT
Write VBScript code for the following programs:
1. Write an HTML (VBSCRIPT) code for creating a form, which
contains four textboxes as
shown below. The first textbox accept name of the employee and second
textbox accept
total income. In the third textbox calculate taxable income=total yearly
income -110000 for male
and taxable income=total yearly income -150000 for female . Other
condition are given below
Taxabl
Tax
e
Male
Female
income
<50000 10%
7%
0
25%
15%
>50000
0
2) Write the HTML code for creating the form given below and also
write the embedded VBScript code for the click event of the submit
button, such that it displays a message with the name entered by the
user and amount of his bill. The costs are given below :
Regular Pizza : Rs. 200

Pan Pizza : Rs. 250


The toppings cost extra:
Cheese Topping : Rs. 80
Capsicum Topping : Rs. 95
Peperoni Topping : Rs. 70
If the user enters name as Umang and selects Pan and topping as
Cheese then it should display the message Dear Umang ! Your bill
amount is Rs. 330 in a message box.
3. To generate the following output:
i) Hello
Hell
Hel
He
H
ii) H
He
Hel
Hell
Hello
4. Write a program is to be written to input the
location and display the Shipping amount based on
the location using Select case clause.
5. Write a program is to make a subroutine that
calculates and displays the sum of squares of all odd
numbers from 1 to 10.
6. Write a program that accepts the date of birth of
the user as dd/mm/yy and calculates his age as of
now. The age is then displayed in a message box.
7. Write a function that allows three arguments to be
passed to it and returns the smallest of the three
values.
8. Write HTML document to create the following form:
On clicking the Grade button find out the division
secured by a student on the basis of the percentage
of marks obtained in the examination. The criteria
for calculating grade as follows:
Percentage
Division
Below 33
fail
33 and below 50
3rd division

50 and below 60
2nd division
60 and below 75
1st division
75 onwards
Distinction
9. Write the code to display the above form and add
the VBScript to display the results as written when
the user enters his name and clicks on button
10. Write the code to generate a web page with an
image and two buttons as shown below. On clicking
the given buttons, the size of the image
Mario.jpg, changes as per the dimensions given on
the button.
11. Write the code segment required to check if age
entered by the user in the txtage text box in form
appform is a number. The code should be written
for the click event of the submit button named
bsubmit.
12. Write code to create a web page with a heading
and a button. Write the VBScript code to be
embedded in this page to take input of elements in
an array( using inputbox) and display the array
elements in reverse order on the click of the
button.
For example:
If the input elements are: 6 10 4 2 9
Then the output should be: 9 2 4 10 6
13. Write the VBScript code to be embedded within
HTML coding to swap the values of the two
numbers input by the user on the Click of the
button named bswap.
14. Write a program which contains a function that
allows two values to be passed to it and returns the
remainder when the first value is divided by the
second.
15. Write a subroutine to accept a string and convert
the first character of each word in the string to
upper case.
16. Write a subroutine to accept a date from the user
in a textbox and check the validity of the date. If

the date is valid then display the date else display


an error message.
17. Write a program to accept a string and display the
number of vowels and words in the string.
18 the selected options must be displayed in the
textbox. Write the HTML code for creating the form
and the embedded VBScript code for the click
events of the checkboxes.. Create a form that
contains two checkbox options and a textbox as
shown below. When the user clicks on any checkbox
19. Write the VBScript code to display the message
The number is odd if the input number in a
textbox is odd or The number is even if the input
number in a textbox is even on the click of check
button. The message

INDEX

S.No.
(i)
(ii)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Name
Certificate
Acknowledgem
ent
HTML Q1
VB Q1
VB Q2
VB Q3
VB Q4
VB Q5
VB Q6
VB Q7
VB Q8
VB Q9
VB Q10
VB Q11
VB Q12
VB Q13
VB Q14
VB Q15
VB Q16
VB Q17
VB Q18
VB Q19
ASP Q1

Page No.

Date
22/12/14
22/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
8/12/14
10/12/14
10/12/14
10/12/14
10/12/14
10/12/14
10/12/14
11/12/14
11/12/14
11/12/14
11/12/14
11/12/14

Sign

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

ASP Q2
ASP Q3
ASP Q4
ASP Q5
ASP Q6
ASP Q7
ASP Q8
ASP Q9
ASP Q10
ASP Q11
ASP Q12
ASP Q13
ASP Q14
ASP Q15
ASP Q16
ASP Q17
FLASH Q1

11/12/14
11/12/14
11/12/14
11/12/14
11/12/14
15/12/14
15/12/14
15/12/14
15/12/14
17/12/14
17/12/14
17/12/14
17/12/14
17/12/14
17/12/14
21/12/14
21/12/14

You might also like