17th
Apr
CodeIgniter MCQ

CodeIgniter MCQ

  • Admin
  • 17th Apr, 2021
  • 1011 Followers

CodeIgniter MCQ

Following are mostly asked Codeigniter MCQ test that are designed for professionals like you to crack you interviews. You can take this Codeigniter online test before appearing to you real interview. This Codeigniter quiz there are around 30+ multiple choice questions on Codeigniter with four options.

1) __ is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.

  • A. CodeIgniter
  • B. NetBeans
  • C. Sublime
  • D. All of the above

2) CodeIgniter Features are:

  • A. Model-View-Controller Based System
  • B. Full Featured database classes with support for several platforms.
  • C. Query Builder Database Support
  • D. Form and Data Validation
  • E. All of the above

3) CodeIgniter is based on the __ development pattern.

  • A. MVP (Model-View-Presenter)
  • B. MVC (Model-View-Controller)
  • C. MVVM (Model-View-View Model )
  • D. All of the above

4) The __ is information that is being presented to a user.

  • A. View
  • B. Model
  • C. Controller
  • D. None of the above

5) 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.

  • A. Controller
  • B. View
  • C. Model
  • D. None of the above
Download Free : CodeIgniter MCQ PDF

6) The __ represents application's data structures.

  • A. Model
  • B. View
  • C. Controller
  • D. None of the above

7) The view can be loaded by the following syntax:

  • A. $this->load->view('name');
  • B. $this->view-load->view('name');
  • C. $this->loading->view('name');
  • D. $this->loads->view('name');

8) A helper can be loaded by following syntax:

  • A. $this->load->helper('name');
  • B. $this->loads->helper('name');
  • C. $this->loading->helper('name');
  • D. $this->helper-load->helper('name');

9) __ can be customized by wildcards or by using regular expressions.

  • A. Routes
  • B. pages
  • C. files
  • D. None of the above

10) In Database Configuration, __ specify location of your database.

  • A. hostname
  • B. username
  • C. password
  • D. None of the above

11) CRUD stands for ____.

  • A. Create Read Update Delete
  • B. Create Real Update Delete
  • C. Create Read Upgrade Delete
  • D. None of the above

12) In MVC patterns, Model mainly provides __ functionalities.

  • A. CRUD
  • B. OOPs
  • C. Procedure
  • D. None of the above

13) Database connection can be closed manually, by using the following syntax:

  • A. $this->database-close->close();
  • B. $this->db-close();
  • C. $this->db->close();
  • D. $this->db->cancel_db();

14) Which function is used to laod a library in Codeigniter?

  • A. library('class name')
  • B. load('class name')
  • C. libraries('class name');
  • D. None of the above

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

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

16) Which syntax helps to display the amount of memory used by the system?

  • A. this->benchmark->memory_use()
  • B. this->memory_usage()
  • C. this->memory_use()
  • D. this->benchmark->memory_usage()

17) Which of the following lines of code use to send an email?

  • A. library('email'); Mail details code here $this->email->send();
  • B. $this->load->email; Mail details code hereā€¦. $this->email->send();
  • C. $this->load->library('email'); Mail details code here $this->email->send();
  • D. None of the above

18) Which of the following proper syntax is example of query?

  • A. $query = $this->db->query('SELECT name, title, email FROM my_table');
  • B. $this->db->query('SELECT name, title, email FROM my_table');
  • C. $this->db-> ('SELECT name, title, email FROM my_table');
  • D. None of the above

19) What are the features of the Codeigniter Framework?

  • A. Model View Controller support System
  • B. Full Featured database classes with compatibility to several platforms
  • C. Extremely Light Weight
  • D. All of these

20) ___ is an Application Development Framework simply a toolkit for people who build web sites using PHP.

  • A. Joomla
  • B. Zend
  • C. CodeIgniter
  • D. Wordpress

21) Which one is the business logic in CodeIgniter?

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

22) Default controller can be set from which configuration file:

  • A. Config
  • B. Routes
  • C. Database
  • D. Autoload

23) Display the amount of memory used by the system by calling:

  • A. this->memory_use()
  • B. this->memory_usage()
  • C. this->benchmark->memory_use()
  • D. this->benchmark->memory_usage()

24) Default controller can be set from which configuration file:

  • A. Specify this in application/config/routes.php
  • B. Add a setting to application/config.php
  • C. Give the default controller name
  • D. Always inherit the parent controller

25) What are the different types of hook point in Codeigniter?

  • A. post_sytem
  • B. pre_controller
  • C. post_controller_constructor
  • D. All of these

26) Which one will control all the segments?

  • A. somethingvone
  • B. somethingvthree
  • C. index.php
  • D. somethingvtwo

27) In CI, the closing tag of PHP is optional:

  • A. True
  • B. False

28) Which variable name is correct?

  • A. $Text
  • B. $text
  • C. $some-test-here
  • D. $f

29) Which one will be treated as parameter in that URI?

  • A. somethingvthree
  • B. somethingvtwo
  • C. somethingvone
  • D. index.php

30) Which one will be treated as method in that URI?

  • A. somethingvone
  • B. somethingvtwo
  • C. somethingvthree
  • D. index.php

31) You can display the amount of memory used by the system by calling:

  • A. $this->memory_usage()
  • B. $this->benchmark->memory_usage()
  • C. $this->memory_use()
  • D. $this->benchmark->memory_use()

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Apr
CSS MCQ
01st
Apr
MYSQL MCQ
01st
May
Python MCQ
01st
May
Powerpoint MCQ
01st
Apr
Drupal MCQ
01st
May
Perl MCQ