0% found this document useful (0 votes)
3 views

PHP Question Bank (1)

The document consists of questions related to PHP programming, covering topics such as arrays, loops, data types, variable declaration rules, string functions, inheritance, introspection, and HTTP methods. It also includes programming tasks that require writing PHP code for displaying numbers, creating arrays, defining functions, and explaining concepts like serialization and method overloading. The questions are categorized into two sections based on marks allocation.

Uploaded by

sanskrutinile06
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

PHP Question Bank (1)

The document consists of questions related to PHP programming, covering topics such as arrays, loops, data types, variable declaration rules, string functions, inheritance, introspection, and HTTP methods. It also includes programming tasks that require writing PHP code for displaying numbers, creating arrays, defining functions, and explaining concepts like serialization and method overloading. The questions are categorized into two sections based on marks allocation.

Uploaded by

sanskrutinile06
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

2 Marks

1. Define Array? State it’s example.


2. Write syntax of for each loop.
3. Describe advantages of PHP
4. List any four data types of PHP.
5. Write down rules for declaring PHP variable.
6. List any string functions in PHP.
7. Difference Between for and for each loop
8. What is Inheritance?
9. Define Introspection
10. Define GET and POST Method
11. State the use of strlen() and strrev()?

4 Marks

1. Write a program in PHP to display numbers from 1-10 in a sequence using for loop.
2. Explain Indexed array and Associative array with suitable example.
3. Define function .How to define user defined function in PHP? Explain with example.
4. Write a program to create associative array in PHP.
5. Explain Different loops in PHP with example.
6. Explain Constructor with example.
7. Define Serialization and explain it with example.
8. Explain Method Overloading with example.

You might also like