[go: up one dir, main page]

0% found this document useful (0 votes)
22 views6 pages

Question Bank For Sum Exam

The document outlines a series of questions and topics related to PHP programming, including expressions, control statements, arrays, functions, object-oriented concepts, form handling, and database operations. It is structured into units with specific marks allocated for each question, emphasizing both theoretical and practical aspects of PHP. Additionally, it includes descriptive questions requiring explanations and code examples for various PHP functionalities.

Uploaded by

sairajb7744
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)
22 views6 pages

Question Bank For Sum Exam

The document outlines a series of questions and topics related to PHP programming, including expressions, control statements, arrays, functions, object-oriented concepts, form handling, and database operations. It is structured into units with specific marks allocated for each question, emphasizing both theoretical and practical aspects of PHP. Additionally, it includes descriptive questions requiring explanations and code examples for various PHP functionalities.

Uploaded by

sairajb7744
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/ 6

1 Attempt any FIVE 5*2=10

a) Expressions and control statements in PHP


b) Arrays, Functions and Graphics
c) Apply Object Oriented Concept in PHP
d) Creating and validating forms
e) Database Operation
f) Expressions and controlstatements in PHP
g) Database Operation
Q.2 Attempt any THREE 3*4=12
a) Expressions and control statements in PHP
b) Arrays, Functions and Graphics
c) Apply Object Oriented Concept in PHP
d) Creating and validating forms
Q.3 Attempt any THREE 3*4=12
a) Database Operation
b) Expressions and control
c) Arrays, Functions and Graphics
d) Form and Event Handling
Q.4 Attempt any THREE 3*4=12
a) Arrays, Functions and Graphics
b) Apply Object Oriented Concept in PHP
c) Creating and validating forms
d) Arrays, Functions and Graphics
e) Arrays, Functions and Graphics
Q.5 Attempt any TWO 2*6=12
a) Database Operation
b) Apply Object Oriented Concept in PHP
c) Database Operation
Q.6 Attempt any TWO 2*6=12
a) Database Operation
b) Apply Object Oriented Concept in PHP
c) Apply Object Oriented Concept in PHP
UNIT :1

Position in Question Paper Total Marks-12


Q.1. a) 2-Marks.
Q.1. f) 2-Marks.
Q.2. a) 4-Marks.
Q.3. b) 4-Marks.
1. Which tag is used to define PHP code?
2. Write features of PHP.
3. "Whole PHP code (script) is case sensitive" Justify true or false.
4. Give difference between for each and for statement.
5. What are the two types of comment tags?
6. Example of static, local and, global variable. Explain it.
7. How can we use while. do. While & switch statement?
8. How we use else and elseif statement in PHP?
9. Why PHP is known as Scripting language?
10. Explain identical operator
11. Explain the bitwise operator with suitable example.
12. What is the difference between ++$j and $j++?
13. How do you convert one variable type to another (say, a string to a number)?
14. Difference between variables and constants in PHP.
15. Explain in detail about Control Structures in PHP.
16. Why var_dump( ) is preferable over print_r() ?
17. What is type juggling?.
18. Write any 5 web server name.
19. Write a Script to construct the following pattern, using a nested for loop.
UNIT:2

Position in Question Paper Total Marks-16


Q.1. b) 2-Marks.
Q.2. b) 4-Marks.
Q.3. c) 4-Marks.
Q.4. a) 4-Marks
Q.4. d) 4-Marks
Q.4. e) 4-Marks

Descriptive Question
1. Explain any four math function available in PHP.
2. How will you create arrays in PHP?
3. Write notes on formatting strings with PHP. Describe about drawing a new
image in
PHP
4. Write the difference between built in function & user defined function.
5. Explain any four string manipulating function with example.
6. Explain exploding & imploding function example.
7. How to remove leading and trailing spaces of the strings?
8. How to traversing array with different ways?
9. How to search an element from array using built in function?
10. Write a short note sorting on array.
11. How to remove any element from array?
12. How will you find number of elements in array?
13. List string related function?
14. Explain any two. List date related functions. Explain any two.
15. Write a function that prompts the user for a color and uses what they
UNIT :3
Position in Question Paper Total Marks-16
Q.1. c) 2-Marks.
Q.2. c) 4-Marks.
Q.3. d) 4-Marks.
Q.4. b) 4-Marks.
Q.5. b) 6-Marks.
Q.6. b) 6-Marks.
Q.6. c) 6-Marks.

Descriptive Question
1. What is the purpose of $this & extends?
2. What are serializable objects in PHP?
3. How to access properties and methods explain with example and also explain
$this variable?
4. How to declare and access properties of class.
5. List types of constructors. Explain any one with suitable example.
6. Define term constructor and destructor.
7. List types of inheritance. Explain any one with suitable example.
8. How multiple inheritance is achieved in PHP ?
9. Explain method overloading concept in PHP with suitable example.
10. Explain method overriding concept in PHP with suitable example.
11. Explain types of overloading in PHP.
12. Explain magic methods in PHP
13. Describe final class and final method.
14. Explain cloning object in PHP.
15. Explain in detail the types of inheritance supports by PHP.

UNIT :4
Position in Question Paper Total Marks- 16
Q.1. d) 2-Marks.
Q.2. d) 4-Marks.
Q.4. c) 4-Marks.

Descriptive Question
1. Explain self-processing forms in PHP with example
2. Write a PHP program that demonstrate form element (input elements).
3. Write a PHP program that demonstrates passing data using GET method.
4. Write a PHP program that demonstrates passing data using POST ethod.
5. How does the form information get from the browser to the server?
6. What is the difference between get and post methods?
7. How does PHP handle forms with multiple selections?
8. What is the difference between Session and Cook ie ?
9. How can we destroy the cookie?
10. What is the use of session_start() ?
11. How to register a variable in PHP session ? How to validate user input
PHP? Explain
12. Write a program to create a session, to set a value in session, and to
remove data from a session.
13. Write a PHP code to find greatest of two numbers? Accept numbers from
users
14. Create Customer form like Customer name, Address, mobile no, item purchase,
Amount using different form input element & display user inserted values in new
PHPform
15. Create Employee form like Employee name, Address, Mobile no, Date of birth,
Post & Salary using different form input element & display user inserted values in
same PHP form
16. A simple calculator web application that takes 2 numbers and an operator
(+,-,*,/,%) from an HTML page and returns the result page with the operation
performed on the operands.
17. Write a program that demonstrates use of cookies.
18. Write a PHP program that demonstrates use of session
19. Write a simple PHP program to check that emails are valid.
20. Explain the superglobals PHP
21. Define session and cookies
22. Define cookies. What is the need of it?
23. Define Cookie. How to create & delete it How can we retrieve a Cookie value?

UNIT :5
Position in Question Paper Total Marks-14
Q.1. e) 2-Marks.
Q.1. g) 2-Marks.
Q.3. a) 4-Marks.
Q.5. a) 6-Marks.
Q.5. c) 6-Marks.
Q.6. a) 6-Marks.
1. What is the purpose of the semicolon in MySQL queries?
2. Explain field types of MySQL.
3. Which command would you use to view the available databases or tables?
4. How can you view the structure of a table?
5. How do you connect to a MySQL database using mysqli?
6. How do you connect mysql database with PHP?
7. How do you submit a query to MySQL using mysqli?
8. How can you retrieve a string containing an error message when a mysqli error
occurs?
9. How can you determine the number of rows returned by a mysqli query?
10. How can you retrieve a particular row of data from a set of mysqli results?
11. What negative effects can happen if you do not close the objects created by
mysqli methods?
12. List types of MySQL databases.
13. Write the PHP code for fetching the data from a database to webpage?
14. What is difference between mysql_fetch_object and mysql_fetch_array
15. Explain mysql_num_rows and mysql_selectdb command

16. Write use of mysql _fetch row() a n m ysqlfetch_array() command


17. Explain mysql_fetch_array()function.
18. Write a PHP Script to display all the records of students (Name, Address, Class,
Semester) from MySQL table std_info in table format.
19. Explain use of query string with example in PHP.
20. Write a PHP script to insert one record in student registration table ( roll_ no,
name,
city, mobile no) in MySQL database.
21. Write a PHP script to read Account information for customer name, account
no,account_type, branch_name, city, amount from Account table and display all
this
information in table format on output screen.Account table is in MySQL database.
22. Describe mysql_connect() function of MySQL database using PHP.
23. Write PHP script to select records in table of MySQL database
24. Write PHP script to update record in table of MySQL database.
25. Write PHP script to delete records in table of MySQL database
26. List storage engine in MySQL. Explain any one.

You might also like