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
Q

True or False
PHP is a client-side scripting language that runs its application on a web server.

A

False - PHP is a server-side scripting language

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

True or False
Much of the PHP syntax were derived from C language.

A

True

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

How many PHP domains were installed in May 22, 2000 (PHP 4.0)

A

3.6 million

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

What are the Linux OS software requirements?

A

(FUCKLSD)
- Fedora
- Ubuntu
- Centos
- Kubuntu
- Linux
- Suse
- Debian

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

What are the Windows OS software requirements?

A

(Windows prefix)
- XP
- Me
- Server 2008
- 7
- 8
- 2000

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

What are the Mac OS software requirements?

A

(Big cats)
- Cheetah
- Puma
- Jaguar
- Leopard
- Snow Leopard
- Panther
- Tiger
- Lion

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

What are the Web Browser software requirements?

A

The common ones (MIGOS) + MRSAD
- Maxthon
- Rockmelt
- SeaMonkey
- Avant Browser
- Deepnet Explorer

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

What are the Web Server software requirements?

A

(GAIN)
- Google Web Server
- Apache
- IIS7
- NGINX

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

What are the server side scripting language software requirements?

A

(PPAPJR)
- PHP
- Python
- ASP
- PERL/CGI
- Java
- Ruby

34
Q

What are the Database software requirements?

A

(PISSMO)
- Postgre
- IBMDB2
- SQLite
- SQL Server
- MySQL
- Oracle

35
Q

What are the Code Editor software requirements?

A

(BEANND)
- Bluefish
- Eclipse
- Aptana
- Netbeans
- Notepad++
- Dreamweaver

36
Q

What are the other software requirements?

A

(CHAJJXW)
- CSS
- HTML
- AJAX
- jQuery
- JavaScript
- XAMPP
- WAMP

37
Q

Where is XAMPP installed?

A

C Drive (C:\xampp)

38
Q

Where should all PHP files be saved?

A

C:\xampp\htdocs

39
Q

Where can we test the PHP script file?

A

localhost/file_name

40
Q

What are the tags of PHP scripts?

A
  • Standard ( <?php … ?> )
  • Short Open ( <? … ?> )
  • Script ( <script 1anguage="php”> … </script> )
  • ASP style ( <% … %> )
41
Q

This PHP command is a language construct that is used to output one or more strings.

A

echo

42
Q

Aside from echo, what can be used to output strings?

A

print, printf

43
Q

What are the types of PHP comments?

A

Single Line:
- C syntax (//this is a comment)
- PERL syntax (#this is a comment)

Block Comments: /this is a comment/

44
Q

What is the indicator that an item is a variable in PHP?

A

$ ($myVar)

45
Q

This type of string interprets all characters as literal strings.

A

Single Quote Strings (‘ 'tis a fookin' string’ )

46
Q

What is used to display a single quote character inside a single quote string?

A

backslash ( \ )

47
Q

This type of string allows the use of variables.

A

Double Quote Strings (“$varSong is a banger”)

48
Q

What operator is used to concatenate strings?

A

dot operator (“abc”.”def” = “abcdef”

49
Q

What is the echo syntax?

A

echo (string argument1 [, … string argumentN])

echo “<p>ECHO!</p>”;

50
Q

What is the print syntax?

A

print (argument)

print (“<p>PRINT</p>”);

51
Q

What is the printf syntax?

A

printf (string format [, mixed args])

printf (“<p>%s</p>”, “PRINTF”);

52
Q

This printf type specifier is considered as an int but is presented as binary.

A

%b

53
Q

This printf type specifier is considered as an int but is presented as ASCII value.

A

%c

54
Q

This printf type specifier is considered as an int but is presented as signed decimal.

A

%d

55
Q

This printf type specifier is considered as an float but is presented as float.

A

%f

56
Q

This printf type specifier is considered as an int but is presented as octal.

A

%o

57
Q

This printf type specifier is considered as an string but is presented as string.

A

%s

58
Q

This printf type specifier is considered as an int but is presented as unsigned decimal.

A

%u

59
Q

This printf type specifier is considered as an int but is presented as lowercase hex.

A

%x

60
Q

This printf type specifier is considered as an int but is presented as uppercase hex.

A

%X

61
Q

What are the PHP datatypes?

A
  • Scalar
  • Compound
62
Q

This is the generic name assigned to any data sharing a common set of characteristics.

A

Datatype

63
Q

This datatype is capable of containing a single item of information.

A

Scalar Datatype

64
Q

This datatype allows for multiple items of the same type to be aggregated under a single representative entity.

A

Compound Datatype

65
Q

What is the cast operator for array conversions?

A

(array)
$x = (array) $str

66
Q

What is the cast operator for boolean conversions?

A

(bool) or (boolean)

67
Q

What is the cast operator for integer conversions?

A

(int) or (integer)

68
Q

What is the cast operator for 64-bit integer conversions?

A

(int64)

69
Q

What is the cast operator for object conversions?

A

(object)
$obj = (object) $str

70
Q

What is the cast operator for float conversions?

A

(real) or (double) or (float)

71
Q

What is the cast operator for string conversions?

A

(string)

72
Q

True or False
There is Type Juggling in PHP

A

True

73
Q

This function returns the type of the variable.

A

gettype()

74
Q

This function converts a given variable to a specific type.

A

settype()

75
Q

What are the predefined type identifiers in PHP?

A

is_type()

types: array, bool, float, integer, null, numeric, object, resource, scalar, string

76
Q

What PHP version had enterprise development?

A

PHP 4.0 (May 22, 2000)

77
Q

How many domains installed PHP 5.0?

A

19 million

78
Q

Valid or Invalid
$var = “abc”.”def”;

A

Valid

79
Q

True or False
Variables in PHP are not explicitly declared.

A

True

80
Q

True or False
PHP can only run on Windows based OS.

A

False - PHP can run in Windows, Mac, and Linux

81
Q

What is the new language feature in PHP 6?

A

foreach loops