0% found this document useful (0 votes)
385 views25 pages

Quiz #1: Answer

Here are the correct matches: 1. md5 2. CAPTCHA 3. constant 4. form helper class 5. Look Up 6. Database Normalization 7. Self-service password reset 8. autoload config 9. helper 10. $this->db->insert_id()

Uploaded by

Dorson Adora
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)
385 views25 pages

Quiz #1: Answer

Here are the correct matches: 1. md5 2. CAPTCHA 3. constant 4. form helper class 5. Look Up 6. Database Normalization 7. Self-service password reset 8. autoload config 9. helper 10. $this->db->insert_id()

Uploaded by

Dorson Adora
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/ 25

QUIZ #1

IDENTIFICATION. Read the question carefully and type your answer in


the space provided.

PDO
Answer What functionality was added to PHP 5.1 as interface for accessing
databases?
The page that displays a message that the requested page was not found.
Error 404

What is the meaning of URL?


Uniform Resource Locator
PHP development began in 1995.
False

php.org is the official php resource.


False

Originally, PHP is known as "Personal Home Pages"


False

PHP is one of the most widely used and recognizable web technology used on
the Internet.
True
The default file extension for PHP file is ".php"
True
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.

7.1
Answer PHP version that uses void return type, class constant visibility
modifiers, null types.
PHP runs on various platforms operating system such as apache and IIS.
False
The function of ci code to return a URI segment
$this->uri->segment
The first URI segment
controller
It is the process of redirecting or remapping a controller class or method.
Routing
Andi Gutmans was the inventor of PHP.
False
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.

5.3
Answer Version of PHP that uses namespace support late static binding.
URN stands for?
Uniform Resource Name
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.

5
Answer PHP version currently in use on most websites and included several
new features such as support for object-oriented programming.
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.
1994
Answer What year did PHP began its development?
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.

Rasmus lerdorf
Answer Who is the inventor of PHP?
URI stands for?
Uniform Resources Identifier
PDO stands for Personal Data Objects.
False
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.
4.1
Answer Version of PHP that introduces the use of superglobals.
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.
1995
Answer Year that PHP was officially called Personal Home Page Tools.
It is a URI Component that locates the path or address.
Web Address
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.
1998
Answer Year that PHP 3 was released
IDENTIFICATION. Read the question carefully and type your answer in
the space provided.

5.2
Answer PHP version that enabled the filter extension by default Native
JSON default

QUIZ #2

CI file directory where autoload classes and functions are defined.


Application/config/autoload.php
CI method or code to load the form validation library.
$this->load->library('form_validation')
Defines a multi-line text input control.
//< textarea > tag
Query Builder class method that inserts record on the database.
$this->db->insert()
Form Helper method or code to return an HTML radio input type
form_radio()
CI function code to load the database class.
$this->load->database();
The controller's $data["title"] variable will be delivered in a view as $title.
True
Storage data in PHP
variables
PHP varianbles start with what symbol?
$
Query Builder or Active Record pattern in CI replaces the traditional query string
in php coding.
True
CI method or code to set a rule in form validation.
$this->form_validation->set_rules()
row_array() fetch the data as a single row and result_array() fetch the data as a
multi-dimensional array.
True
Form Helper method or code to return an HTML password input type.
form_password()
CI method or code to set an error message in form validation.
$this->form_validation->set_message()
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.
HTML Forms
Delimiter symbol for rules in form validation.
"|" or pipe symbol
CI method or code that display/echo error messages when form_validation-
>run() returns false.
validation_errors()
Define styles for your documents, including the design, layout and variations in
display for different devices and screen sizes.
CSS
A variable declared outside a function.
Global
This allows us to collect data from the htm file and display to the php script.
$_POST
CI file directory where the database configuration settings and database groups
is found.
Application/config/database.php
It is the Data Access Layer or Persistence Layer of the MVC Layered
Architecture.
Model
Area that can be specified by the cols and rows attributes, or even better;
through CSS' height and width properties.
Textarea
It is a line that is not read/executed as part of the program.
comment
Form Helper method or code to return an HTML checkbox input type.
form_checkbox()
_construct() method executes when a class is created or instantiated.
True
Database group configuration in CI is stored in a multi-dimensional array.
True
Form Helper method or code to return an HTML button.
form_button()
Element can be placed onto a web page in a pre-checked fashion by setting the
checked attribute.
Checkbox
Form Helper method or code to return an HTML text input type.
form_input()

PRELIMS

CI uses Model-Viewable-Controller architecture


False
To load the view, the function is like this: $this->load->view('name');
True
Segment is the process of redirecting or remapping a controller class or method.
False
CI, basically contains 4 main folders Application, System, User, Help Guide
False
A variable declared within a function.
Local
It is the Presentation Layer of the MVC Architecture.
View
URI stands for Uniform Resource Identity
False
Element represents a control that presents a menu of options.
HTML selectUniform Resource Locator
Can hold an unlimited number of characters, and the text renders in a fixed-
width font.
TextArea
Uniform
IDENTIFICATION: Answer Meaning of URL.
Other term used for Option buttons?
Radio Buttons
The function or ci code to load a view.
$this->load->view
IDENTIFICATION: What do you call the 1st segment of the URI?
Controller
Answer:
CodeIgniter is developed PHP.org
False
It is a configuration file that is used for configuration of site-access issues, such
as URL redirect, URL shortening, Access-security control.
.htaccess
Controller is also knows as the data access layer.
False
It is a URI Component that serve as persistent, location-independent identifiers
URN
These are functions which are passed to another function and takes this "other
function" as a parameter.
Callbacks
Routing
FILL IN THE BLANK: Answer is the process of redirecting or remapping a
controller class or method.
URI is the historical name that serve as persistent, location-independent
identifiers allowing the simple mapping of namespaces into a single URN
namespace
False
Symbol used to combine 2 sting values to create one string.
.
.htaccess file that will automatically route the index.php next to the Controller
True
Uniform
IDENTIFICATION: Answer Meaning of URN
PHP 3 was released in 1998.
True
Model
IDENTIFICATION: Answer Data Access Layer or Persistence Layer of the MVC
Layered Architecture.
A vital part of a website or system UI because it accepts inputs as data
parameters
Forms

QUIZ #3

$this->db->insert_id() inserts an id in the database.


False
valid_email form validation rule is used to check if an e-mail is valid or not.
True
Registration is an activity of deleting user information on the database.
False
Account registration can be approved through activation link sent from user's
email or by an admin approval.
True
is_uniques form validation rule checks if the input is unique from the table.
False
Form helper class helps us by returning formatted HTML form elements.
True
is_unique requires table and field name as parameter.
True
matches form validation rule checks 3 fields that should have an equal or same
value.
False
We should subject a user for approval on registration.
True

QUIZ #4

Question 1
Partially correct
Mark 8.67 out of 10.00

Flag question

Question text

Matching Type. Choose the correct answer from the selection provided.
Answer 1
encrypted email as a key md5
It is very useful on web forms security against online Answer 2
bots, crawlers and spammers. CAPTCHA

variables that store values but it can only contain strings Answer 3
and numbers constant

functions that accepts input parameters and returns an Answer 4


HTML input form element. form helper class

methods is very useful on getting pieces of data, one at a Answer 5


time particularly on multiple tables and databases Look Up

is the process of organizing the columns/records or


Answer 6
attributes and tables of the database to minimize data Database Normalization
redundancy.
Answer 7
SSPR stands for Self-service passw ord reset

Answer 8
Name the configuration file needed to set helper autoload config

used as a function library that we can just load to the Answer 9


controller or view. helper

function returns the auto incremented or last inserted id Answer 10


from the query $this->db->insert_id()

application to help the program perform small or simple


Answer 11
task such as formatting a parameter, computation or single report page
series of commands
formatted result of database queries and contain useful Answer 12
data for decision making and analysis Reports

Answer 13
are templates for reports Queries

returns a string containing any server messages, email Answer 14


header and the email message. $this->email->print_debugger()

runs a back-end database query and displays the Answer 15


information in organized and informational manner constant

MIDTERMS

bcc stands for Black Carbon Copy


False
$that->db->insert_id() function returns the auto incremented or last inserted id
from the query.
False
CodeIgniter allows us to send email in a neat and simple way. We can load the
email class by Declaring $this->load->library('email');
True
A Query is a formatted result of database queries and contain useful data for
decision making and analysis
False
Matching Type. Choose the correct answer from the selection.
Answer 1
variables are session variables that expires with a given time limit. Tempdata

Answer 2
Organization that sponsors CI Ellislab

Answer 3
It can be said as the entry point of application. Controller

Variables that can be accessed anywhere on the web application Answer 4


because it is stored on the browser session superglobal

Answer 5
Function that fetch the data as a multi-dimentional array result_array()

Answer 6
File that will automatically route the index.php next to the Controller . htaccess

Answer 7
Method will execute codes once the class is created or instantiated. __construct

Answer 8
What function can be used to access session variables on webpages? session_start()

Answer 9
You can display the error 404 page by using what function show _404()

Function that fetch the data as a single row array Answer 10


SEARCH methods is very useful on getting pieces of data, one at a time
particularly on multiple tables and databases.
False
Database Normalization is the process of organizing records to minimize
redundancy.
True
Matching Type. Choose the correct answer from the selection provided.
is the process of organizing the columns/records or
Answer 1
attributes and tables of the database to minimize data Database Normalization
redundancy.
Answer 2
SSPR stands for Self-service passw ord reset

used as a function library that we can just load to the Answer 3


controller or view. helper

Answer 4
are templates for reports Queries

runs a back-end database query and displays the Answer 5


information in organized and informational manner single report page

Answer 6
Name the configuration file needed to set helper autoload config

functions that accepts input parameters and returns an Answer 7


HTML input form element. form helper class

methods is very useful on getting pieces of data, one at a Answer 8


time particularly on multiple tables and databases Look Up

variables that store values but it can only contain strings Answer 9
and numbers constant

Answer 10
encrypted email as a key md5

returns a string containing any server messages, email Answer 11


header and the email message. $this->email->print_debugger()

function returns the auto incremented or last inserted id Answer 12


from the query $this->db->insert_id()

It is very useful on web forms security against online Answer 13


bots, crawlers and spammers. CAPTCHA

application to help the program perform small or simple


Answer 14
task such as formatting a parameter, computation or autoloaded
series of commands
formatted result of database queries and contain useful Answer 15
data for decision making and analysis Reports
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.
False
Database Normalization is the process of organizing the columns/records or
attributes and tables of the database to minimize data redundancy.
True

PFQ #1

A website layout that uses media queries to change the site’s design for
specified devices or window sizes.
Adaptive layout
Answer:
An HTML5 standard that allows a web application to be cached and available
offline.
Appcache
Answer:
A wireless technology networking protocol used to exchange data over short
distances.
Bluetooth
Answer:
The idea of exposing to the end user the change of data, provided the data is
changing quite a lot.
Data animation
Answer:
A sensor that measures the acceleration (change in velocity) of an object in
order to determine movement of a mobile device.
Accelerometer
Answer:

PFQ #2
A mobile platform-specific API that lets applications access specific mobile
hardware functionality.
Device API
Answer:
A specification that defines the fifth major revision of HTML.
HTML5
Answer:
A mobile phone with internet access and music playback that lacks the full
functionality of a smartphone.
Feature phone
Answer:
An instrument that measures the orientation of a device in order to orient
display.
Gryoscope
Answer:
An application that duplicates the functionality of hardware or operating
systems for testing purposes.
Emulator
Answer:

PREFINALS

Match the term with its features.


A wireless local area network that allows
Answer 1
smartphones, computers, and other devices Wi-fi
to connect to the internet.
A network of physical objects embedded
with electronics, software, sensors, and
Answer 2
connectivity to enable it to achieve greater Internet of things
value and service by exchanging data with
other connected devices.
Information that is delivered immediately Answer 3
after collecting it without any delay. Real-time data

A view that displays web pages within an Answer 4


application. Webview

A feature for access control systems that Answer 5


Single ign-on (SSO)
allows users to log in to (or log out of)
multiple, independent software systems Single ign-on (SSO)
using one set of credentials.
For mobile applications, this refers to
Answer 6
anything that encourages the user to stay Stickiness
active in the app for a longer period of time.
A website layout based on a fluid grid,
allowing the site to have hundreds of
Answer 7
dynamically generated states with mostly Responsive layout
minor differences based on browser window
size.
An abstraction layer that gives a non- Answer 8
application access to mobile device APIs. Native bridge

A common XML-based open data format Answer 9


for authentication. Security assertion markup language (SAML)

A development tool, sometimes including a


mobile middleware server, that builds
Answer 10
hybrid or native apps for each mobile Mobile application development platform (MADP)
platform from a single codebase.
IncludesMEAPs and MCAPs.
A term to describe all aspects of the end Answer 11
user’s interaction with an application. User experience (UX)

A set of programming tools and resources


built specifically to aid software Answer 12
development on a particular platform or Softw are development kit (SDK)
technology.
Answer 13
A common open standard for authorization. OAuth

A term to describe the ways in which the


Answer 14
end user directly interacts with a device or User interface (UI)
application.
An application developed for use on small,
Answer 15
wireless devices such as tablets and Mobile app
smartphones.
A component that packages a non-native
Answer 16
app so that it is viable for native Native w rapper
distribution.
An architecture style that uses discrete Answer 17
software services (each with one clearly Service-oriented architecture (SOA)
defined business task) with well-defined,
loosely-coupled interfaces that are
orchestrated to work as a complete system
by sharing functionality.
A mobile application that is written in a
Answer 18
programming language that is directly Native app
compatible with the target platform.
A development process that works on a very Answer 19
short development cycle. est-driven development (TDD)

A text messaging service component of a


Answer 20
phone using standardized communication Simple message service (SMS)
protocols to send short text messages.
A mobile application developed using web Answer 21
standards and accessed through a browser. Web app

An operating system designed specifically Answer 22


to run on mobile devices. Mobile OS

An HTML meta tag that tells the browser


how to behave when it renders the web Answer 23
page. The viewport is also a term for the View port
section of the web page in view.
A mobile application written in HTML,
CSS, and JavaScript that uses a web-to-
Answer 24
native abstraction layer, allowing the Hybrid app
application to access mobile device APIs
that pure web applications cannot access.
Short messages that mobile applications can
Answer 25
send to users even if the application isn’t Push notifications
open.

QUIZ #6

$(document).ready() function calls if the browser contents has properly loaded


its contents and is browsing.
False
IDENTIFICATION: Name the university that created MaterialDesign CSS
Carnegie Mellon University
Answer:
DataTable jQuery plugin helps us enable sorting, pagination and search to our
table data.
True
.text() is used to get or set values from and to a non-input element like divs.
True
We used the base_url() function to return our domain or application path
True
AJAX engine is an XMLHttpRequest object and jQuery makes it a lot more easier
for us because of its AJAX development API.
True
jQuery
IDENTIFICATION: Answer javascript library that makes web scripting
easier for us
In jQuery the scr tag is use for linking.
False
.vals() It is used to get or set values from and to an input element particularly
textboxes.
False
IDENTIFICATION: CSS stands for
Cascading style sheets
Answer:
Successful - this will be triggered upon the AJAX request and usually accepts the
parameter response response contains the loaded content from the URL
requested.
False
Who first use the term AJAX?
Jesse James Garrett
Answer:
AJAX stands for Asynchronous Java
False
jQuery is a java library that makes web scripting easier for us.
False

FINALS
Constructors do return a value and they can do some default work.
False
This validation method permits you to set validation rules.
set_rules
A configuration variables contain full URL to the controller class/function
containing your pagination
base_url
What do you call a structure made up of series of intersecting straight (vertical,
horizontal and angular) or curved guide lines used to structure content?
grid
A rule reference that returns FALSE if the form element contains anything other
than numeric characters.
numeric
A rule reference that returns FALSE if the form element is not unique to the table
and field name in the parameter.
is_unique
This helper file contains functions that assist in working with forms.
Form
Which of the following do you think that is useful for searching?
//$this->db->like()
This pattern allows information to be retrieved, inserted, and updated in your
database with minimal scripting
Query Builder
You can manually remove the index.php in CodeIgniter by .htaccess file
True
This is used to emphasize a quote or citation by putting a colored left border to
the text
Blockquote
In file upload you'll need a destination directory for your uploaded images.
True
It is used to get or set values from and to an input element particularly
textboxes.
val
In CodeIgniter the Calendar class enables you to dynamically create calendars.
False
Code Igniter Query Builders (Active Records) allows safer queries.
True
You cannot add a URL suffix in CodeIgniter.
False
An email preference for mail sending protocol
protocol
Function that redirect to other pages.
redirect
If set to true, if a file with the same name as the one you are uploading exists, it
will be overwritten. If set to false, a number will be appended to the filename if
another with the same name exists.
overwrite
Is a type of challenge-response test used in computing to ensure that the
response is not generated by a computer.
captcha
Constructors are useful if you need to set some default values, or run a default
process when your class is instantiated.
False
Given the URL http://www.abc.com/student/record/201512345
State the following
student
controller
To make a function private, simply add an ________ as the name prefix and it will
not be served via a URL request.
underscore
CodeIgniter's Pagination class is very easy to use, but it is not 100%
customizable, either dynamically or via stored preferences.
False
Function when showing errors in CI page
show_404
Variables that can be accessed anywhere on the web application because it is
stored on the browser session
superglobal
In order for the image class to be allowed to do any processing, the folder
containing the image files be write protected
False
A configuration variables that set number of items you intend to show per page.
per_page
The default controller assigned to CodeIgniter when first setup is set to ________.
Welcome
It is used to produce a fading in effect within a given time on a selected element
fadeIn(interval)
What file you need to edit so that a given config file are automatically loaded.
autoload.php
The person that introduce MVC.
Trygve Reenskaug
Ajax engine uses what type of object
XMLHttpRequest
Permits you to set the value of an input form or textarea and used in form
validation.
set_value
Variables are session variables that expires with a given time limit.
tempdata
How do you get the value of a config file item named 'author'.
//$this->config->load('author');
This refers to the data access layer.
Model
This method returns a single result row
row()
Which of the following refers to the business logic
Controller
CodeIgniter's Image Manipulation class lets you perform Image Thumbnail
Creation
True
A cart library method that permits you to destroy the cart.
destroy()
Given the URL http://www.abc.com/student/record/201512345
State the following
www.abc.com
base_url
What do you call common functions or small snippets of code used in every or
most Information Systems
helpers
A cart library method that displays the total number of items in the cart.
total_items()
What do you call variables are just like session variables except it is only
available on the next request
Flashdata
CodeIgniter's Image Manipulation class lets you perform Image Watermaking.
False
It refers to the horizontal dimension of the grid system
rows
The segment index value for the controller.
1
A method under the calendar library that will display the calendar
generate()
This function will be called if the browser contents has properly loaded its
contents and is ready.
//$(document).ready()
Elements from a config.php file are only locally accessible.
False
Given the URL http://www.abc.com/student/record/201512345
State the following
201512345
data (ex. id)
It is an Application Development Framework - a toolkit - for people who build
web sites using PHP
CodeIgniter
CodeIgniter constants are defined in what folder
config
In CodeIgniter the validation system supports callforward to your own validation
methods.
False
Which is the right code for loading models
//$this->load->model('model_name');
Which of the following has the correct syntax of active records.
//this->db->select();
A query method used to returns the query result as an array of objects, or an
empty array on failure
result()
This permits you to extend the validation class to meet your needs.
Callbacks
How many parameters does CAPCHA requires
3
Which of the following statements will create a form that points to your base
URL plus the "x/y"
//form_open('x/y');
A cart library method that returns the total amount
total()
Creator of CI
Ellislab
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.
//_remap()
This Class provides a means to retrieve configuration preferences and it is
automatically initialized by the system.
Config
Which of the following is correct from the given statement below:
//$query = $this->db->get('mytable');
//return $query->result();
Select all records and return as an array of objects
MVC is a software architecture and architectural. pattern used in software
engineering
True
An algorithm that is used in security hashing that transforms data into a 128 bit
string
MD5
A rule reference that returns FALSE if the form element is empty.
required
A configuration variables represents the total rows in the result set you are
creating pagination for
total_rows
It's a javascript library that makes web scripting easier
JQuery
Runs the selection query and returns the result.
$this->db->get()
When uploading file the form must be of type "file".
False
Which of the following is correct from the given statement below:
//$this->db->limit(10);
Limits the number of rows to 10
This refers to the presentation layer
View
Most web application frameworks are based on the model-view-controller (MVC)
pat tern.
True
Returns a validation error message from the Form Validation Library, associated
with the specified field name
form_error()
Web applications that use the WebForm approach commingle Program Code and
Page Design Code only.
False
A cart library method used to update the information of a specific cart item.
update()
Null keywords should be written in
Uppercase
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();
It will return only the given fields title, content, and date of the records
CodeIgniter provides rich set of libraries for commonly needed tasks.
True
In CI what does URI stands for
uniform resource identifier
An upload helper method that returns an array containing all of the data related
to the file you uploaded.
data
In file upload the maximum size are set in _________ that the file can be. Set to
zero for no limit
kilobytes
This function retrieves the URL to your site, along with the "index" value you've
specified in the config file.
//$this->config->site_url();
Using custom routing rules, you have the power to map any URI to any
controller and method, and break free from the normal convention.
True
Given the URL http://www.abc.com/student/record/201512345
State the following
record
method
In shopping cart if the quantity is set to negative value, the item will be removed
from the cart.
True
This wildcard type use to match a segment containing only numbers.
(:num)
It is a software framework that is designed to support the development of
dynamic websites, web applications, web services and web resources.
Web Application Framework
File upload directory should set its file permission to ____
777

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy