CHAPTER-1
1- State the advantages of PHP (any four) -2m
2- State the use of strlen() & strrev() -2m
3- State the use of “$” sign in PHP -2m
4- State any 2 difference between for and for each -2m
5- List any four advantages of PHP -2m
6- State the use of str-word-count along with its synta -2m
7- Write a program using Foreach loop. -2m
8- Write a program using do-while loop -4m
9- Implement any three data types used in PHP with illustration -6m
10- Explain the use of break and continue statement- 4m
11- List loop control structures. Explain any one loop control structure- 4m
12- Explain the operations on string :
(i) strrev( )
(ii) strpos( )- 4m
13- Explain the following terms :
(i) Variables (ii) Datatypes
(iii) Constant (iv) Operator- 4m
14- Explain different loops in PHP- 4m
15- Explain decision making statements along with their syntax in PHP- 6m
16- Explain the following string functions with example :
(i) Str-replace
(ii) Vcwords( )
(iii) Strlen( )
(iv) Strtoupper()- 6m
17- Describe the syntax of if-else control statement with example in PHP- 4m
18- Write a PHP program to display numbers from 1-10 in a sequence using for
loop- 6m
19- Write a PHP program to
(i) Calculate length of string
(ii) Count number of words in the string- 6m
20- Write down rules for declaring PHP variable. -4m