QB
QB
11.Explain the role of controllers in CodeIgniter and how data is passed to them.
12.Develop a PHP script to pass employee details from a controller and
display them on a view page in CodeIgniter.
13.Create a PHP code example to demonstrate the use of an anonymous function.
14.Write a program in PHP to illustrate the use of get() and
set() magic methods
for encapsulating access to private properties.
15.Provide examples of common file permissions such as read, write, and
execute, and explain how they are represented (e.g., rwx or numeric values
like 755).
16.Mention PHP functions like chmod() and chown().
17.Explain how PEAR DB handles database errors and demonstrate error
handling using the DB::isError() function.
18.Discuss the implementation of the MVC pattern in CodeIgniter with a
relevant example.
19.Define HTTP and explain the roles of a web server and a web browser with
the help of a diagram.
20.Identify the PHP function used to delete an element from an array.
21.Compare and contrast a class and an object in PHP. Explain how
constructors and destructors improve the functionality of classes.
22.Outline the process of performing Create, Read, Update, and Delete
(CRUD) operations in PHP using database queries.
23.Describe the URL routing mechanism in CodeIgniter and explain the
structure of application URLs.
24.Discuss the PHP functions available for storing data in arrays.
25.Explain the working of constructors and destructors in PHP with a
program demonstrating their functionality in a Person class.
26.Highlight the difference between fgets() and fread() functions for file
reading in PHP.
27.Provide an example to demonstrate how to read data from web form
controls like text boxes in PHP.
28.Explain the structure of a CodeIgniter application and the purpose of each
main directory.
29.Write a PHP script using echo, print, and printf to display formatted text
and numbers.
30.List and describe five commonly used file modes in PHP with their syntax.
31.Create a PHP class that demonstrates the use of static properties and
methods for shared functionality across objects.
32.Provide examples of performing database operations (SELECT,
INSERT, UPDATE, DELETE) using PEAR DB in PHP.
33.Explain the steps involved in implementing the MVC pattern in
CodeIgniter with an example.
34.Write a PHP program to define a base class Shape with a method getArea().
35.Create a derived class Rectangle that overrides the getArea() method to
calculate the area of a rectangle.
36.What is the use of $ symbol in PHP, explain with an example.
37.Explain database connectivity in PHP with reference to MYSQL.
38.Define Session and Cookies. Explain with an example program.
39.List and explain the Control structures used in PHP.
40.What are the benefits of using PEAR DB in PHP applications?
41.Define PDO and explain how it serves as an abstraction layer for working
with databases in PHP.
42.How to read data from web form control like Text boxes explain with
an example.
43.Define Session and Cookies. Explain with an example program.
44.Design a PHP script for uploading a file to the server and display the
uploaded files details.
45.Write PHP code for reading and writing characters in file.
46.What is connection pooling, and how can it improve performance?
47.List and explain the string functions in PHP
48.Explain how to manage transactions in PHP with commit, rollback,
and savepoints.
49.Write PHP code for creating connection with mysqli.
50.Why are prepared statements important for security and performance?
Provide examples using mysqli and PDO.
51.How does caching improve database performance? Discuss common
caching methods.
52.Write PHP code for reading a file line by line.
53.How to read data from web form control like Text boxes explain with
an example.
54.How does PEAR DB handle database errors? Demonstrate error handling
in PEAR DB using the DB::isError() function.
55.Explain file opening function. Write PHP code for opening the File
for Random Access.
56.Explain the key features of CodeIgniter and compare it with other
PHP frameworks.
57.Describe the MVC architecture in CodeIgniter and its benefits in
web development.
58.Explain the steps to install CodeIgniter and set up a basic project.