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

UNIT1-2 Questionbank

The document outlines a series of questions and tasks related to PHP programming, divided into two units: Expression and control statements, and Arrays, functions, and Graphics. It includes questions of varying marks, covering topics such as advantages of PHP, loops, arrays, string functions, and creating PDF documents. The questions are designed to assess understanding and practical application of PHP concepts.
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)
8 views2 pages

UNIT1-2 Questionbank

The document outlines a series of questions and tasks related to PHP programming, divided into two units: Expression and control statements, and Arrays, functions, and Graphics. It includes questions of varying marks, covering topics such as advantages of PHP, loops, arrays, string functions, and creating PDF documents. The questions are designed to assess understanding and practical application of PHP concepts.
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

Unit1 (Expression and control statement in PHP) 12 Marks

2 Marks Questions
1. Describe advantage of PHP. (S-22)
2. Write syntax of PHP. (S-22)
3. State the advantages of PHP (any four) (S-23)
4. State the use of “$” sign in PHP (S-23)
5. State any 2 difference between for and for each. (W-23)
6. Explain functions. List its types. (W-23)
7. List any four advantages of PHP. (S-24)
8. Write a program using Foreach loop. (S-24)

4 Marks Questions
1. Write down rules for declaring PHP variable. (S-22)
2. Write a program using do-while loop. (S-23)
3. State user defined function and explain it with example (S-23)
4. List loop control structures. Explain any one loop control structure.(W-23)
5. Explain different loops in PHP. (S-24)

6 Marks Questions
1. Explain different loops in PHP with example. (S-22)
2. Implement any three data types used in PHP with illustration. (S-23)
3. Explain decision making statements along with their syntax in PHP. (S-24)
Unit2 (Array, function and Graphics) 16 Marks
2 Marks Questions
1. What is array? How to store data in array?(S-22)
2. State the use of strlen() & strrev().(s-23)
3. List different types of arrays.(W-23)
4. State the use of str-word-count along with its syntax.(S-24)

4 Marks Questions

1. Write a program to create associative array in PHP.(s-22)


2. Write PHP script to sort any five numbers using array function.(s-22)
3. Explain associative and multi-dimensional array. (S-23)
4. Differentiate between implode and explode function. (S-23)
5. Explain the operations on string : (W-23)
(i) strrev( )
(ii) strpos( )
6. Explain the use of break and continue statement.(W-23)
7. Explain procedure to create PDF in PHP. Write example .(W-23)
8. Differentiate between implode & explode functions.(S-24)
9. Explain Indexed & Associative arrays with suitable example.(S-24)
10.Write a program to create PDF document in PHP.(S-24)

6 Marks Questions
1. Explain any four string functions in PHP with example.(s-22)
2. Write a program to create PDF document in PHP. (S-23)
3. List string function in PHP. Explain any two (W-23)
4. Develop a PHP program without using string functions : (W-23)
(i) To calculate length of string
(ii) To count the number of words in string
5. Explain the following string functions with example : (S-24)
(i) Str-replace
(ii) Vcwords( )
(iii) Strlen( )
(iv) Strtoupper( )

You might also like