UNIT1-2 Questionbank
UNIT1-2 Questionbank
2 Marks Questions
1. Describe advantage of PHP. (S-22)
2. Write syntax of PHP. (S-22)
3. State the advantages of PHP (any four) (S-23)
4. State the use of “$” sign in PHP (S-23)
5. State any 2 difference between for and for each. (W-23)
6. Explain functions. List its types. (W-23)
7. List any four advantages of PHP. (S-24)
8. Write a program using Foreach loop. (S-24)
4 Marks Questions
1. Write down rules for declaring PHP variable. (S-22)
2. Write a program using do-while loop. (S-23)
3. State user defined function and explain it with example (S-23)
4. List loop control structures. Explain any one loop control structure.(W-23)
5. Explain different loops in PHP. (S-24)
6 Marks Questions
1. Explain different loops in PHP with example. (S-22)
2. Implement any three data types used in PHP with illustration. (S-23)
3. Explain decision making statements along with their syntax in PHP. (S-24)
Unit2 (Array, function and Graphics) 16 Marks
2 Marks Questions
1. What is array? How to store data in array?(S-22)
2. State the use of strlen() & strrev().(s-23)
3. List different types of arrays.(W-23)
4. State the use of str-word-count along with its syntax.(S-24)
4 Marks Questions
6 Marks Questions
1. Explain any four string functions in PHP with example.(s-22)
2. Write a program to create PDF document in PHP. (S-23)
3. List string function in PHP. Explain any two (W-23)
4. Develop a PHP program without using string functions : (W-23)
(i) To calculate length of string
(ii) To count the number of words in string
5. Explain the following string functions with example : (S-24)
(i) Str-replace
(ii) Vcwords( )
(iii) Strlen( )
(iv) Strtoupper( )