PHP Imp
PHP Imp
Questions Year
No.
Unit 1
1. Describe advantage of PHP.2M S-22,S-23,S-24,W-24
2. Write syntax of PHP.2M S-22
3. List any four data types in MySQL.2M S-22,W-24
4. Write down rules for declaring PHP variable.4M S-22
5. Explain different loops in PHP with example.6m, S-22,s-24
List loop control structures. Explain any one loop control w-23
structure.4m
List any four data types of PHP.2m W-22,S-23
Implement any three data types used in PHP with illustration.4m
Write syntax of foreach loop.2m w-22,w-23
difference between for and for each. s-24
Example of Foreach loop w-24
Explain the use of break and continue statements.4m w-22,w-23
Describe the syntax of if-else control statement with example in w-22
PHP.
Write a PHP program to display numbers from 1-10 in a sequence w-22
using for loop.4m
State the use of “$” sign in PHP.2M S-23
Write a program using do-while loop. S-23
Explain the following terms : (i) Variables (ii) Datatypes (iii) Constant w-23
(iv) Operators.4M
Explain decision making statements along with their syntax in S-24
PHP.4M
UNIT 2
Write PHP script to sort any five numbers using array function.2m S-22
Explain any four string functions in PHP with example.6m S-22
Define Array. State its example. List different types of arrays.2m W-22,w-23
Explain functions. List its types. w-23
Explain Indexed array and associative arrays with suitable w-22,S-24
example.4m ,S-23
Explain associative and multi-dimensional arrays.4M
Explain two functions to scale the given image.4m w-22
Describe user defined function with example.4m w-22, S-23
Write a PHP program to (i) Calculate length of string (ii) Count w-22,w-23
number of words in the string.6M W-24
Write a PHP program (i) to find largest of two number.
(ii) for connecting MYSQL.