CodeIgniter MCQ Questions
11. The ________ will render the page with available data and pass it on for Caching.
A. View
B. Security
C. Routing
D. Models
View Answer
Ans : A
Explanation: The View will render the page with available data and pass it on for Caching.
12. Which folder will contain base class of your application?
A. Helpers
B. Models
C. Core
D. Logs
View Answer
Ans : C
Explanation: Core : This folder will contain base class of your application.
13. A controller is a simple class file. As the name suggests, it controls the whole application by?
A. URC
B. URA
C. URL
D. URI
View Answer
Ans : D
Explanation: A controller is a simple class file. As the name suggests, it controls the whole application by URI.
14. The _________ file contains functions that assist in working with arrays.
A. CAPTCHA Helper
B. Array Helper
C. Cookie Helper
D. Date Helper
View Answer
Ans : B
Explanation: The Array Helper file contains functions that assist in working with arrays.
15. Which wildcards will match a segment containing only numbers?
A. (:float)
B. (:any)
C. (:int)
D. (:num)
View Answer
Ans : D
Explanation: (:num) − It will match a segment containing only numbers.
16. Which function will decide which record to update?
A. Groupby()
B. Where()
C. Set()
D. Orderby()
View Answer
Ans : B
Explanation: The where() function will decide which record to update.
where($key[, $value = NULL[, $escape = NULL]])
17. Which of the following is correct syntax for Closing a Connection?
A. $this->db->close();
B. $this->close();
C. db->close();
D. $this->db->close;
View Answer
Ans : A
Explanation: Database connection can be closed manually, by executing the following code : $this->db->close();
18. Which class is always active, enabling the time difference between any two marked points to be calculated?
A. Caching Class
B. Calendaring Class
C. Shopping Cart Class
D. Benchmarking Class
View Answer
Ans : D
Explanation: Benchmarking class is always active, enabling the time difference between any two marked points to be calculated.
19. Language Class : This class pre-processes the input data for security reason.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: Input Class : This class pre-processes the input data for security reason.
20. Which function displays error if you are trying to access a page which does not exist?
A. $log_error
B. log_message()
C. show_404()
D. $page
View Answer
Ans : C
Explanation: show_404() function displays error if you are trying to access a page which does not exist.
Discussion