WBP - PracticalFile - INDEX - BCA-V E
WBP - PracticalFile - INDEX - BCA-V E
INDEX
S. No. Problem Statement Date
1. Design the following static web pages required for an online book store web site. 16-09-2022
A. HOME PAGE: The static home page must contain three frames.
B. LOGIN PAGE
C. CATOLOGUE PAGE: The catalogue page should contain the details of
all the books available in the web site in a table.
D. REGISTRATION PAGE
2. Write JavaScript to validate the following fields of the Registration page. 23-09-2022
A. First Name (Name should contains alphabets and the length should not be
less than 6 characters).
B. Password (Password should not be less than 6 characters length).
C. E-mail id (should not contain any invalid and must follow the standard
pattern [email protected])
D. Mobile Number (Phone number should contain 10 digits only).
E. Last Name and Address (should not be Empty).
3. Write and explain the installation steps and method of PHP using screen shots. 30-09-2022
PHP can be installed using two ways:
1) Using WAMP
2) Using XAMP
4. Write a script to echo the following to the browser, using the variable you created: 30-09-2022
“What goes around, comes around.”
5. Write a PHP Script to calculate the area and circumference of circle. 07-10-2022
6. Write a script to reproduce the output below. Manipulate only one variable using 07-10-2022
simple and using no simple arithmetic operators (assignment operator s) to
produce the values given in the statements. In the script each statement ends with
"Value is now $variable."
Value is now 8.
Add 2. Value is now 10.
Subtract 4. Value is now 6.
Multiply by 5. Value is now 30.
Divide by 3. Value is now 10.
Increment value by one. Value is now 11.
Decrement value by one. Value is now 10.
7. Write a script using one variable “$whatisit” to print the following to the browser. 07-10-2022
Your echo statements may include no words except “Value is”.
Value is string.
Value is double.
Value is boolean.
Value is integer.
Value is NULL.
8. Write a PHP scripts to differentiate the print and echo command 14-10-2022
12. Write a PHP script using nested for loop that creates a chess board 21-10-2022
13. Write a PHP program to find three numbers from an array such that the sum of 21-10-2022
three consecutive numbers equal to zero.
14. Create an index array with value red, green, orange, blue, pink, white and black, 28-10-2022
Count the total array and display all values of array using for loop.
15. Create an Associative array with value fruits, veggie, dry-fruits and Count the 28-10-2022
total array and display all values of array using for each loop.
16. Create an Multidimensional Array and Display the array with index and values 28-10-2022
using <pre> tag.
17. Write a PHP script to sort the following associative array : 28-10-2022
array("Sophia"=>"31","Jacob"=>"41","William"=>"39","Ramesh"=>"40") in
a) ascending order sort by value
b) ascending order sort by Key
c) descending order sorting by Value
d) descending order sorting by Key
18. WAP to swap two values (call by reference) using function 04-11-2022
19. WAP to create a PHP form according to the given format 04-11-2022
20. Design a form given below with validation and error message in PHP 11-11-2022
23. Write a program to store the current date and time in a cookie and display the last 25-11-2022
visited date and time on the web page
24. Write a program to store page views counting session to increment the count on 25-11-2022
each refresh and to show the count on the page
25. Write and explain the steps to create a database, table, select query using 2-12-2022
PhpMyadmin.
30. Create a student Registration in PHP and Save and Display the student Records. 30-12-2022