WBP SW I QB

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

WBP QUESTION BANK

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. State the use of “$” sign in PHP.
6. Define type juggling and type casting.

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. Explain different loops in PHP.

CHAPTER-2 (Array, Function and Graphics) (CO2)


2 MARKS

1. How to use flip function in PHP.


2. How will you create arrays in PHP.
3. Write syntax to create new image.
4. State use of include( ) and require( ) function.
5.State the use of str-word-count along with its syntax.
6.List different types of arrays.
4 MARKS
1. Write the use of anonymous function in PHP. Explain with example.
2. Explain the multidimensional array with example.
3. Write a PHP program to demonstrate various string manipulation operations.
4. Describe exploding and imploding function with example.
5.List string function in PHP. Explain any two.
6.Write a program to create PDF document in PHP

CHAPTER-3 (Object Oriented Concepts in PHP) (CO3)


2 MARKS
1. Define data encapsulation.
2. Define inheritance.
3. List serializable objects in PHP.
4.Define class and object creations

4 MARKS
1. Compare method overloading and method overriding.
2. How to define properties and method of a class? Explain with suitable example.
3. How to define and use destructor in PHP.
4. Write a difference between Constructor and Destructor

You might also like