WD All
WD All
Unit 2
1. Enlist any three string functions and explain any one of them with example.
B) ceil()
C) pow()
5. Enlist any four variable functions. Explain any one of them with example.
A) sqrt()
B) fmod()
C) min()
a) time()
b) getdate()
c) mktime()
a) strstr()
b) strpos()
c) str_replace()
12. Enlist any four array functions and explain any one of them with an example.
13. Enlist six string function and explain any three of them.
14.Explain current(), prev() and next() functions with syntax and example.
15. Which function is used to convert the value in integer? Explain it with syntax and
example.
a) count()
b) each()
c) in_array()
18. Write a script to find minimum number from the given list.
a) unset()
b) isset()
c) settype()
Unit 3
Unit 5
1) Select data
2) Delete data
3) Alter data
4. Write PHP script to create table "Account" and insert the data given by user. Consider
the following table.
7. Write PHP script to display table names and to display database name.
19.Answer following:
15. Write PHP script to create table "Student" and insert the data given By user and also
perform
19. Write PHP script to create table "product" and insert multi data given by user.
Consider the following table: product(product_id, product_name, product_category,
product_qty)
Unit 6
1. Explain the use of AJAX. Which object is used to implement AJAX using JavaScript?
2. What is synchronous and asynchronous request? Give an example for any one of
them to implement
AJAX.
3. Write a script to retrieve particular table content from the database using AJAX.
4. What is XMLHttpRequest? What is the use of it?
5. Explain the working of AJAX with jQuery using example.
6. Create AJAX application to implement auto complete box in which when user enters
text into
textbox, suggestion should be given based on array values.
7. Describe the working of AJAX with JavaScript and PHP.
8. Explain various methods of XMLHttpRequest.
9. Write a script with AJAX and jQuery to print the message "Welcome to PHP", when
button is
clicked.
10. Enlist the properties of XMLHttpRequest.
11. Explain ajax() method of jQuery with an example.
12. Write a script with AJAX to print the message "Kindly check your status", when
button is clicked.
13. Enlist the methods of XMLHttpRequest.
14. Explain various properties of XMLHttpRequest.
15. Write a jQuery to submit feedback form data with AJAX using HTTP post method.