CodeIgniter Software MCQs

CodeIgniter Software MCQs

The following CodeIgniter Software MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of CodeIgniter Software. We encourage you to answer these multiple-choice questions to assess your proficiency.
Please continue by scrolling down.

1: Base URL can be changed from which configuration file:

A.   Database

B.   Config

C.   Routes

D.   Autoload

2: Which one is the business logic in codeigniter?

A.   Model

B.   View

C.   Controller

D.   Helper

3: Which one will be treated as parameter in that URI?

A.   Index.php

B.   Somethingvon

C.   Somethingvtwo

D.   Somethingvthree

4: Which function is use to set the value of form input box ?

A.   Setvalue()

B.   Set()

C.   Set_value()

D.   Non of above

A.   Rotating

B.   Pagination

C.   Cropping

D.   All of above

6: Which class is used to calculate the time between two points in your application ?

A.   Profiling class

B.   Security class

C.   Benchmarking class

D.   None of above

7: The separation of logic and presentation can be seen in which of the following?

A.   MVC approach

B.   Simpleton approach

C.   Master/Slave Model

D.   Semaphore Model

8: If you want a url like this, example.com/index.php/products/view/email.codeigniter what should you do?

A.   Use a controller called do codeigniter

B.   Disable query strings

C.   Use URL Suffix

D.   All of the above

9: If your controller contains a function named _remap() which of the following is true?

A.   It will always get called regardless of what the URI contains.

B.   It overrides the normal behavior in which the URI determines which function to call

C.   CodeIgniter permits user to override normal behaviour through the use of the _remap() function

D.   All of the above

10: If you want to use a constructor in any of the Controllers, which of the following is necessary to achieve this?

A.   Parent::__construct();

B.   Child::__construct();

C.   Parent::controller();

D.   Super::controller()

11: If you have a model called “Admissions”, what is the right way to access a function within this model if the model is assigned to a different object name like ‘fubar’?

A.   $this->load->model(‘Admissions’, ‘fubar’); $this->fubar->function();

B.   $this->load->model(‘Admissions’, ‘fubar’); $this->Admissions->function();

C.   $this->load->model(‘Admissions’, ‘fubar’); $this->admin->function();

D.   $this->load->model(‘Admissions’, ”); $this->fubar->function();

12: Which of the features listed below do not exist in PHP4?

A.   Exceptions

B.   Control structures

C.   Classes and objects

D.   Constants

13: Which of the following files are used for setting configuration options?

A.   Routes.php

B.   Config.php

C.   Database.php

D.   Autoload.php

14: Which of the following statements about Codeignitor are TRUE?

A.   Helpers can only be loaded inside a model.

B.   Plugins live inside the system/application/plugins folder.

C.   Codeignitor core libraries do NOT have the CI_ prefix.

D.   Sessions cannot be passed as an array.

A.   Anchor('folder/controller/function',' Hyperlink Tiltle','class=

B.   Href anchor();

C.   Hyperlink_anchor();

D.   A href