PHP CodeIgniter MCQ Questions & Answers

This section focuses on "CodeIgniter" PHP Framework. These Multiple Choice Questions (MCQ) should be practiced to improve the PHP CodeIgniter skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about CodeIgniter?

A. CodeIgniter is an application development framework
B. CodeIgniter can be used to develop websites, using PHP.
C. CodeIgniter is an Open Source framework
D. All of the above

View Answer

2. CodeIgniter directory structure is divided into?

A. 2 folders
B. 3 folders
C. 4 folders
D. 5 folders

View Answer

3. The __________ serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.

A. Model
B. View
C. Controller
D. All of the above

View Answer

4. Model classes are stored in __________ directory.

A. application/models
B. helpers/models
C. app/models
D. system/models

View Answer

5. In Routing, which segment represents the controller class that should be invoked?

A. First
B. Second
C. Third
D. Fourth

View Answer

6. Which of the following will specify location of your database here e.g. localhost or IP address?

A. database 
B. username 
C. hostname
D. dbdriver

View Answer

7. Which function is used to select a record?

A. put()
B. select()
C. set()
D. get()

View Answer

8. The set() function will set the data to be updated.

C. Can be true or false
D. Can not say

View Answer

9. Which class provides two-way data encryption functionality?

A. Config Class
B. Encryption Class
C. Email Class
D. Form Validation

View Answer

10. Which function displays errors in HTML format at the top of the screen?

A. show_error()
B. show_404() 
C. log_message()
D. $level

View Answer


* You must be logged in to add comment.