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

php-important-questions

The document outlines important questions for a PHP and MySQL course, categorized by units with both 10 mark and 5 mark questions. Topics include operators, functions, arrays, file handling, and database interactions. It serves as a study guide for students to prepare for their assessments.

Uploaded by

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

php-important-questions

The document outlines important questions for a PHP and MySQL course, categorized by units with both 10 mark and 5 mark questions. Topics include operators, functions, arrays, file handling, and database interactions. It serves as a study guide for students to prepare for their assessments.

Uploaded by

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

Subject: PHP & MySql, (Unit wise – Important Questions)

Unit - 1: (10 mark Questions) Unit - 1: (5 mark Questions)

1. Explain different operators in PHP. 1. Write about constant , variables,comments. in


php.
2. Write (i) Switching Flow ii) Loop in php
2. Write features, merits and demerits of PHP.
3. Explain different data types in PHP.

4. Explain about code blocks and browser output


in php.

Unit - 2: (10 mark Questions) Unit - 2: (5 mark Questions)

1. What is function? Write i) passing with 1. Write about calling function.


arguments ii) passing argument with reference.
2. What is string? write string manipulating /
2. Explain saving state between function call (using investigating in php.
static).
3. Explain formatting string in php.
3. Write i) Return values from user define function
ii) Recursive function 4. Write default arguments in function.

4. Explain data and time function in PHP. 5. Write about defining function in php.

5. Explain array – related functions in PHP. 6. Explain about variable scope in php.

6. What is array? Explain its types. 7. What is function? How to create a function in
php.

8. What is object? How to create an object in PHP?


Unit - 3: (10 mark Questions)

1. Explain to combine HTML and


PHP code in single page.

2. Explain about accessing form input


with user – defined array.

3. Write i) Redirecting the user ii)


Working with file uploads.
4. Explain form controls ?

Unit - 3: (5 mark Questions)

1. Explain sending mail form submission.

2. Write session in environment


with registered user.

3. What is form? Write difference


between static and dynamic form.
Unit - 4: (10 mark Questions)

1. What is file? i) Creating and deleting the file.


ii) Reading the file.

2. i) Opening a file with writing ii) Append the


file.

3. Explain i) include( ) and ii) Validating the files.

4. Explain directories ?.

Unit
- 4: (5 mark Questions)

1. Write about setting cookies in PHP.

2 Write about hidden fields to save state.

3 Write about destroying sessions and unsetting


variable.

Unit - 5: (10 mark Question) Unit - 5: (5 mark Question)

1. Explain about MySQL vs MySQLi functions. 1. Explain Planning and Creating Database Tables ?

2. How to interact with MySQL using PHP? 2. Write a short note on connecting to MySQL with
Discuss with example. PHP?
3. Explain working with mysql data (or)
write about insert, delete and view of record. 3. Write about result set ?

4.write about address book ?

Record questions
1. Write features, merits and demerits of PHP. ?
2. Explain form controls ?
3. What is function? Write i) passing with arguments ii) passing argument with reference ?
4. Explain about accessing form input with user – defined array.
5. Write about setting cookies and session in PHP.
6. What is file? Explain file operations in php ?
7. Explain working with mysql data (or)
write about insert, delete and view of record.

You might also like