Top Most Codeigniter Objective Questions
CI session contains the following:
a. Session_ID
b. users IP address
c. user manager
d. first activity timestamp
Ans: A,B,C
Which of the following is/are false:
a. The third parameter in load->view function used for output buffering
b. The default batch size for bcc is 500
c. we can store data in session by calling set_userdata() method
d. to validate form we use the form library in CI.
Ans: B,D
Which key word is used callback function ?
(a) _callback
(b) callback_
(c) _callback_
(d) Non of above
Ans: B
Which class is used to calculate the time between two points in your application ?
(a) Profiling class
(b) Security class
(c) Benchmarking class
(d) Non of above
Ans: C
What work in almost exactly the same way as Helpers ?
(a) Helper
(b) Plugin
(c) Library
(d) All of above
Ans: B
What correct line of coded loading a view ?
(a) $this->load->view(‘view_name’)
(b) $this->view(‘view_name’)
(c) $this->load(‘view_name’)
(d) $this->load->view_name(‘view’)
Ans: A
Which refers to the system of numbering pages-a list of numbered links ?
(a) Rotating
(b) Pagination
(c) Cropping
(d) All of above
Ans: B
Which is extremely useful and even though also optional ?
(a) Model
(b) View
(c) Controller
(d) Non of above
Ans: A
How many parameters are set_rules function ?
(a) 4
(b) 3
(c) 2
(d) 5
Ans: B
Which function is use to set the value of form input box ?
(a) setvalue()
(b) set()
(c) set_value()
(d) Non of above
Ans: C