PHP Question Bank Ch-1,2 - 090233
PHP Question Bank Ch-1,2 - 090233
COMPUTER DEPARTMENT
QUESTION BANK
Web Based App. Dev. With PHP
CHAPTER-1 (Expressions and control statements in PHP) (CO1)
2 MARKS
1. Enlist any four advantages of PHP.
2. How to write a PHP document?
3. List bitwise operators in PHP.
4. Give difference between for and foreach statement.
5. Define identical operator.
6. Write syntax of PHP.
7. State the use of “$” sign in PHP
4 MARKS
1. Explain data types used in PHP.
2. Write a PHP program to calculate Fibonacci series.
3. Explain print and echo functions with PHP programs.
4. Describe static, local and global variable with example.
5. Explain loop control structure with suitable example.
6. Write down rules for declaring PHP variable.
7. Explain different loops in PHP with example. (6 marks)
8. Write a program using foreach loop.
9. Explain any three data type used in PHP (6 marks)
10. Explain the use of break and continue statements.
11. Describe the syntax of if-else control statement with example in PHP.
12. Write a PHP program to show numbers from 1-10 in a sequence using for loop. (6 marks)