0% found this document useful (0 votes)
431 views71 pages

Application Development and Emerging Technology Complete Key Answers

This document contains a quiz on PHP and CodeIgniter fundamentals. It includes multiple choice and fill-in-the-blank questions about topics like PHP versions, CodeIgniter components like models, views, controllers, URI segments, and form helpers. The questions cover basics of PHP, CodeIgniter architecture and features, and form and database operations in CodeIgniter.

Uploaded by

jusipragas
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)
431 views71 pages

Application Development and Emerging Technology Complete Key Answers

This document contains a quiz on PHP and CodeIgniter fundamentals. It includes multiple choice and fill-in-the-blank questions about topics like PHP versions, CodeIgniter components like models, views, controllers, URI segments, and form helpers. The questions cover basics of PHP, CodeIgniter architecture and features, and form and database operations in CodeIgniter.

Uploaded by

jusipragas
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/ 71

lOMoARcPSD|30965628

Application Development and Emerging Technology


COMPLETE KEY ANSWERS
BS Information Technology (AMA Computer University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Mark Ragas ([email protected])
lOMoARcPSD|30965628

Prelims:

php.org is the official php resource.


Answer: False
It is a URI Component that serve as persistent,
location-independent identifiers
Answer: URN
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ PHP version that enabled the filter extension
by default Native JSON default
Answer: 5.2
The function or ci code to load a view.
Answer: $this->load->view
The default file extension for PHP file is “.php”
Answer: True
PHP runs on various platforms operating system
such as apache and IIS.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
The third URI Segment
Answer: parameter
The page that displays a message that the
requested page was not found.
Answer: Error 404
The first URI segment
Answer: controller
PHP 3 was released in 1998.
Answer: True
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ PHP version that uses void return type, class
constant visibility modifiers, null types.
Answer: 7.1
Originally, PHP is known as “Personal Home Pages”
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

The function or ci code to show or call the client-


side “non-existing page” error
Answer: show_404()
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ PHP version currently in use on most
websites and included several new features such as
support for object-oriented programming.
Answer: 5
It is a URI Component that locates the path or
address.
Answer: Web Address
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ Version of PHP that introduces the use of
superglobals.
Answer: 4.1
It is the Presentation Layer of the MVC Architecture.
Answer: View

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION. Read the question carefully and


type your answer in the space provided.
_____ What year did PHP began its development?
Answer: 1994
PDO stands for Personal Data Objects.
Answer: False
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ What functionality was added to PHP 5.1 as
interface for accessing databases?
Answer: PDO
The second URI segment
Answer: method
The function of ci code to return a URI segment
Answer: $this->uri->segment
What is the meaning of URL?
Answer: Uniform Resource Locator

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

It is the process of redirecting or remapping a


controller class or method.
Answer: Routing
PHP is one of the most widely used and
recognizable web technology used on the Internet.
Answer: True
It is a configuration file that is used for configuration
of site-access issues, such as URL redirect, URL
shortening, Access-security control.
Answer: .htaccess
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
__________ Who is the inventor of PHP?
Answer: Rasmus Lerdorf
PHP development began in 1995.
Answer: False
URN stands for?
Answer: Uniform Resource Name

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Andi Gutmans was the inventor of PHP.


Answer: False
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ Year that PHP 3 was released
Answer: 1998
URI stands for?
Answer: Uniform Resources Identifier
_____ Version of PHP that uses namespace support
late static binding.
Answer: 5.3
IDENTIFICATION. Read the question carefully and
type your answer in the space provided.
_____ Year that PHP was officially called Personal
Home Page Tools.
Answer: 1995
Form Helper method or code to return an HTML
button.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: form_button()
Form Helper method or code to return an HTML
checkbox input type.
Answer: form_checkbox()
Element can be placed onto a web page in a pre-
checked fashion by setting the checked attribute.
Answer: Checkbox
A variable declared within a function.
Answer: Local
Delimiter symbol for rules in form validation.
Answer: “|” or pipe symbol
Form Helper method or code to return an HTML
text input type.
Answer: form_input()
row_array() fetch the data as a single row and
result_array() fetch the data as a multi-dimensional
array.
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

It is the Data Access Layer or Persistence Layer of


the MVC Layered Architecture.
Answer: Model
CI function code to load a Model class.
Answer: $this->load-
Storage data in PHP
Answer: variables
CI method or code to set a rule in form validation.
Answer: $this->form_validation->set_rules()
Query Builder class method that inserts record on
the database.
Answer: $this->db->insert()
CI file directory where the database configuration
settings and database groups is found.
Answer: Application/config/database.php
_construct() method executes when a class is
created or instantiated.
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

CI file directory where autoload classes and


functions are defined.
Answer: Application/config/autoload.php
Can hold an unlimited number of characters, and
the text renders in a fixed-width font.
Answer: TextArea
It is a line that is not read/executed as part of the
program.
Answer: comment
CI method or code to set an error message in form
validation.
Answer: $this->form_validation->set_message()
Query Builder or Active Record pattern in CI
replaces the traditional query string in php coding.
Answer: True
Form Helper method or code to return an HTML
password input type.
Answer: form_password()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Define styles for your documents, including the


design, layout and variations in display for different
devices and screen sizes.
Answer: CSS
Database group configuration in CI is stored in a
multi-dimensional array.
Answer: True
Other term used for Option buttons?
Answer: Radio Buttons
Element represents a control that presents a menu
of options.
Answer: HTML select
One of the main points of interaction between a
user and a web site or application. They allow users
to send data to the website.
Answer: HTML Forms
CI method or code that display/echo error messages
when form_validation->run() returns false.
Answer: validation_errors()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Symbol used to combine 2 sting values to create


one string.
Answer: .
PHP varianbles start with what symbol?
Answer: $
Area that can be specified by the cols and rows
attributes, or even better; through CSS’ height and
width properties.
Answer: Textarea
These are functions which are passed to another
function and takes this “other function” as a
parameter.
Answer: callbacks
This allows us to collect data from the htm file and
display to the php script.
Answer: $_POST
A variable declared outside a function.
Answer: Global

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

A vital part of a website or system UI because it


accepts inputs as data parameters
Answer: Forms
CI function code to load the database class.
Answer: $this->load->database();
CI method or code to load the form validation
library.
Answer: $this->load->library(‘form_validation’)
Defines a multi-line text input control.
Answer: //< textarea > tag
The controller’s $data[“title”] variable will be
delivered in a view as $title.
Answer: True
Form Helper method or code to return an HTML
radio input type
Answer: form_radio()
FILL IN THE BLANK: __________ functions to help
you build your form easier and faster.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: Form helper


IDENTIFICATION: __________ What do you call the
3rd, 4th segment of the URI?
Answer: Parameters
IDENTIFICATION: What do you call the 1st segment
of the URI?
Answer: Controller
CodeIgniter is developed PHP.org
Answer: False
IDENTIFICATION: __________ Data Access Layer or
Persistence Layer of the MVC Layered Architecture.
Answer: Model
IDENTIFICATION: __________ variables are just like
session variables except it is only available on the
next request.
Answer: Flashdata
IDENTIFICATION: __________ Meaning of URL.
Answer: Uniform Resource Locator

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

.htaccess file that will automatically route the


index.php next to the Controller
Answer: True
CI, basically contains 4 main folders Application,
System, User, Help Guide
Answer: False
FILL IN THE BLANK: __________ is the process of
redirecting or remapping a controller class or
method.
Answer: Routing
The Model represents your data structures. Typically
your model classes will contain functions that help
you retrieve, insert, and update information in your
database.
Answer: True
FILL IN THE BLANK: __________ will be loaded by
the controller passing the returned data from the
model.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: Callbacks X; Code Igniter X; CodeIgniter X;


Setbacks X;
CI uses Model-Viewable-Controller architecture
Answer: False
The window is the information that is being
presented to a user.
Answer: False
A Model is a simple class file. As the name suggests,
it controls the whole application by URI.
Answer: False
The fonts folder contains font related information
and utilities.
Answer: True
The name of the controller class must start with an
lowercase letter.
Answer: False
User_guide folder contains all the code of your
application that you are building
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

The Model represents your data structures


Answer: True
Views classes will contain functions that help you
retrieve, insert and update information in your
database.
Answer: False
Whenever a request comes to CodeIgniter, it will
first go to index.php page.
Answer: True
MVC ,means Modular_View, Controller
Answer: False
The controller must be called with lowercase letter.
Answer: True
Use the same name of the method as your parent
class,
Answer: False
Before passing the request to Application Controller,
the Security of the submitted data is checked.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
MVC is a software approach that separates
application logic from presentation.
Answer: True
The Models folder contains standard CodeIgniter
libraries
Answer: False
The Controller will render the page with available
data and pass it on for Caching.
Answer: False
Model classes are stored in application/models
directory.
Answer: True
Route This folder contains files related to the log of
the system
Answer: False
A View will normally be a web page, but in
CodeIgniter, a view can also be a page fragment like

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

a header or footer. It can also be an RSS page, or any


other type of “page”.
Answer: True
CodeIgniter directory structure is divided into 5
folders .
Answer: False
System This folder contains CodeIgniter core codes,
libraries, helpers and other files, which help make
the coding easy.
Answer: True
Beside the three folders, there is one more
important file named “index.php”.
Answer: True
To load the view, the function is like this: $this-
>load->view(‘name’);
Answer: True
The person that introduce MVC.
Answer: Trygve Reenskaug

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Routes− The language folder contains language files.


You can ignore it for now.
Answer: False
The Table folder contains core database drivers and
other database utilities.
Answer: False
The Controller serves as an intermediary between
the Model, the View, and any other resources
needed to process the HTTP request and generate a
web page.
Answer: False
Views – Application’s HTML files will be placed in
this folder.
Answer: True
Config – This folder contains all the cached pages of
your application. These cached pages will increase
the overall speed of accessing the pages
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Database – The database folder contains core


database drivers and other database utilities.
Answer: True
Config – This folder contains various files to
configure the application. With the help of
config.php file,
Answer: True
2nd_party – In this folder, you can place any plugins,
which will be used for your application.
Answer: False
The libraries folder contains standard CodeIgniter
libraries (to help you with e-mail, calendars, file
uploads, and more). You can create your own
libraries or extend (and even replace) standard
ones, but those will be saved in the
application/libraries directory to keep them
separate from the standard CodeIgniter libraries
saved in this particular folder.
Answer: True
The MVC represents your data structures

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
Hooks – The files in this folder provide a means to
tap into and modify the inner workings of the
framework without hacking the core files.
Answer: True
CodeIgniter is based on the Model-View-Controller
(MVC) development pattern.
Answer: True
The helpeme folder contains standard CodeIgniter
helpers (such as date, cookie, and URL helpers).
Answer: False
Model- This folder contains CodeIgniter’s core class.
Do not modify anything here. All of your work will
take place in the application folder.
Answer: False

Midterms:

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: __________ Method that accepts


recipients that are not visible to the other recipients
Answer: bcc()
IDENTIFICATION: __________ It is any process or
technology that allows users who forgot their
passwords authenticate and reset the passwords of
their account
Answer: Forgot password
IDENTIFICATION: __________ An input required to
verify the user’s record existence in order to reset
his/her password.
Answer: Email address
IDENTIFICATION: __________ Method that accepts
the email’s body or content
Answer: message($message)
IDENTIFICATION: __________ Method that accepts
‘secondary recipients’ that receives the mail just to
keep them informed
Answer: cc($cc)

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Account registration can be approved through


activation link sent from user’s email or by an admin
approval.
Answer: True
IDENTIFICATION: __________ Method that returns a
string containing any server messages, email header
and email message.
Answer: print_debugger()
Database Normalization is the process of organizing
records to minimize redundancy.
Answer: True
Form helper class helps us by returning formatted
HTML form elements.
Answer: True
We should subject a user for approval on
registration.
Answer: True
Registration is an activity of deleting user
information on the database.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
IDENTIFICATION: __________ Method that accepts
the recipient’s email address
Answer: to()
is_unique requires table and field name as
parameter.
Answer: True
valid_email form validation rule is used to check if
an e-mail is valid or not.
Answer: True
matches form validation rule checks 3 fields that
should have an equal or same value.
Answer: False
is_uniques form validation rule checks if the input is
unique from the table.
Answer: False
IDENTIFICATION: __________ Method that accepts
the sender’s email address
Answer: from()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: __________ Method that accepts


the email’s title or heading text
Answer: subjec()
$this->db->insert_id() inserts an id in the database.
Answer: False
IDENTIFICATION: __________ Method that triggers
the sending of email
Answer: send()
The $to parameter can be an email address string, a
comma delimited email addresses string or an array
containing email addresses strings.
Answer: True
In order to use and access session variables on
webpages, we must put the session_start()
Answer: True
Sessions in native PHP are the “superglobal”
variables that can not be accessed anywhere on the
web application because it is stored on the browser
session. Can f

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
We can load the email class by:
declaring $this-> retrieve->library(‘email’);
Answer: False
You can declare your own session variable on the
$_SESSION superglobal.
Answer: True
When you no longer need the session variable you
have set, you can remove it by using $this->session-
>unset_userdata()
Answer: True
Flashinfo are session variables that are only
available until the next request.
Answer: False
SSL is defined as any process or technology that
allows users who forgot their password
authenticate their account and reset their
passwords without falling the help des
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

$this->session->set_userdata() is also used to set or


change an existing session variable value
Answer: True
1The Control Append function of the URL helper
returns the $config[‘base_url’] value defined on
application/config/config.php.
Answer: False
Matching Type. Choose the correct answer from the
selection provided.
used as a function library that we can just load to
the controller or view.
Answer: helper
returns a string containing any server messages,
email header and the email message.
Answer: $this->email->print_debugger()
is the process of organizing the columns/records or
attributes and tables of the database to minimize
data redundancy.
Answer: Database Normalization

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

SSPR stands for


Answer: Self-service password reset
methods is very useful on getting pieces of data,
one at a time particularly on multiple tables and
databases
Answer: Look Up
variables that store values but it can only contain
strings and numbers
Answer: constant
are templates for reports
Answer: Queries
formatted result of database queries and contain
useful data for decision making and analysis
Answer: Reports
It is very useful on web forms security against online
bots, crawlers and spammers.
Answer: CAPTCHA
runs a back-end database query and displays the
information in organized and informational manner

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: single report page


application to help the program perform small or
simple task such as formatting a parameter,
computation or series of commands
Answer: autoloaded
functions that accepts input parameters and returns
an HTML input form element.
Answer: form helper class
encrypted email as a key
Answer: md5
function returns the auto incremented or last
inserted id from the query
Answer: $this->db->insert_id()
Name the configuration file needed to set helper
Answer: autoload config
bcc stands for Black Carbon Copy
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

CodeIgniter allows us to send email in a neat and


simple way. We can load the email class by
Declaring $this->load->library(‘email’);
Answer: True
Self-survey password reset (SSPR) is defined as any
process or technology that allows users who forgot
their password authenticate their account and reset
their passwords without calling the help desk.
Answer: False
SEARCH methods is very useful on getting pieces of
data, one at a time particularly on multiple tables
and databases.
Answer: False
A Query is a formatted result of database queries
and contain useful data for decision making and
analysis
Answer: False
Database Normalization is the process of organizing
the columns/records or attributes and tables of the
database to minimize data redundancy.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
Matching Type. Choose the correct answer from the
selection.
variables are session variables that expires with a
given time limit.
Answer: Tempdata
Variables that can be accessed anywhere on the
web application because it is stored on the browser
session
Answer: superglobal
What function can be used to access session
variables on webpages?
Answer: session_start()
It can be said as the entry point of application.
Answer: Controller
Function that fetch the data as a multi-dimentional
array
Answer: result_array()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Method will execute codes once the class is created


or instantiated.
Answer: __construct
File that will automatically route the index.php next
to the Controller
Answer: . htaccess
Function that fetch the data as a single row array
Answer: row_array()
You can display the error 404 page by using what
function
Answer: show_404()
Organization that sponsors CI
Answer: Ellislab
$that->db->insert_id() function returns the auto
incremented or last inserted id from the query.
Answer: False
IDENTIFICATION: __________ Meaning of URN
Answer: Uniform Resource Name

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

HTML is a requirement in Code igniter


Answer: True
URI stands for Uniform Resource Identity
Answer: False
Segment is the process of redirecting or remapping
a controller class or method.
Answer: False
FILL IN THE BLANK: __________ are function that is
passed to another function and takes this “other
function” as a parameter
Answer: Callbacks
DataTable jQuery plugin helps us enable sorting,
pagination and search to our table data.
Answer: True
We used the base_url() function to return our
domain or application path
Answer: True
jQuery is a java library that makes web scripting
easier for us.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
$(document).ready() function calls if the browser
contents has properly loaded its contents and is
browsing.
Answer: False
IDENTIFICATION: It helps us enable sorting,
pagination and search to our table data.
Answer: DataTable jQuery
CAPTCHA uses randomly generated text on an
image which users type to confirm
Answer: True
A report module is typically a front-end web page
that contains various figures of interpreted database
table records.
Answer: False
To avoid repetitive function declarations on
controllers and modules, we should use Helper
classes.
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Look Up methods is very useful on getting pieces of


data, one at a time particularly on multiple tables
and databases.
Answer: True
There are certain common functions or small
snippets of code used in every or most Information
Systems. We call them controllers.
Answer: False
Report Module (the module) are templates for
reports.
Answer: False
In Codeigniter 3 helpers are all located in
system/helper.
Answer: False
4. Helpers differs from the model methods because
it doesn’t require database intervention.
Answer: True
The helper is used as a function library that we can
just load to the controller or view.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
CAPTCHA is very useful on web forms security
against online bots, crawlers and spammers
Answer: True
Constants are like variables that store values but it
can only contain strings and numbers
Answer: True
CodeIgniter constants are defined in
application/viewer/constants.php
Answer: False
HTML Helper is a codeigniter 3 helper class
Answer: True
A Queries is a formatted result of database queries
and contain useful data for decision making and
analysis.
Answer: False
A query module contains a form that will pass
parameters to the controller suggesting on how you
want the data to be showed

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
The helper is used as a function library that we can
just load to the controller or view
Answer: True
Sessions in native PHP are the “superglobal”
variables that can be accessed anywhere on the
web application because it is stored on the browser
session.
Answer: True
Log In modules are needed to limit users from
accessing off-limits and restricted webpages or
content
Answer: False
You can declare your own session variable on the
$_SESSION superglobal
Answer: True
A query module contains a form that will pass
parameters to the controller suggesting on how you
want the data to be showed.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
A report module is typically a back-end web page
that contains various figures of interpreted
database table records.
Answer: True
To avoid repetitive function declarations on
controllers and modules, we should use Look up
method classes.
Answer: False
The helper libraries all located in system/controller.
After loading the helper class to be used, its
functions is ready to be used.
Answer: False
To avoid repetitive function declarations on
controllers and modules, we should use Helper
classes
Answer: True
Constants are like variables that store values but it
can only contain strings and numbers.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
Log In modules are needed to limit users from
accessing off-limits and restricted webpages or
content.
Answer: False
Model (the module) are templates for reports.
Queries
Answer: False
Database Synchronization is the process of
organizing the columns/records or attributes and
tables of the database to minimize data redundancy.
Answer: True
CodeIgniter constants are defined in
application/config/controller.php.
Answer: False
.CAPTCHAIt is very useful on web forms security
against online bots, crawlers and spammers.
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

For sending email, make sure you configured your


email server properly. This method uses the Email
class library
Answer: True
In order to use and access session variables on
webpages, we must put the session_start().
Answer: True
Self-service password reset (SSPR) is defined as any
process or technology that allows users who forgot
their password authenticate their account and reset
their passwords without calling the help desk.
Answer: True
Search Up methods is very useful on getting pieces
of data, one at a time particularly on multiple
tables and databases
Answer: False

Finals:

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: _____ MaterializeCSS class prefix


for tablet devices.
Answer: m
IDENTIFICATION: _____ This command is used
creates a sliding up transition within a given time on
a selected element
Answer: slideUp()
IDENTIFICATION: _____ This command is used to
get or set values from and to an input element
particularly textboxes.
Answer: val()
IDENTIFICATION: _____ A grid layout that adapts or
resize columns depending on the device screen size.
Answer: Fluid
IDENTIFICATION: _____ A materializeCSS class that
provides a 70% space of the browser’s full width
and allows you to center the content horizontally.
Answer: Container

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: _____ This command is used to


produce a fading out effect within a given time on a
selected element
Answer: fadeOut()
IDENTIFICATION: _____ It is the vertical dimension
of the grid system that hold the actual page
contents and is limited into 12s per line.
Answer: Column
IDENTIFICATION: _____ This command is used to
hide selected element(s)
Answer: hide()
IDENTIFICATION: _____ This command is used to
show selected element(s)
Answer: show()
IDENTIFICATION: _____ This command is used to
get or set values from and to a non-input element
like divs.
Answer: text()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: _____ It is the horizontal


dimension of the grid system that separate page
contents line after line.
Answer: Row
IDENTIFICATION: _____ This command is used to
produce a fading in effect within a given time on a
selected element
Answer: fadeIn()
IDENTIFICATION: _____ This command is used to
toggle, switch or alternate the selected item’s
visibility: show and hide
Answer: toggle()
IDENTIFICATION: _____ A structure made up of
series of intersecting straight (vertical, horizontal
and angular) or curved guide lines used to structure
content.
Answer: Grid
IDENTIFICATION: _____ A materializeCSS class that
extends up to 100% of the browser’s width to hold
page contents.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: Container-fluid
IDENTIFICATION: _____ This command is used to
create a sliding to the left transition within a given
time on a selected element
Answer: slideLeft()
IDENTIFICATION: _____ MaterializeCSS class prefix
for mobile devices.
Answer: s
IDENTIFICATION: _____ This command is used to
create a sliding down transition within a given time
on a selected element
Answer: slideDown()
IDENTIFICATION: _____ MaterializeCSS class prefix
for desktop or larger devices
Answer: i
IDENTIFICATION: _____ A grid layout that is used for
static website designs because it has
fixed/distributed column sizes.
Answer: Fixed layout

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Successful – this will be triggered upon the AJAX


request and usually accepts the parameter response
response contains the loaded content from the URL
requested.
Answer: False
IDENTIFICATION: It is used to get or set values from
and to an input element particularly textboxes.
Answer: .val()
IDENTIFICATION: _____ is a design language or
design convention for modern applications and
website
Answer: Material design
AJAX engine is an XMLHttpRequest object and
jQuery makes it a lot more easier for us because of
its AJAX development API.
Answer: True
AJAX stands for Asynchronous Java
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

IDENTIFICATION: JQuery method used to hide


selected element(s)
Answer: .hide()
IDENTIFICATION: Name the university that created
MaterialDesign CSS
Answer: Carnegie Mellon University
IDENTIFICATION: _____ simply a new method that
we use to extend jQuery’s prototype object
Answer: jQuery plugin
In jQuery the scr tag is use for linking.
Answer: False
.vals() It is used to get or set values from and to an
input element particularly textboxes.
Answer: False
Controller is also knows as the data access layer.
Answer: False
URI is the historical name that serve as persistent,
location-independent identifiers allowing the simple

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

mapping of namespaces into a single URN


namespace
Answer: False
It is used to produce a fading in effect within a given
time on a selected element
Answer: fadeIn(interval)
Which is the right code for loading models
Answer: //$this->load->model(‘model_name’);
Given the URL
http://www.abc.com/student/record/201512345
State the following
student
Answer: controller
Which of the following statements will create a form
that points to your base URL plus the “x/y”
Answer: //form_open(‘x/y’);
Creator of CI
Answer: Ellislab

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

This method returns the number of rows in a


particular table.
Answer: count_all()
An algorithm that is used in security hashing that
transforms data into a 128 bit string
Answer: MD5
In CodeIgniter the validation system supports
callforward to your own validation methods.
Answer: False
Which of the following refers to the business logic
Answer: Controller
Given the URL
http://www.abc.com/student/record/201512345
State the following
201512345
Answer: data (ex. id)
Function when showing errors in CI page
Answer: show_404

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Constructors do return a value and they can do


some default work.
Answer: False
MVC is a software architecture and architectural.
Pattern used in software engineering
Answer: True
Variables are session variables that expires with a
given time limit.
Answer: tempdata
Is a type of challenge-response test used in
computing to ensure that the response is not
generated by a computer.
Answer: captcha
CodeIgniter’s Image Manipulation class lets you
perform Image Thumbnail Creation
Answer: True
An upload helper method that returns an array
containing all of the data related to the file you
uploaded.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: data
This Class provides a means to retrieve
configuration preferences and it is automatically
initialized by the system.
Answer: Config
It is a software framework that is designed to
support the development of dynamic websites, web
applications, web services and web resources.
Answer: Web Application Framework
In file upload you’ll need a destination directory for
your uploaded images.
Answer: True
You cannot add a URL suffix in CodeIgniter.
Answer: False
An email preference for mail sending protocol
Answer: protocol
What do you call a structure made up of series of
intersecting straight (vertical, horizontal and

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

angular) or curved guide lines used to structure


content?
Answer: grid
In CI what does URI stands for
Answer: uniform resource identifier
This refers to the data access layer.
Answer: Model
The segment index value for the controller.
Answer: 1
A rule reference that returns FALSE if the form
element does not match the one in the parameter.
Answer: matches
When uploading file the form must be of type “file”.
Answer: False
This method returns a single result row
Answer: row()
If set to true, if a file with the same name as the one
you are uploading exists, it will be overwritten. If set

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

to false, a number will be appended to the filename


if another with the same name exists.
Answer: overwrite
Which of the following is correct from the given
statement below:
//$query = $this->db->get(‘mytable’);
//return $query->result();
Answer: Select all records and return as an array of
objects
In file upload the maximum size are set in
_________ that the file can be. Set to zero for no
limit
Answer: kilobytes
Using custom routing rules, you have the power to
map any URI to any controller and method, and
break free from the normal convention.
Answer: True
It’s a javascript library that makes web scripting
easier

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: JQuery
A configuration variables contain full URL to the
controller class/function containing your pagination
Answer: base_url
It is an Application Development Framework – a
toolkit – for people who build web sites using PHP
Answer: CodeIgniter
A cart library method that displays the total number
of items in the cart.
Answer: total_items()
In CodeIgniter the Calendar class enables you to
dynamically create calendars.
Answer: False
This pattern allows information to be retrieved,
inserted, and updated in your database with
minimal scripting
Answer: Query Builder

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Process of organizing the columns/records or


attributes and tables of the database to minimize
data redundancy.
Answer: normalization
A rule reference that returns FALSE if the form
element is not unique to the table and field name in
the parameter.
Answer: is_unique
This helper file contains functions that assist in
working with URLs.
Answer: URL
A cart library method that returns the total amount
Answer: total()
This permits you to extend the validation class to
meet your needs.
Answer: Callbacks
Which of the following has the correct syntax of
active records.
Answer: //this->db->select();

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Which of the following do you think that is useful


for searching?
Answer: //$this->db->like()
Permits you to set the value of an input form or
textarea and used in form validation.
Answer: set_value
To make a function private, simply add an ________
as the name prefix and it will not be served via a
URL request.
Answer: underscore
This helper file contains functions that assist in
working with forms.
Answer: Form
A cart library method that permits you to destroy
the cart.
Answer: destroy()
A cart library method used to update the
information of a specific cart item.
Answer: update()

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Constructors are useful if you need to set some


default values, or run a default process when your
class is instantiated.
Answer: False
File upload directory should set its file permission to
____
Answer: 777
CodeIgniter constants are defined in what folder
Answer: config
Runs the selection query and returns the result.
Answer: $this->db->get()
It is a function that overrides the normal behavior in
which the URI determines which function is called,
allowing you to define your own function routing
rules.
Answer: //_remap()
This validation method permits you to set validation
rules.
Answer: set_rules

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

A method under the calendar library that will


display the calendar
Answer: generate()
CodeIgniter’s Image Manipulation class lets you
perform Image Watermaking.
Answer: False
What file you need to edit so that a given config file
are automatically loaded.
Answer: autoload.php
This refers to the presentation layer
Answer: View
A rule reference that returns FALSE if the form
element is empty.
Answer: required
In order for the image class to be allowed to do any
processing, the folder containing the image files be
write protected
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

This is used to emphasize a quote or citation by


putting a colored left border to the text
Answer: Blockquote
This wildcard type use to match a segment
containing only numbers.
Answer: (:num)
It refers to the horizontal dimension of the grid
system
Answer: rows
Most web application frameworks are based on the
model-view-controller (MVC) pat tern.
Answer: True
Given the URL
http://www.abc.com/student/record/201512345
State the following
www.abc.com
Answer: base_url
Elements from a config.php file are only locally
accessible.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
A query method used to returns the query result as
an array of objects, or an empty array on failure
Answer: result()
Which of the following is correct from given the
statement below:
//$this->db->select(‘title, content, date’);
//$query = $this->db->get(‘mytable’);
//return $query->result();
Answer: It will return only the given fields title,
content, and date of the records
This function retrieves the URL to your site, along
with the “index” value you’ve specified in the config
file.
Answer: //$this->config->site_url();
Code Igniter Query Builders (Active Records) allows
safer queries.
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Each item form a shopping cart produce a unique


________
Answer: rowed
Given the URL
http://www.abc.com/student/record/201512345
State the following
record
Answer: method
It is used creates a sliding down transition within a
given time on a selected element
Answer: //.slideDown(interval)
CodeIgniter provides rich set of libraries for
commonly needed tasks.
Answer: True
Function that redirect to other pages.
Answer: redirect
A rule reference that returns FALSE if the form
element contains anything other than numeric
characters.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: numeric
What do you call variables are just like session
variables except it is only available on the next
request
Answer: Flashdata
You can manually remove the index.php in
CodeIgniter by .htaccess file
Answer: True
A configuration variables represents the total rows
in the result set you are creating pagination for
Answer: total_rows
The default controller assigned to CodeIgniter when
first setup is set to ________.
Answer: Welcome
What do you call common functions or small
snippets of code used in every or most Information
Systems
Answer: helpers

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

A configuration variables that set number of items


you intend to show per page.
Answer: per_page
How many parameters does CAPCHA requires
Answer: 3
In shopping cart if the quantity is set to negative
value, the item will be removed from the cart.
Answer: True
Returns a validation error message from the Form
Validation Library, associated with the specified field
name
Answer: form_error()
Web applications that use the WebForm approach
commingle Program Code and Page Design Code
only.
Answer: False
How do you get the value of a config file item
named ‘author’.
Answer: //$this->config->load(‘author’);

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

This function will be called if the browser contents


has properly loaded its contents and is ready.
Answer: //$(document).ready()
It is used to get or set values from and to an input
element particularly textboxes.
Answer: val
A cart library method used to add item to the
shopping cart.
Answer:
concat()
Ajax engine uses what type of object
Answer: XMLHttpRequest
Which of the following is correct from the given
statement below:
//$this->db->limit(10);
Answer: Limits the number of rows to 10
Null keywords should be written in
Answer: Uppercase

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

CodeIgniter’s Pagination class is very easy to use,


but it is not 100% customizable, either dynamically
or via stored preferences.
Answer: False
Similarly to the form_error() function, returns all
validation error messages produced by the Form
Validation Library.
Answer: validation_errors()
Who first use the term AJAX?
Answer: Jesse James Garret
IDENTIFICATION: __________ JQuery method used
to creates a sliding to the left transition within a
given time on a selected element
Answer: .slideLeft(interval)
IDENTIFICATION: __________ javascript library that
makes web scripting easier for us
Answer: jQuery
.text() is used to get or set values from and to a non-
input element like divs.

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: True
IDENTIFICATION: CSS stands for
Answer: Cascading Style Sheets
Every CSS Framework has each unique style and
some of them offer Material Design.
Answer: True
The Material Design codenamed is Quantum void
Answer: False
Material Design Was developed by Yahoo in 2014
and designed by Matias Duarte
Answer: False
According to MaterializeCSS’ documentation, we
should include the Google Material Icon font for our
fontsusing its CDN and the materializecss’ css file.
Answer: True
HTML framework are pre-prepared website
components styling that is used to create web
design with standards-compliant features that is
built on Cascading Style Sheets(CSS).

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
jQuery is a javascript library that makes web
scripting easier for us.
Answer: True
.text()
It is used to get or set values from and to a non-
input element like divs.
Answer: True
Before a specific jQuery action execute, we call the
Event Handlers to trigger the action.
Answer: True
Model design is a design language or design
convention for modern applications and websites.
Answer: False
Columns are used to separate page contents, line
after line horizontally.
Answer: False
A graph, defined by Wikipedia as “a structure made
up of series of intersecting straight (vertical,

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

horizontal and angular) or curved guide lines used


to structure content.”
Answer: False
MaterializeCSS was created by a team of students
from Carnegie Mellon University .
Answer: True
.open()
It is used to show selected element(s)
Answer: False
Grids are very useful in website design because it
plays an important role in managing and and
arranging web and media elements in a web page.
Answer: True
valid() is used to get or set values from and to an
input element particularly textboxes.
Answer: False
To make an image appear round and circle, add the
circle class to the element.
Answer: False

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

.slideLeft(interval) It is used creates a sliding to the


left transition within a given time on a selected
element
Answer: True
When you have a long line of text in an element that
needs to be shortened or truncated, we can use
The truncate class to remove long lines of text into
an ellipsis(…).
Answer: True
fadeIn(interval)
It is used to produce a fading in effect within a given
time on a selected element
Answer: True
To make an image adapts and resize responsively to
the screen size, add the responsive-img class to an
image element.
Answer: True
.cover()
It is used to hide selected element(s)

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Answer: False
Flow text is a responsive text class that change the
text size depending on the screen size
Answer: True
Material Design is know for a flat design.
Answer: False
Helper classes are used to assist in providing some
common functionality
Answer: True
Add the responsive-table class to the table element
tag to make the table horizontally scrollable on
small screen widths
Answer: True
The most popular CSS Frameworks are Bootstrap
and Foundation.
Answer: True
Floats specify an element on where to place, either
using left or right classes accordingly
Answer: True

Downloaded by Mark Ragas ([email protected])


lOMoARcPSD|30965628

Bold are used to emphasize a quote or citation by


putting a colored left border to the text.
Answer: False
.fadeupt(interval)
It is used to produce a fading out effect within a
given time on a selected element
Answer: False
Center the table’s content by adding the align class
Answer: False

Downloaded by Mark Ragas ([email protected])

You might also like