Codeigniter(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. To load a default controller, what should you do?
  1.    Give the default controller name
  2.    Always inherit the parent controller
  3.    Specify this in application/config/routes.php
  4.    Add a setting to application/config.php
Explanation:-
Answer: Option D. -> Add a setting to application/config.php





Question 2. List features of Codeigniter?
  1.    Model View Controller support System
  2.    Extremely Light Weight
  3.    Full Featured database classes with compatibility to several platforms
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 3. Which one will control all the segments?
  1.    index.php
  2.    somethingvone
  3.    somethingvtwo
  4.    somethingvthree
Explanation:-
Answer: Option A. -> index.php





Question 4. What are the different types of hook point in Codeigniter?
  1.    post_controller_constructor
  2.    pre_controller
  3.    post_sytem
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 5. _______ is an Application Development Framework - a toolkit - for people who build web sites using PHP.
  1.    Joomla
  2.    Zend
  3.    CodeIgniter
  4.    Wordpress
Explanation:-
Answer: Option C. -> CodeIgniter





Question 6. default controller can be set from which configuration file:
  1.    database
  2.    config
  3.    routes
  4.    autoload
Explanation:-
Answer: Option C. -> routes




Question 7. Which one is the business logic in codeIgniter?
  1.    Model
  2.    view
  3.    controller
  4.    helper
Explanation:-
Answer: Option A. -> Model





Question 8. You can display the amount of memory used by the system by calling:
  1.    this->benchmark->memory_use()
  2.    this->memory_use()
  3.    this->benchmark->memory_usage()
  4.    this->memory_usage()
Explanation:-
Answer: Option C. -> this->benchmark->memory_usage()





Question 9. What kind of link is this:
  1.    URI
  2.    QueryString
  3.    ftp link
  4.    None
Explanation:-
Answer: Option A. -> URI





Question 10. Which function gives you to view file friendly syntax to get browser cookies?
  1.    get_cookie()
  2.    list_cookie()
  3.    dis_cookie()
  4.    set_cookie()
Explanation:-
Answer: Option A. -> get_cookie()