R4RIN
Articles
Java 8
MCQS
Yii PHP web application framework MCQ Quiz Hub
PHP CodeIgniter MCQ
Choose a topic to test your knowledge and improve your Yii PHP web application framework skills
1. Which of the following is true about CodeIgniter?
CodeIgniter is an application development framework
CodeIgniter can be used to develop websites, using PHP
CodeIgniter is an Open Source framework
All of the above
2. CodeIgniter directory structure is divided into?
2 folders
3 folders
4 folders
5 folders
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.
Model
View
Controller
All of the above
4. Model classes are stored in __________ directory.
application/models
helpers/models
app/models
system/models
5. In Routing, which segment represents the controller class that should be invoked?
First
Second
Third
Four
6. Which of the following will specify location of your database here e.g. localhost or IP address?
database
username
hostname
dbdriver
7. Which function is used to select a record?
put()
select()
set()
get()
8. The set() function will set the data to be updated.
True
False
Can be true or false
Can not say
9. Which class provides two-way data encryption functionality?
Config Class
Encryption Class
Email Class
Form Validation
10. Which function displays errors in HTML format at the top of the screen?
show_error()
show_404()
log_message()
$level
11. The ________ will render the page with available data and pass it on for Caching.
View
Security
Routing
Models
12. Which folder will contain base class of your application?
Helpers
Models
Core
Logs
13. A controller is a simple class file. As the name suggests, it controls the whole application by?
URC
URA
URL
URI
14. The _________ file contains functions that assist in working with arrays.
CAPTCHA Helper
Array Helper
Cookie Helper
Date Helper
15. Which wildcards will match a segment containing only numbers?
(:float)
(:any)
(:int)
(:num)
16. Which function will decide which record to update?
Groupby()
Where()
Set()
Orderby()
17. Which of the following is correct syntax for Closing a Connection?
$this->db->close();
$this->close();
db->close()
$this->db->close;
18. Which class is always active, enabling the time difference between any two marked points to be calculated?
Caching Class
Calendaring Class
Shopping Cart Class
Benchmarking Class
19. Language Class : This class pre-processes the input data for security reason
TRUE
FALSE
Can be true or false
Can not say
20. Which function displays error if you are trying to access a page which does not exist?
$log_error
log_message()
show_404()
$page
Submit