Quiz #1: Answer
Quiz #1: Answer
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
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
PRELIMS
QUIZ #3
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
Answer 8
Name the configuration file needed to set helper autoload config
Answer 13
are templates for reports Queries
MIDTERMS
Answer 2
Organization that sponsors CI Ellislab
Answer 3
It can be said as the entry point of application. Controller
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()
Answer 4
are templates for reports Queries
Answer 6
Name the configuration file needed to set helper autoload config
variables that store values but it can only contain strings Answer 9
and numbers constant
Answer 10
encrypted email as a key md5
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
QUIZ #6
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