[go: up one dir, main page]

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

Chapter-1 PHP Questions

The document outlines various questions and tasks related to PHP programming, including advantages of PHP, string functions, loop control structures, and decision-making statements. It includes programming exercises using different loops and string operations, as well as explanations of variables, data types, and syntax rules. The content serves as a guide for understanding and applying PHP concepts and functionalities.

Uploaded by

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

Chapter-1 PHP Questions

The document outlines various questions and tasks related to PHP programming, including advantages of PHP, string functions, loop control structures, and decision-making statements. It includes programming exercises using different loops and string operations, as well as explanations of variables, data types, and syntax rules. The content serves as a guide for understanding and applying PHP concepts and functionalities.

Uploaded by

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

CHAPTER-1

1- State the advantages of PHP (any four) -2m

2- State the use of strlen() & strrev() -2m

3- State the use of “$” sign in PHP -2m

4- State any 2 difference between for and for each -2m

5- List any four advantages of PHP -2m

6- State the use of str-word-count along with its synta -2m

7- Write a program using Foreach loop. -2m

8- Write a program using do-while loop -4m

9- Implement any three data types used in PHP with illustration -6m

10- Explain the use of break and continue statement- 4m

11- List loop control structures. Explain any one loop control structure- 4m

12- Explain the operations on string :

(i) strrev( )

(ii) strpos( )- 4m

13- Explain the following terms :

(i) Variables (ii) Datatypes

(iii) Constant (iv) Operator- 4m

14- Explain different loops in PHP- 4m

15- Explain decision making statements along with their syntax in PHP- 6m

16- Explain the following string functions with example :

(i) Str-replace

(ii) Vcwords( )

(iii) Strlen( )
(iv) Strtoupper()- 6m

17- Describe the syntax of if-else control statement with example in PHP- 4m

18- Write a PHP program to display numbers from 1-10 in a sequence using for

loop- 6m

19- Write a PHP program to

(i) Calculate length of string

(ii) Count number of words in the string- 6m

20- Write down rules for declaring PHP variable. -4m

You might also like