0% found this document useful (0 votes)
42 views2 pages

PHP Question Bank Ch-1,2 - 090233

The document is a question bank for a Web Based Application Development course using PHP, covering topics such as expressions, control statements, arrays, functions, and graphics. It includes a variety of questions categorized by marks, ranging from advantages of PHP to programming tasks like calculating Fibonacci series and manipulating arrays. The questions are designed to assess understanding of PHP syntax, data types, control structures, and string functions.

Uploaded by

Huzeefa Pathan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

PHP Question Bank Ch-1,2 - 090233

The document is a question bank for a Web Based Application Development course using PHP, covering topics such as expressions, control statements, arrays, functions, and graphics. It includes a variety of questions categorized by marks, ranging from advantages of PHP to programming tasks like calculating Fibonacci series and manipulating arrays. The questions are designed to assess understanding of PHP syntax, data types, control structures, and string functions.

Uploaded by

Huzeefa Pathan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JAMIA POLYTECHNIC, AKKALKUWA

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)

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.
6. What is array ? How to store data in array ?
7. State the use of str_word_count() along with the syntax.
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.
7. Write a program to create associative array in PHP.
8. Define function. How to define user defined function in PHP ? Give example.
9. Explain any four string functions in PHP with example. (6 marks)
10. Write PHP script to sort any five numbers using array function.
11. Explain Indexed and Associative array with suitable example.
12. State variable function and state its example.
13. Write a program to create PDF document in PHP. (6 marks)
14. Explain two functions to scale the given image.
15. Write a PHP program to (6 marks)
(i) Calculate length of string
(ii) Count number of words in the string

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy