Module1 Flashcards
Memorize
At what year/s was PHP at version 1.0?
1994/1995
Who developed PHP?
Rasmus Lerdorf
For what purpose did Rasmus Lerdorf develop PHP?
To know how many visitors were visiting his online resume.
True or False.
PHP 1.0 was based on Ruby/CGI script.
False
(Based on Perl/CGI script)
What does PHP stand for?
PHP: Hypertext Preprocessor
At what year/s was PHP at version 2.0?
1997
At version 2.0, PHP was based on ___ rather than Perl.
C
This version of PHP served both as a personal home page and as a form interpreter
PHP 2.0
At what year/s was PHP at version 3.0?
1998
This version of PHP had 50,000 users were using it to enhance their web pages.
PHP 3.0
In this version of PHP, developers joined Lerdorf
PHP 3.0
At what year/s was PHP at version 4.0?
1999
This version of PHP had Zeev Suraski and Andi Gutmans proved to be core developers.
PHP 4.0
Who were the core developers for PHP 4.0?
Zeev Suraski and Andi Gutmans
This version of PHP makes the most popular scripting language with morethan one million user base by Netcraff.
PHP 4.0
This version of PHP had hundreds of functions added.
PHP 4.0
This version of PHP was dubbed as the Zend scripting engine.
PHP 4.0
At what date was PHP: Hypertext Preprocessor released?
May 22, 2000
This version of PHP had 3.6 million domain PHP installed.
PHP: Hypertext Preprocessor (PHP4.0)
This version of PHP featured enterprise development.
PHP: Hypertext Preprocessor (PHP4.0)
This version of PHP showcased new features, power, and scalability.
PHP: Hypertext Preprocessor (PHP4.0)
At what date was PHP 5.0 released?
July 13, 2004
This version of PHP featured vastly improved object-oriented capabilities (OOP Improvement).
PHP 5.0
This version of PHP featured try/catch exception handling.
PHP 5.0
This version of PHP Improved XML and Web Services support (Simple XML Support, using SOAP).
PHP 5.0
This version of PHP featured native support for SQLite.
PHP 5.0
This version of PHP was installed on 19 million domains.
PHP 5.0
This version of PHP had 54 percent on all Apache modules.
PHP 5.0
This version of PHP featured Unicode Support (Native Unicode support for multilingual applications.
PHP 6.0
This version of PHP featured security improvements.
PHP 6.0
This version of PHP had new language features and constructs (64 bit type integer, foreach looping)
PHP 6.0
What are the Key categories of PHP?
(4Ps)
- Practicality
- Power
- Possibility
- Price
This key category of PHP states that PHP is a loosely type language (no explicitly create, typecast, or destroy a variable)
Practicality
(loosely type language)
This key category of PHP states that it has more libraries and thousands of functions.
Power
(more libraries)
This key category of PHP states that is has native support is offered for more than 25 database products,.
Possibility
This key category of PHP states that it is free of charge.
Price
What are examples of Operating System: Linux?
(LUDS KFC)
- Linux
- Ubuntu
- Debian
- Suse
- Kubuntu
- Fedora
- Centos
What are examples of Operating System: Windows?
(XMS 78 2000)
- Windows XP
- Windows Me
- Windows Server 2008
- Windows 7
- Windows 8
- Windows 2000
What are examples of Operating System: Mac?
(PuPa SLL JTLC)
- Puma
- Panther
- Snow Leopard
- Leopard
- Jaguar
- Tiger
- Lion
- Cheetah
What are examples of Internet Browser?
(GMOSI SADMR)
- Google Chrome
- Mozilla Firefox
- Opera
- Safari
-Internet Explorer
- SeaMonkey
- Avant Browser
- DeepNet Explorer
- Maxthon
- Rockmelt
What are examples of Web Server?
(GIAN)
- Google Web Server
- IIS7 (Internet Information Services)
- Apache
- NGINX
What are examples of Server side scripting language?
(JPR APP)
- Java
- Python
- Ruby
- ASP (Active Server Pages)
- PERL CGI
- PHP
What are examples of Database?
(MISS PO)
- MySQL
- IBMDB2
- SQL Server
- SQLite
- Postgre
- Oracle
What are examples of Code editor?
(BEAN DN++)
- Bluefish
- Eclipse
- Aptana
- NetBeans
- Dreamweaver
- Notepad++
What are examples of other software requirements?
(JJ CHA)
- JavaScript
- JQuery
- CCS
- HTML
- AJAX
What is the standard tag for php scripts?
<?php…?>
What is the short open tag for php scripts?
<?…?>
What is the script tag for php scripts?
<script language=”php>…</script>
What is the asp style tag for php scripts?
<%…%>
True or False.
Only certain php scripts should be enclosed using proper tags.
False
(ALL php script should be enclosed with proper tags)
The “;” at the end of a line of code for php scripts is called the ______.
Statement Terminator
_______ is a language construct that use to output one or more string.
echo
(language construct)
______ is a function also use for outputting strings.
print
(also used for outputting strings)
What is the symbol for a single line comment?
//
What is the symbol for a PERL style single line comment?
#
What is the symbol for multi-line or block comments?
/…./
________ are used as a container for values that can be used and manipulate PHP scripts
Variables
Variables in PHP must begin with a __ symbol.
$
True or False.
Variable might contain a string, numbers, arrays and objects.
True
What are the rules for setting the identifier of a variable?
- First character can be ‘_’ or a letter.
- Can only contain alpha-numeric characters and underscore (a-z,A-Z,0-9,_).
- Don’t use white space in naming a variable.
What is the output of the code below if $name = “Juan”.
<?php echo “$name’s Store”?>
Juan’s Store
What is the output of the code below if $name = “Juan”.
<?php echo ‘$name’s Store’?>
Error
($name's, apostrophe should have backslash)
What is the output of the code below if $name = “Juan”.
<?php echo ‘$name's Store’?>
$name’s Store
What is the output of the code below if $name = “Juan”.
<?php echo “$name’s Store”?>
$name’s Store
What is the output of the code below if $name = “Juan”.
<?php echo “$name’s”.”Store”?>
Juan’sStore
It is the generic name assigned to any data sharing a common set of characteristics.
Datatypes
This kind of datatype is capable of containing a single item of information.
Scalar Datatypes
Boolean, Integer, Float (float, double or real numbers), and String are examples of what kind of datatype?
Scalar Datatypes
This kind of datatype allows for multiple items of the same type to be aggregated under a single representative entity.
Compound Datatypes
Array and Objects are examples of what kind of datatype?
Compound Datatypes
What is/are the PHP type casting operators for Array?
(array)
What is/are the PHP type casting operators for Boolean?
(boolean) or (bool)
What is/are the PHP type casting operators for Integer?
(int)
What is/are the PHP type casting operators for 64-bit Integer?
(int64)
What is/are the PHP type casting operators for Object?
(object)
What is/are the PHP type casting operators for Float?
(real) or (double) or (float)
What is/are the PHP type casting operators for String?
(string)
This predefined function returns the type of the variable.
gettype() function
True or False.
The possible return values for gettype() are integer, double, boolean, string, array, object, resource, unknown, function types.
False.
(function is not a possible return value)
This predetermined function converts a given variable to a specific type.
settype() function