CODEIGNITER QUIZ DESCRIPTION

Your custom controller should?

  • Extend the child controller
    B. Extend the superclass
    C. Extend the super controller
    D. Extend the parent controller
     

  • Extend the superclass

  • Extend the super controller

  • Extend the parent controller

Benchmark can be added to model, view and controllers

  • True

  • false

Which are true:

  • helper can only be loaded in controller and model. The view cannot load helper
     

  • we cannot load multiple helper by passing an array of values to the first parameter.

  • Plugins are stored within the system/application/plugins/ folder.

  • all codeigniter core libraries have the prefix CI_

What are the different types of hook point in Codeigniter?

  • post_controller_constructor
     

  • pre_controller

  • post_sytem

  • All of these

 List features of Codeigniter?

  • Model View Controller support System
     

  • Extremely Light Weight

  • Full Featured database classes with compatibility to several platforms

  • All of these

Which one will be treated as method in that URI?

  • index.php
     

  • something one

  • something two

  • something three
     

What work in almost exactly the same way as Helper?

  • Helper
     

  • Plugin

  • Library

  • All of above

Which variable name is incorrect?

$Textcorrect
B. $fcorrect
C. $user idcorrect
D. $text
E. $some-test-herecorrect

  • A , B, C,E

  • D

Which are false?

  • all Codeigniter class names should start with uppercase and rest of the name should be in lowercase.
     

  • you can remap function calls by using a function in your controller called _remap()

  • you can pass data to a view file by using the third parameter of the load->view function. and  view file cannot call other view files

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

  • get_cookie()
     

  • list_cookie()

  • dis_cookie()

  • set_cookie()

How to update data using Active Record Pattern in CodeIgniter?

  • $this->db->update('mytable', $object);
     

  • $this->db->updated('mytable', $object);

  • $this->db->updateData('mytable', $object)

  • None Of The Above

Which one will be treated as parameter in that URI?

  • index.php
     

  • something one

  • something two

  • something three

Which of the follwoing will be treated as method in that URI?

  • Something Two
     

  • index.php

  • something one

  • None Of The Above

Which of the following cannot be used to extend the CodeIgniter System?

  • Library
     

  • Helper

  • System Hooks

  • Jar files

default controller can be set from which configuration file:

  • database
     

  • config

  • routes

  • autoload

In CI, the closing tag of PHP is optional.

  • True
     

  • False
     

The above URl is built on segments

  • True
     

  • False
     

Which one is the business logic in codeIgniter?

  • Model
     

  • view

  • controller

  • helper

The keywords true, false, null should always be in lowercase letter in codeigniter

  • True
     

  • False

Which configuration file is used to autoload resources?

  • database
     

  • config

  • routes

  • autoload

The keywords true, false, null should always be in lowercase letter in codeigniter

  • True
     

  • False

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

  • setvalue()
     

  • set()

  • set_value()

  • Non of above

Which one is not true

  • we can set automatic filtering on by setting $config[‘global_xss_filtering’] to TRUE
     

  • We can check image for safety in optional second parameter to the xss clean function

  • The email class also serves as a wrapper class in CI

  • email can only be sent from controller

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

  • this->benchmark->memory use()
     

  • this->memory use()

  • this->benchmark->memory usage()

  • this->memory usage()

What kind of link is this:

  • URIcorrect
     

  • QueryString

  • ftp link

  • Nonewrong

Which one is the business logic in codeigniter?

  • model
     

  • view

  • controller

  • helper

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

  • Profiling class

     

  • Security class

  • Benchmarking class

  • Non of above
     

Which key word is used callback function ?

  • _callback
     

  • callback_

  • callback

  • None of above

Which one is the business logic in codeigniter?

  • View
     

  • Model

  • Controller

  • None Of The Above

Which key word is used callback function ?

  • _callback
     

  • callback_

  • callback