Module 1 Flashcards

1
Q

When was PHP 1.0 developed?

A

1994/1995 by Rasmus Lerdorf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why did Rasmus Lerdorf developed PHP?

A

To know how many visitors were reading his online resume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the year 1994/1995, PHP 1.0 was based on what?

A

PERL/CGI script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does PHP mean?

A

Personal Home Page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the year 1997, PHP 2.0 was based on what?

A

based on C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What was the other name of PHP in 1997?

A

Form Interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How many users used PHP 3.0 in 1998?

A

50,000 users used PHP to enhance their web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When did developers join Rasmus Lerdorf?

A

1998 with PHP 3.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In 1999, who helped Rasmus Lerdorf develop PHP 4.0?

A

Zeev Suraski and Andi Gutmans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When was PHP the most popular scripting language by Netcraff userbase?

A

1999 (PHP 4.0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

This version of PHP is dubbed as the Zend scripting engine.

A

PHP 4.0 (1999)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In May 22, 2000, PHP was turned into a recursive acronym, what is the name?

A

PHP: Hypertext Preprocessor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What version of PHP had improved OOP?

A

PHP 5.0 (July 13, 2004)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This version of PHP has try/catch exception handling.

A

PHP 5.0 (July 13, 2004)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What version of PHP was not released?

A

PHP 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the PHP Key Categories?

A
  • Practicality
  • Power
  • Possibility
  • Price
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

This key category talks about how PHP is a loosely type language (no explicitly create, typecast, or a destroy variable).

A

Practicality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

This key category talks about how PHP has more libraries and thousands of functions.

A

Power

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

This key category talks about how PHP has native support for more than 25 database products.

A

Possibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

This key category states that PHP is both structured and object-oriented.

A

Possibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

This key category states that PHP is free of charge.

A

Price

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

True or False
Zeev Suraski and Andi Gutmans were the one who contributed the most in PHP development.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

True or False
PHP key categories are practicality, prowess, possibility, and price.

A

False - practicality, power, possibility, and price

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

True or False
PHP is an embedded language that is commonly embedded on CSS.

A

False - embedded on HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
True or False PHP is a *client-side* scripting language that runs its application on a web server.
False - PHP is a server-side scripting language
26
True or False Much of the PHP syntax were derived from C language.
True
27
How many PHP domains were installed in May 22, 2000 (PHP 4.0)
3.6 million
28
What are the Linux OS software requirements?
(FUCKLSD) - Fedora - Ubuntu - Centos - Kubuntu - Linux - Suse - Debian
29
What are the Windows OS software requirements?
(Windows prefix) - XP - Me - Server 2008 - 7 - 8 - 2000
30
What are the Mac OS software requirements?
(Big cats) - Cheetah - Puma - Jaguar - Leopard - Snow Leopard - Panther - Tiger - Lion
31
What are the Web Browser software requirements?
The common ones (MIGOS) + MRSAD - Maxthon - Rockmelt - SeaMonkey - Avant Browser - Deepnet Explorer
32
What are the Web Server software requirements?
(GAIN) - Google Web Server - Apache - IIS7 - NGINX
33
What are the server side scripting language software requirements?
(PPAPJR) - PHP - Python - ASP - PERL/CGI - Java - Ruby
34
What are the Database software requirements?
(PISSMO) - Postgre - IBMDB2 - SQLite - SQL Server - MySQL - Oracle
35
What are the Code Editor software requirements?
(BEANND) - Bluefish - Eclipse - Aptana - Netbeans - Notepad++ - Dreamweaver
36
What are the other software requirements?
(CHAJJXW) - CSS - HTML - AJAX - jQuery - JavaScript - XAMPP - WAMP
37
Where is XAMPP installed?
C Drive (C:\xampp)
38
Where should all PHP files be saved?
C:\xampp\htdocs
39
Where can we test the PHP script file?
localhost/*file_name*
40
What are the tags of PHP scripts?
- Standard ( ) - Short Open ( ) - Script ( ) - ASP style ( <% ... %> )
41
This PHP command is a language construct that is used to output one or more strings.
echo
42
Aside from echo, what can be used to output strings?
print, printf
43
What are the types of PHP comments?
Single Line: - C syntax (//this is a comment) - PERL syntax (#this is a comment) Block Comments: /*this is a comment*/
44
What is the indicator that an item is a variable in PHP?
$ ($myVar)
45
This type of string interprets all characters as literal strings.
Single Quote Strings (' \'tis a fookin\' string' )
46
What is used to display a single quote character inside a single quote string?
backslash ( \ )
47
This type of string allows the use of variables.
Double Quote Strings ("$varSong is a banger")
48
What operator is used to concatenate strings?
dot operator ("abc"."def" = "abcdef"
49
What is the echo syntax?
echo (string argument1 [, ... string argumentN]) echo "

ECHO!

";
50
What is the print syntax?
print (argument) print ("

PRINT

");
51
What is the printf syntax?
printf (string format [, mixed args]) printf ("

%s

", "PRINTF");
52
This printf type specifier is considered as an *int* but is presented as *binary*.
%b
53
This printf type specifier is considered as an *int* but is presented as *ASCII value*.
%c
54
This printf type specifier is considered as an *int* but is presented as *signed decimal*.
%d
55
This printf type specifier is considered as an *float* but is presented as *float*.
%f
56
This printf type specifier is considered as an *int* but is presented as *octal*.
%o
57
This printf type specifier is considered as an *string* but is presented as *string*.
%s
58
This printf type specifier is considered as an *int* but is presented as *unsigned decimal*.
%u
59
This printf type specifier is considered as an *int* but is presented as *lowercase hex*.
%x
60
This printf type specifier is considered as an *int* but is presented as *uppercase hex*.
%X
61
What are the PHP datatypes?
- Scalar - Compound
62
This is the generic name assigned to any data sharing a common set of characteristics.
Datatype
63
This datatype is capable of containing a single item of information.
Scalar Datatype
64
This datatype allows for multiple items of the same type to be aggregated under a single representative entity.
Compound Datatype
65
What is the cast operator for *array* conversions?
(array) $x = (array) $str
66
What is the cast operator for *boolean* conversions?
(bool) or (boolean)
67
What is the cast operator for *integer* conversions?
(int) or (integer)
68
What is the cast operator for *64-bit integer* conversions?
(int64)
69
What is the cast operator for *object* conversions?
(object) $obj = (object) $str
70
What is the cast operator for *float* conversions?
(real) or (double) or (float)
71
What is the cast operator for *string* conversions?
(string)
72
True or False There is Type Juggling in PHP
True
73
This function returns the type of the variable.
gettype()
74
This function converts a given variable to a specific type.
settype()
75
What are the predefined type identifiers in PHP?
is_*type*() types: array, bool, float, integer, null, numeric, object, resource, scalar, string
76
What PHP version had enterprise development?
PHP 4.0 (May 22, 2000)
77
How many domains installed PHP 5.0?
19 million
78
Valid or Invalid $var = "abc"."def";
Valid
79
True or False Variables in PHP are not explicitly declared.
True
80
True or False PHP can only run on Windows based OS.
False - PHP can run in Windows, Mac, and Linux
81
What is the new language feature in PHP 6?
foreach loops