CodeIgniter MCQ

CodeIgniter MCQ

  • Sharad Jaiswal
  • 26th Jun, 2021

Practice here the best CodeIgniter MCQ Questions for your basic knowledge of CodeIgniter. This CodeIgniter MCQ Test contains 25+ CodeIgniter Multiple Choice Questions. You have to select the right answer to every question to check your final preparation for the CodeIgniter MCQ Interview or Exams.

Practice CodeIgniter MCQ Questions;

1) Which one is the business logic in codeIgniter?

  • A. View
  • B.Model
  • C.helper
  • D.Controller

2) How to check CodeIgniter framework version:

  • A. CI_FRAMEWORK
  • B.Codeigniter*version*
  • C.CI_VERSION
  • D.None of them

3) Different types of hook point in Codeigniter?

  • A. post_sytem
  • B.pre_controller
  • C.post_controller_constructor
  • D.All of the above

4) _____ is an Application Development Framework using PHP.

  • A. Zend
  • B.joomla
  • C.codeigniter
  • D.wordpress

5) What is the correct line of loading a view ?

  • A. $this->load(‘view_name’)
  • B.$this->view(‘view_name’)
  • C.$this->load->view(‘view_name’)
  • D.$this->load->view_name(‘view’)

6) Which key word is used callback function ?

  • A. callback_
  • B.call_back_
  • C._callback_
  • D.All of the above

7) You can easily create your own libraries in codeigniter.

  • A. True
  • B.False

8) Keywords always should write down in

  • A. Lowercase
  • B.Uppercase
  • C.Camelcase
  • D.All of the above

9) Who was developed by CodeIgniter ?

  • A. Alen turing
  • B.Kemp Thopson
  • C.Rick Ellis
  • D.Konrad Zuse

10) Codeigniter has features as:

  • A. Extremely Light Weight
  • B.Custom Routing
  • C.Model View Controller
  • D.All of the above

11) Which function gives you to view file friendly syntax to get browser cookies?

  • A. get_cookie()
  • B.set_cookie()
  • C.dis_cookie()
  • D.list_cookie()

12) Which of the following line of code use to a send email?

  • A. $this->load->email; Mail details code here…. $this->email->send();
  • B.library('email'); Mail details code here $this->email->send();
  • C.$this->load->library('email'); Mail details code here $this->email->send();
  • D.ERROR

13) How do you set default timezone in codeigniter?

  • A. date_default_timezone
  • B.date_default_timezone_set(‘India/Mumbai’);
  • C.SET(‘India/Mumbai’);
  • D.Both A & B

14) Codeigniter was initially relaesed in:

  • A. February 27, 2006
  • B.February 28, 2006
  • C.February 27, 2007
  • D.February 28, 2007

15) Following ORM is supported by CodeIgniter Framework are

  • A. DataMapper
  • B.Doctrine
  • C.Gas
  • D.Both A & B

16) What is the Latest version of Codeigniter?

  • A. CodeIgniter 2.1.11
  • B.CodeIgniter 3.0.10
  • C.CodeIgniter 3.1.11
  • D.None of them

17) How to set CSRF token in codeIgniter?

  • A. config['csrf_protection'] = TRUE;
  • B.$['csrf_protection'] = TRUE;
  • C.$config['csrf_protection'] = TRUE;
  • D.None of them

18) CodeIgniter supported databases?

  • A. Oracle
  • B.ODBC
  • C.CUBRID
  • D.All of the above

19) Some functions used in CodeIgniter are;

  • A. get_mimes()
  • B.html_escape(var)
  • C.config_item(key)
  • D.All of the above

20) How to print SQL statement in codeigniter model?

  • A. $this->db->SQL_query();
  • B.$this->last_query();
  • C.$this->db->last_query();
  • D.None of them

21) Which of the following is true about Codeigniter?

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

22) CodeIgniter is use in building dynamic web sites with ..............

  • A. PHP
  • B.Java
  • C.Python
  • D.Angular

23) CodeIgniter directory structure is divided into ................ parts.

  • A. 2
  • B.4
  • C.3
  • D.6

24) CodeIgniter is based on the Model-View-Controller (MVC) development pattern.

  • A. True
  • B.False

25) The essential part of a CodeIgniter framework is its ...........

  • A. Form Validation
  • B.libraries
  • C.Error Handling
  • D.File Uploading

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Nov
Oracle MCQ
01st
Nov
NoSQL MCQ