Prelim PPT 3 Flashcards

(32 cards)

1
Q

A ________is simply a container i.e used to store both numeric and non-numeric information.

A

Variable

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

Variables in PHP starts with a ______ sign, followed by the name of the variable.

A

dollar($)

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

The variable name must begin with a _____ or the _________

A

Letter or the Undescore Character

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

A variable name should not contain _____

A

Space

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

It is used to collect value from a form(HTML script) sent with method=’get’. information
sent from a form with the method=’get’ is visible to everyone(it display on the browser URL bar).

A

$_GET[“FormElementName”]

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

It is used to collect value in a form with method=”post”. Information sent from a form is
invisible to others.(can check on address bar)

A

$_POST[“FormElementName”]

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

This can be used to collect data with both post and get method.

A

$_REQUEST[“FormElementName”]

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

It can be used to upload files from a client computer/system to a server.

A

$_FILES[“FormElementName”]

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

A _______ variable is used to store information about a single user, and are available to all pages within one application.

A

$_SESSION[“VariableName”]

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

A _______is used to identify a user. ______ is a small file that the server embedded on
user computer

A

$_COOKIE[“VariableName”]

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

$______ holds information about headers, paths, and script locations.

A

_SERVER[“ConstantName”]

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

PHP: Magic Constant

A

__Line__
__File__
__Function__
__Class__
__Method__
PHP_VERSION
PHP_INT_MAX

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

The curret line numer of the file

A

__LINE__

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

The full path and filename of the file

A

__FILE__

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

The function name

A

__FUNCTION__

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

The class name

17
Q

The class method name

18
Q

The PHP version

19
Q

The PHP integer value limit

20
Q

It is a statement i.e used to display the output. it can be used with parentheses ______ or without parentheses ______

21
Q

It is can pass multiple string separated as ( , ), doesnt return any value and faster then print.

22
Q

It is a statement i.e used to display the output. it can be used with parentheses _______( ) or without parentheses _______.

23
Q

Using _____ can doesn’t pass multiple argument, always return 1, and it is slower than echo

24
Q

_____ method is unsecured method because it displays all information on address bar/
url.

25
______ method is secured method because it hides all information. Using _____ method unlimited data sends. _______ method is slower method comparatively GET method.
POST Method
26
______ is used to give reference/link of another page
Action
27
Arithmetic Operators in PHP
Add Subtract Multiply Divide and return quotient Divide and return modulus
28
Assignment Operators in PHP
Add and assign (+=) Subtract and assign (-=) Multiply and assign(*=) Divide and assign quotient (/=) Divide and assign modulu (%=) Concatenate and assign(its used only for sting) (.=)
29
PHP Comparative Operators
== Equal to === Equal to and of the same type != Not equal to !== Not equal to of the same type > Greater than < Less than >= Greater than or equal to <= Less than or equal to
30
PHP Logical Operators
&& AND || OR ! NOT
31
Operator Precedence in PHP
BOD-MAS
32
What is BOD-MAS
Brackets, order, Division, Multiplication, Addition, Subtracion