Yii PHP web application framework/PHP CodeIgniter MCQ Sample Test,Sample questions

Question:
 Which class is always active, enabling the time difference between any two marked points to be calculated?

1.Caching Class

2.Calendaring Class

3.Shopping Cart Class

4.Benchmarking Class


Question:
 Which folder will contain base class of your application?

1.Helpers

2.Models

3.Core

4.Logs


Question:
 Which of the following will specify location of your database here e.g. localhost or IP address?

1. database

2.username

3.hostname

4.dbdriver


Question:
 Which wildcards will match a segment containing only numbers?

1.(:float)

2.(:any)

3. (:int)

4. (:num)


Question:
A controller is a simple class file. As the name suggests, it controls the whole application by?

1.URC

2.URA

3.URL

4.URI


Question:
CodeIgniter directory structure is divided into?

1.2 folders

2.3 folders

3.4 folders

4. 5 folders


Question:
In Routing, which segment represents the controller class that should be invoked?

1.First

2.Second

3.Third

4.Four


Question:
Language Class : This class pre-processes the input data for security reason

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
Model classes are stored in __________ directory.

1.application/models

2. helpers/models

3.app/models

4.system/models


Question:
The set() function will set the data to be updated.

1.True

2.False

3.Can be true or false

4.Can not say


Question:
The ________ will render the page with available data and pass it on for Caching.

1.View

2.Security

3.Routing

4.Models


Question:
The _________ file contains functions that assist in working with arrays.

1.CAPTCHA Helper

2.Array Helper

3.Cookie Helper

4.Date Helper


Question:
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.

1.Model

2.View

3.Controller

4.All of the above


Question:
Which class provides two-way data encryption functionality?

1.Config Class

2.Encryption Class

3.Email Class

4.Form Validation


Question:
Which function displays error if you are trying to access a page which does not exist?

1.$log_error

2.log_message()

3. show_404()

4.$page


Question:
Which function displays errors in HTML format at the top of the screen?

1.show_error()

2.show_404()

3.log_message()

4.$level


Question:
Which function is used to select a record?

1. put()

2.select()

3.set()

4.get()


Question:
Which function will decide which record to update?

1.Groupby()

2.Where()

3. Set()

4.Orderby()


Question:
Which of the following is correct syntax for Closing a Connection?

1.$this->db->close();

2. $this->close();

3.db->close()

4.$this->db->close;


Question:
Which of the following is true about CodeIgniter?

1.CodeIgniter is an application development framework

2.CodeIgniter can be used to develop websites, using PHP

3.CodeIgniter is an Open Source framework

4.All of the above


More MCQS

  1. PHP Yii MCQ Questions & Answers
  2. PHP Laravel MCQ
  3. PHP Symfony MCQ
  4. PHP CodeIgniter MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!