0% found this document useful (0 votes)
308 views56 pages

Visual Fox Express Is An Example Of: Group of Answer Choices MVC As Gui MVC As Web

The document consists of formative and summative questions related to the MVC framework, specifically focusing on CodeIgniter. It covers various aspects such as routing, controllers, models, views, and features of CodeIgniter, along with true/false statements and multiple-choice questions. The content is designed to assess understanding of CodeIgniter's functionalities and best practices in web development.

Uploaded by

rickman0422
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
308 views56 pages

Visual Fox Express Is An Example Of: Group of Answer Choices MVC As Gui MVC As Web

The document consists of formative and summative questions related to the MVC framework, specifically focusing on CodeIgniter. It covers various aspects such as routing, controllers, models, views, and features of CodeIgniter, along with true/false statements and multiple-choice questions. The content is designed to assess understanding of CodeIgniter's functionalities and best practices in web development.

Uploaded by

rickman0422
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

FORMATIVE 1

Visual Fox Express is an example of:


Group of answer choices
MVC as GUI
MVC as WEB

DOM stands for Document Object Model which makes it an MVC model.
Group of answer choices
True
False
MVC enables logical grouping of related actions on a controller together which is
commonly known as?

It is the application's dynamic data structure, independent of the user interface. It directly
manages the data.
Group of answer choices
Model
View
Controller
None of the above
The introduction of the frameworks Django (for Python) and Rails (for Ruby) was on?
Group of answer choices
2004
2005
2006
2007

This refers to information that is being presented to a user.


Group of answer choices
Model
View
Controller
All of the above

One of the features of CodeIgniter is extremely light weight


Group of answer choices
True
False

The following are methods of image manipulation library except for:


Group of answer choices
Localization
Cropping
Resizing
Rotating
CodeIgniter can be also modified to use HMVC.
Group of answer choices
True
False

One of the features of CodeIgniter is error loading


Group of answer choices
True
False
The first step for CodeIgniter installation is to unzip the package to your web page root
directory
Group of answer choices
True
False

One of the features of CodeIgniter is zip decoding class


Group of answer choices
True
False
One of the software requirements for CodeIgniter installation is operating system
Group of answer choices
True
False

This represents the data structures in which model classes contains functions such as
retrieve, insert, and update information in database.
Group of answer choices
Model
View
Controller
All of the above
CodeIgniter supports Query Builder Database
Group of answer choices
True
False

In URI segment, the first segment represents the ________ that should be invoked.
Group of answer choices
controller class
class function or method
ID and any variables
In URI segment, the first segment represents the controller class that should be invoked.
Group of answer choices
True
False

Routing rules are defined in your application/config/routes.php file.


Group of answer choices
True
False
URLs can be remapped using the URI Routing feature for more flexibility.
Group of answer choices
True
False

ActionScript is an example of:


Group of answer choices
MVC as GUI
MVC as WEB
Multiple developers can work simultaneously on the model, controller and views.
Group of answer choices
True
False

C++ is an example of:


Group of answer choices
MVC as GUI
MVC as WEB
MVA stands for Model-view-accelerator
Group of answer choices
True
False

This components of MVC validates user input and handles data to be displayed.
Group of answer choices
Model
View
Controller
None of the above
One of the features of CodeIgniter is applicable profiling
Group of answer choices
True
False

Rotating refers to the system of numbering pages-a list of numbered links ?


Group of answer choices
True
False
One of the features of CodeIgniter is unit testing class
Group of answer choices
True
False

One of the features of CodeIgniter is benchmarking


Group of answer choices
True
False
The first step for CodeIgniter installation is to Download CodeIgniter
Group of answer choices
True
False

One of the software requirements for CodeIgniter installation is web server


Group of answer choices
True
False
URLs in CodeIgniter are search-engine and human friendly. CodeIgniter uses a segment-
based approach.
Group of answer choices
True
False

'/' is the segment delimiter.


Group of answer choices
True
False
CodeIgniter uses a segmented-based approach
Group of answer choices
True
False

By default, the index.php file will be included in your URLs:


example.com/index.php/news/article/my_article
Group of answer choices
True
False
Flex is an example of:
Group of answer choices
MVC as GUI
MVC as WEB

The very nature of the MVC framework is such that there is low coupling among models,
views or controllers.
Group of answer choices
True
False
Codeigniter is an open-source software rapid development web framework, for use in
building dynamic web sites with PHP.
Group of answer choices
True
False

One of the features of CodeIgniter is zip decoding class


Group of answer choices
True
False
One of the features of CodeIgniter is traceback class
Group of answer choices
True
False

XTML-RPC Library is one of the features of CodeIgniter


Group of answer choices
True
False
Apache is an example of web browser
Group of answer choices
True
False

CodeIgniter has full featured database classes with support for several platforms.
Group of answer choices
True
False
CodeIgniter strives for simplicity, flexibility, and high performance in a small footprint
package.
Group of answer choices
True
False

CodeIgniter also enables you to incorporate your own scripts, or even develop core
libraries for the system, enabling you to work in a way that makes the most sense to you.
Group of answer choices
True
False
In URI segment, the second segment represents the ____________ that should be called.
Group of answer choices
controller class
class function or method
ID and any variables

In a route, the array key contains the URI to be matched, while the array value contains
the destination it should be re-routed to.
Group of answer choices
True
False
It is any representation of information such as a chart, diagram or table in a particular
format.
Group of answer choices
Model
View
Controller
None of the above
This mean that the framework navigation can be complex because it introduces new
layers of indirection and requires users to adapt to the decomposition criteria of MVC.
Group of answer choices
High cohesion
Loose coupling
Code navigability
Excessive boilerplate

.NET is an example of:


Group of answer choices
MVC as GUI
MVC as WEB
GNUstep is an example of:
Group of answer choices
MVC as GUI
MVC as WEB

Popular programming languages like JavaScript, Python, Ruby, PHP, Java, C#, and Swift
have MVC frameworks that are used for web or mobile application development straight
out of the box.
Group of answer choices
True
False
CodeIgniter strives for simplicity, flexibility, and high performance in a small footprint
package.
Group of answer choices
True
False

CodeIgniter does come with a simple template parser that can be optionally used, so it
does require a template engine.
Group of answer choices
True
False
Component Singularity is one of the objectives of CodeIgniter
Group of answer choices
True
False

One of the features of CodeIgniter is full page caching


Group of answer choices
True
False
MVC permits web pages to contain minimal scripting since the presentation is separate
from the PHP scripting.
Group of answer choices
True
False

One of the features of CodeIgniter is extremely light weight


Group of answer choices
True
False
What is the purpose of using layouts in CodeIgniter views?
Group of answer choices
To create a consistent structure across multiple pages
To load multiple models
To handle database connections
To route user requests

In the example: example.com/index.php/blog/, the , CodeIgniter would attempt to?


Group of answer choices
Create a class bolg
Find a controller named Blog.php
Call a function blog
FORMATIVE 2

In this example: example.com/class/function/ID/foo/bar, what is the controller class?


Group of answer choices
example.com
class
function

What is the file extension typically used for view files in CodeIgniter?
Group of answer choices
.php
.html
.xml
.view
Which function is used to load a view in CodeIgniter?
Group of answer choices
view()
load->view()
display_view()
show_view()

Which method is used to render a view as a partial within another view?


Group of answer choices
view()
include()
render_partial()
embed_view()

Which method is used to send data from a view back to the controller?
Group of answer choices
Data is not sent back; it’s typically handled via forms
view->data()
transfer_data()
return_data()
Routing rules are defined in your application/config/routes.php file.
Group of answer choices
True
False

Controllers are the heart of your application, as they determine how HTTP requests
should be handled.
Group of answer choices
True
False
The default controller can be set from which configuration file:
Group of answer choices
Database
Config
Routes
autoload

It is a class file that can be associated with a URI.


Group of answer choices
Control
Function
Controller
If your URI contains more than two segments they will be passed to your method as
function
Group of answer choices
True
False

Where are the view files typically stored in a CodeIgniter application?


Group of answer choices
app/Views
app/Models
app/Controllers
app/Config
Which of the following functions can be used to include a CSS file in a view?
Group of answer choices
<link rel="stylesheet" href="...">
<link href="...">
add_css('...')
load_css('...')

Controller should extends the parent controller class so that it can inherit all its methods.
Group of answer choices
True
False
List features of Codeigniter?
Group of answer choices
Model View Controller support System
Extremely Light Weight
Full Featured database classes with compatibility to several platforms
All of these

This has an invalid class name: <?php class blog extends CI_Controller { }
Group of answer choices
True
False
What does the view() function return when loading a view?
Group of answer choices
A string containing the rendered view
Nothing
A boolean
An array

How can you pass multiple pieces of data to a view?


Group of answer choices
Using an associative array
Using JSON
Using multiple arguments
Using a string

It is a class file that can be associated with a URI.


Group of answer choices
Control
Function
Controller

In the example: example.com/index.php/blog/, the , CodeIgniter would attempt to?


Group of answer choices
Create a class bolg
Find a controller named Blog.php
Call a function blog

A Controller is a class file that can be associated with a URI.


Group of answer choices
True
False

What is the primary purpose of a View in CodeIgniter?


Group of answer choices
Present data to the user
Handle database queries
Manage application logic
Route HTTP requests
Which of the following methods in CodeIgniter is used to pass data from a controller to a
view?
Group of answer choices
assign()
data()
$this->set()
with()
How can you access data passed from the controller in a view file?
Group of answer choices
As variables
Using $this->data
Using an array
Using objects

How do you prevent direct access to view files via URL?


Group of answer choices
Use an .htaccess rule
Set permissions on the file
Rename the file to .view
Load the view using AJAX only
The default controller can be set from which configuration file:
Group of answer choices
Database
Config
Routes
autoload

Class names must start with an uppercase letter.


Group of answer choices
True
False

What does the esc() function do in a view?

Group of answer choices


Escapes HTML characters to prevent XSS attacks
Exits the script
Includes a JavaScript file
Creates a new line in the HTML

The application/config/routes.php file determines which controller is called by default


Group of answer choices
True
False
Which of the following is true about views in CodeIgniter?
Group of answer choices
Views should only present data, not handle logic
Views should contain database queries
Views can directly manipulate session data
Views should handle form validation
SUMMATIVE 2
Codelgniter can load a default controller if only your site root URL is requested.
True
False

Which method is commonly used to retrieve all records from a database table using a
Model?
findAll()
getAll)
retrieveAll()
get()
How can you specify a table in a Model to interact with?

protected $table property


settable()
useTable()
table()

Which method in a Model is used to update an existing record in the database?


update()
modify()
change()
set()
Which function is used to load a Model in Codelgniter?

model()
get_model()
load->model()
use_model()
Which method in a Model can be used to insert a new record into the database?
insert()
add()
saveData()
create()

How do you validate data before saving it in a Model?


Use the $validationRules property
validateData()
checkData()
validateBeforeSave()
What is the purpose of the returnType property in a Model?

Specifies the format of returned data (e.g., array, object)


Defines the format for errors
Specifies the data type of the primary key
Configures the database.connection
What is the default return type of data when using Models in Codelgniter?

Array
JSON
Object
XML

What does the save() method do in a Model?

Inserts or updates data based on whether the record exists


Only inserts data into the database
Only updates data in the database
Deletes a record if it exists
Which method in a Model is used to retrieve a single row of data by its primary key?

find()
fetchRow()
retrieve()
getOne()
Which method is used to delete a record from the database using a Model?

delete()
remove()
destroy()
erase()

What is the primary purpose of a Model in Codelgniter?

Interact with the database


Configure routing
Handle user input
Manage views
Which property should be defined in a Model to specify the primary key of the table?

protected $primaryKey
protected $id
protected $key
protected $identifier
Which method can be used to get the number of affected rows from the last database
operation?

affectedRows()
rowCount()
countRows()
getRowCount()

You might also like