Wednesday, April 19, 2017

CakePHP Multiple Choice Questions

Question: What is the inventory of some database connected functions in cakephp? 
A.      Find
B.      Find All
C.      Create
D.      Query
Question: What is the name of cake's database design file? 
A.      Data source
B.      Database
C.      Database.php.default
Question: What are normally used mechanism of cakephp? 
A.      Security
B.      Database
C.      Session
D.      Helper
Question: Cakephp allows you to set of connections a grouping of controllers, models and views and discharge as a packaged application. 
A.      Helper
B.      Plugin
C.      Views
D.      Behavior
Question: Which process will delete the session cookie and all session data store in the temporary file system? 
A.      Null able()
B.      destroy()
C.      unset()
Question: what are the server built-in ways of authenticating users stored in your application? 
A.      From authenticate
B.      Database authenticate
C.      Basic authenticate
D.      Digest authenticate
Question: What are the names of data foundation in Cakephp pattern array 
A.      Database/ SqlServer
B.      Database/ MySql
C.      Database/ postgee
D.      All of them

Question: How to load plug in separately or all of them in a single call? 
A.      CakeLoad('Contract Manager');
B.      CakePlugin::load All();
C.      CakePlugin::load('Contract Manager');
D.      Cake.LoadAll();
Question: Behaviors add more functionality to our models. Cakephp comes with a number of built-n behaviors such as 
A.      Authentication
B.      tree
C.      Translate
D.      Session
Question: Which helper applies to build forms quickly? 
A.      HTMLHelper
B.      JsHelper
C.      Form Helper
D.      Cache Helper
Question: Which Helper contains method to create text more usable and friendly in our views? 
A.      HTMLHelper
B.      JsHelper
C.      Form Helper
D.      Text Helper
Question: The security Component make an simple way to incorporate tighter security in our application. Its provides methods for various tasks like.. 
A.      Restriction which HTTP Methods
B.      Requiring that SSl be used
C.      Limiting cross controller communication
D.      All of them
Question: _____ensure that the model is loaded when it is needed. 
A.      Uses('AppModel','Model');
B.      App::uses('AppModel",Modelname');
C.      App::uses('AppModel','Model');
D.      ('AppModel",Model');
Question: Which is the default cache Engine in Cakephp? 
A.      File cache
B.      Apccache
C.      Win cache
D.      XcacheEngine
Question: What are usually used apparatus of cakephp? 
A.      Security
B.      Sessions
C.      Access control lists
D.      Emails
E.       All of them
Question: What are generally used helpers of cakephp? 
A.      Cache Helper
B.      Form Helper
C.      HtmlHelper
D.      jsHelper
Question: What is an Element? 
A.      Element in cakephp are smaller and reusable bits of view code
B.      Used to display the views that contain presentational code.
C.      Used to change the way that models behaves and enforcing model to act as something else.
Question: A copy of Cakephp database pattern file is found in 
A.      /app/Config/database.php.default
B.      /app/database.php.default
C.      /app/Config/database/database.php.default
D.      /app/Config/database.default
Question: To exertion with database in the latest version of cakephp, ______must be enabled in your php.ini file.
A.      mysql
B.      pdo_mysql
C.      pdo_mysqli
D.      mysqli

Question: while a user uses a form to POST data to your application, that information is available in:
A.      $this->get->data
B.      $this->post->data
C.      $this->form->data
D.      $this->request->data
Question: To modify the default value of security salt, you have to exertion with the core php file located in 
A.      /app/Config/core.php
B.      /app/core.php
C.      /system/Config/core.php
D.      /Config//app/core.php
Question: The _____seed is used for encrypt /decrypt strings. 
A.      salt
B.      cipher
C.      hash
D.      rsa
Question: What are 3 essential parts of MVC? 
A.      The Model represent the application data
B.      The View renders a presentation of model data
C.      Module represents the application part
D.      The Controller handles and routes requests made by the client

Question: What are the different parts of view layer? 
A.      View
B.      Element
C.      Controller
D.      Model
E.       Helper

Question: Which block of the content contains the content of the render view? 
A.      Content Block
B.      Title Block
C.      Section Block
Question: What are the link types in Cakephp? 
A.      Has One
B.      Many to Many
C.      HasMany
D.      Belongs To
Question: Cakephp is a PHP framework package which enables you to develop custom application. It supports MVC based architecture. 
A.      TRUE
B.      FALSE
Question: What is the file that first loaded when you run a application using cakephp? 
A.      Index.php
B.      Bootstrap.php
C.      Core.php
D.      Database.php
Question: What is the first function that loaded from a controller? 
A.      About
B.      Index
C.      Delete
D.      Edit

Question: The _________is the basic of cakephp applications. 
A.      controller class
B.      Model class
C.      component class
D.      view class
Question: We use the Session Component's Session Component::________method to situate a massage to a session variable to be displayed on the page after redirection. 
A.      setFlash()
B.      setMessage()
C.      showMessage()
D.      showFlash()
Question: Cakephp model class files positioned in 
A.      /app/Config/model
B.      /app/system/Model
C.      /app/Model
D.      /app/Models/Model
Question: Cakephp works with convention over configuration. 
A.      True
B.      False
Question: By naming your model post, cakephp will automatically infer that this model work with controller name 
A.      postcontroller
B.      post_controller
C.      PostController
D.      post
Question: The mode named post will tied to a database table named _________ automatically 
A.      post
B.      posts
C.      tbl_post
D.      none
Question: _________often characterize a single function or interface in an application. 
A.      View
B.      Controller
C.      Model
D.      Actions
Question: To take a benefit of the support features in cakephp, you'll need to use Cake's FormHelper in your:
A.      action
B.      helper
C.      controller
D.      views
Question: The only instruction in the action uses _______to pass data from the controller to view. 
A.      set()
B.      show()
C.      view()
D.      get()
Question: cake's view files are stored in/app/View inside a folder named after the controller they correspond to .So for controller named PostController the view folderlocation will be 
A.      /app/posts
B.      /app/views/Posts/
C.      /app/View/post/
D.      /app/View/posts/
Question: In cakephp, the view /template file extension is: 
A.      php
B.      html
C.      ctp
D.      ctm
Question: $this->Html is the instance of cakephp's ________ class. 
A.      HtmlHelper
B.      ViewHelper
C.      htmlhelper
D.      viewHelper
Question: In cakephp validation rules are defined in: 
A.      controller
B.      model
C.      view
D.      helper
Question: Every cakephp request includes a Cake Request object which is accessible using $this->request. 
A.      true
B.      false
C.      none
Question: Cake's routing is found in: 
A.      /app/Config/core.php
B.      /app/Config/database.php
C.      /app/Config/routes.php
D.      /app/routes.php
Question: Controller class names are ______, Camel Cased, and end in Controller. 
A.      plural
B.      singular
C.      both
D.      none
Question: The getReady() function of the PeopleController class will look for a view template in: 
A.      /app/view/People/get_ready.ctp
B.      /app/view/PeopleController/get_ready.ctp
C.      /app/People/get_ready.ctp
D.      /app/view/get_ready.ctp
Question: In general, filenames match the class names, which are: 
A.      uppercase
B.      lowercase
C.      CamelCased
D.      Capitalized
Question: The ____folder is where you'll place third-party PHP libraries you need to use with your cakephp application.
A.      app
B.      vendors
C.      lib
D.      plugins

Question: Model classnames are ______ and CamelCased.
A.      plural
B.      singular
C.      both
D.      none

Question: Cakephp _____folder is where you'll do most of your application development. 
A.      app
B.      vendors
C.      lib
D.      plugins
Question: Cakephp does not support multiple primary keys. 
A.      true
B.      false
C.      none
Question: A_____ is a class that aids in controller logic. 
A.      Component
B.      helper
C.      behavior
D.      model
Question: _______are an abstraction that enable models to control different types of data constantly. 
A.      views
B.      components
C.      behaviors
D.      Data sources
Question: The render () method is automatically called at the end of every requested controller______. 
A.      controller
B.      model
C.      action
D.      view
Question: Which of the following association methods are existing in CakePHP?
A.      Development
B.      Production
C.      Testing
D.      Advanced
E.       All
Question: before using an auto_increment key as the primary key, you may also use char (36). 
A.      True
B.      False
Question: gathering of foreign key name of the related table followed by _id in Cakephp. 
A.      True
B.      False
Question: Model extensions in Cakephp is called 
A.      Components
B.      Behaviors
C.      Helpers
D.      All

Question: Actions are methods on a ________ that handle requests. 
A.      controller
B.      components
C.      models
D.      views
Question: The set method () is the chief way to send data from your controller to your_________. 
A.      controller
B.      model
C.      action
D.      view
Question: The __________class is the parent class to all of your application's controllers. 
A.      ViewController
B.      DevController
C.      Appcontroller
D.      controller
Question: the conventional view file name is the lower cased and underscored version of the ______name. 
A.      controller
B.      model
C.      action
D.      view
Question: $this->request->is() takes a single argument in Cakephp, which can be 
A.      request method: get, put, post, delete
B.      Some request identifier: Ajax
C.      None
D.      Both
Question: Controller extensions is called 
A.      Behaviors
B.      Components
C.      Helpers
D.      All
Question: Model extensions is called 
A.      Components
B.      Behaviors
C.      Helpers
D.      All
Question: View extensions is called in Cakephp
A.      Components
B.      Behaviors
C.      Helpers
D.      All
Question: Which of the following database storage engine Cakephp does not support? 
A.      MySQL
B.      PostgreSQL
C.      Microsoft SQL Sever
D.      SQLite
E.       Oracle
Question: CakePHP uses app/tmp directory for 
A.      Model descriptions
B.      Cached views
C.      Session information
D.      Cookie
E.       All
Question: Which of the following association methods are available in CakePHP? 
A.      Development
B.      Production
C.      Testing
D.      Advanced
E.       All
Question: Which of the following database storage engine Cakephp does not support? 
A.      MySQL
B.      PostgreSQL
C.      Microsoft SQL Sever
D.      SQLite
E.       Oracle
Question: CakePHP uses app/tmp directory for 
A.      Model descriptions
B.      Cached views
C.      Session information
D.      Cookie
E.       All


No comments:

Post a Comment