Andi Gutmans was the inventor of PHP.
Select one:
True
False
The default file extension for PHP files is ".php".
Select one:
True
False
php.org is the official php resource.
Select one:
True
False
Version 4 of php supports global variables $Get etc. (v4.1)
Select one:
True
False
PHP runs on various platforms operating system such as apache and IIS
Select one:
True
False
PHP project originally started in 1995 by RasmusLerdorf. (1994)
Select one:
True
False
What functionality was added to PHP 5.1 as interface for accessing databases?
PHP Data Objects or PDO
Identification. Write your answer on the space provided. PHP version that enabled the filter
extension by default Native JSON default
5.2
PHP 3 was released in 1998.
Select one:
True
False
What year did PHP began its development?
1994
PHP script tags ends with ?>;
Select one:
True
False
PHP version currently in use on most websites and included several new features such as support
for object-oriented programming
Answer: 5
Originally PHP is known as "Personal Home Pages"
Select one:
True
False
PHP only runs in Apache web server.
Select one:
True
False
Year that PHP was officially called Personal Home Page Tools.
Answer: 1994
Inventor of PHP
Answer: Rasmus Lerdorf
Year that PHP 3 was released.
Answer: 1998
PHP version that uses void return type, class constant visibility modifiers, null types
7.1
PDO stands for Personal Data Objects
Select one:
True
False
Facebook, wordpress uses php as script language
True
False
PHP in now known as "PHP: Hypertexts Preprocessor"
Select one:
True
False
PHP is proprietary software.
Select one:
True
False
Working locally you an access php script by using http://localhosts/filename.php
Select one:
True
False
Version of PHP what uses namespace support late static binding
Answer: 5.3
PHP is one of the most widely used and recognizable web technology use on the internet.
Select one:
True
False
PHP development began in 1995.
Select one:
True
False
Version of PHP that introduces the use of superglobals
Answer: 4.1
Using XAMPP server you can use SQL Server database.
Select one:
True
False
Originally PHP is known as PHP: Hypertext Preprocessor (Personal Home Page)
Select one:
True
False
Quiz 2
A variable declared within a function
Answer: local variable
PHP variables starts with what symbol.
Answer: $
Two ways on how to print / display text on the screen
(Note : Seperate answers with ;)
Answer: echo;print
Element can be placed onto a web page in a pre-checked fashion by setting the checked attribute
Answer: checkbox
Script use in every php code. (Note : No spaces needed)
Answer: <?php?>
Other term use for Option buttons?
Answer: Radio Button
Storage of data in PHP
Answer: variable
Area that can be specified by the cols and rows attributes, or even better; through CSS' height and
width properties
Answer: text area
A tag that defines a multi-line text input control.
<textarea>
Element represents a control that presents a menu of options.
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 web site.
HTML form
A variable declared outside a function.
Global
Is a line that is not read/executed as part of the program.
Answer: comment
It allows us to collect data from the htm file and display to the php script.
Answer: $_POST
Define styles for your documents, including the design, layout and variations in display for different
devices and screen sizes.
Answer: CSS
Symbol used to combine 2 sting values to create one string.
Answer: “.”
Function is used to display structured information (type and value) about one or more variables.
Answer: var_dump()
Symbol use to append data or string
Answer: “.”
Can hold an unlimited number of characters, and the text renders in a fixed-width font
Answer: Text area
Prelim Exam
Which of the following is the incorrect way to declare a PHP variable?
Select one:
a. $a_Number = 9;
b. $a_Number = 9
c. $a_Num = 9;
d. $aNumber = 9;
What does a semicolon signify at the end of a instruction or statement?
Select one:
a. the start of a PHP statement or instruciton
b. the end of a PHP statement or instruction
c. to ignore a PHP statement or instruciton
In PHP, the only way to output text is with echo.
Select one:
True
False
When a variable is declared, it can only be used 1 time in your PHP source file?
Select one:
True
False
PHP is one of the most widely used and recognizable web technology use on the internet.
Select one:
True
False
Multiple Choice. Select the best answer
The PHP syntax is most similar to:
Select one:
a. VBScript
b. DotNet
c. Perl and C
d. JavaScript
Multiple Choice. Select the best answer
How do you write "Hello World" in PHP
Select one:
a. echo "Hello World";
b. Document.Write("Hello World");
c. prints "Hello World";
d. "Hello World";
Multiple Choice. Select the best answer
Look at the following code and determine what will be displayed in the browser:
<?php
echo "Hello World 1";
// echo "Hello World 2";
?>
Select one:
a. Hello World 2 Hello World 1
b. Hello World 1
c. Hello World 1 Hello World 2
d. Hello World 2
True or False
PHP variables are case-sensitive?
Select one:
True
False
Multiple Choice. Select the best answer
Which one of these variables has an illegal name?
Select one:
a. $my-Var
b. $my_Vars
c. $my_Var
d. $myVar
Multiple Choice. Select the best answer
What is the correct way to end a PHP statement?
Select one:
a. .
b. New Line
c. ;
d. < / php >
Multiple Choice. Select the best answer
What data type will PHP automatically convert the following variable to:?
$aVariable = 99;
Select one:
a. integer (a number variable)
b. string (a text variable)
Multiple Choice. Select the best answer
How many single line commenting types are there?
Select one:
a. 1
b. 2
c. 5
d. 3