BHARATI VIDYAPEETH INSTITUTE OF TECHNOLOGY
QUESTION BANK
Unit Test-I (Shift:-I & II)
Program: - Computer Engineering Group Program Code:- CM/IF
Course Title: -Web Based App. Dev. With PHP Semester: - Sixth
Course Abbr & Code:-WBP (22619) Scheme: I
--------------------------------------------------------------------------------------------------
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.
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.
CHAPTER-2 (Array, Function and Graphics) (CO2)
2 MARKS
1. How to delete element from an array?
2. How to use flip function in PHP.
3. How will you create arrays in PHP?
4. Write syntax to create new image.
5. State use of include( ) and require( ) function.
4 MARKS
1. Write a program for traversing an array using for.
2. Write the use of anonymous function in PHP. Explain with example.
3. Explain the multidimensional array with example.
4. Write a PHP program to scale a given image.
5. Write a PHP program to demonstrate various string manipulation operations.
6. Describe exploding and imploding function with example.
CHAPTER-3 (Object Oriented Concepts in PHP) (CO3)
2 MARKS
1. Define data encapsulation.
2. Define inheritance.
3. List serializable objects in PHP.
4 MARKS
1. Write a PHP program to demonstrate function overloading.
2. How to define properties and method of a class? Explain with suitable example.
3. How to define and use destructor in PHP.